CN105959362A - CDN server and method of CDN server of caching data - Google Patents
CDN server and method of CDN server of caching data Download PDFInfo
- Publication number
- CN105959362A CN105959362A CN201610264264.7A CN201610264264A CN105959362A CN 105959362 A CN105959362 A CN 105959362A CN 201610264264 A CN201610264264 A CN 201610264264A CN 105959362 A CN105959362 A CN 105959362A
- Authority
- CN
- China
- Prior art keywords
- cdn server
- request message
- http request
- cdn
- file
- 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
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 239000002699 waste material Substances 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000002372 labelling Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
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/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- 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/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- 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/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5682—Policies or rules for updating, deleting or replacing the stored data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a CDN server and a method of a CDN server of caching data. The method is characterized in that the CDN server is used for receiving a Hyper Text Transfer Protocol HTTP request message, which comprises a request range message; the HTTP request message is used for requesting the target data indicated by a range message of a first file; the range message of the HTTP request message is deleted, and the deleted HTTP request message is transmitted to a CDN source station; the CDN source station is an original station used for distributing content; a HTTP response message, which is used for responding to the HTTP request message, and is transmitted by the CDN source station, is received; the HTTP response message comprises the complete data of the first file; the complete data of the first file is cached. The caching of the data of the CDN source station is realized by the CDN server.
Description
Technical field
The present embodiments relate to network communication field, particularly relate to a kind of CDN server and caching number thereof
According to method.
Background technology
Content distributing network (Content Delivery Network, CDN) relies on the edge being deployed in various places
Server, by functional modules such as the load balancing of central platform, content distribution, scheduling, makes user nearby
Obtain required content, reduce network congestion, improve user's access response speed and hit rate.The pass of CDN
Key technology mainly has content storage and distribution technology.
A node in CDN is a CDN server, and these CDN server are distributed to
User accesses in area or the network of Relatively centralized.When user accesses website, utilization overall situation load technology will
Accessing of user is pointed in closest CDN server working properly, is cached with in CDN server
During the data that user accesses, this CDN server can be asked directly in response to user, in CDN server not
When being cached with the data that user accesses, this CDN server, just to CDN source station request data, reduces
The load of CDN source station, described CDN source station refers to issue the original site of content.
In prior art, CDN server receives HTML (Hypertext Markup Language) (HyperText Transfer
Protocol, HTTP) request message time, if this HTTP request message includes for indicating read range
Range information, then this CDN server get from CDN source station this range information instruction mesh
After mark data, this target data will not be cached.It is to say, CDN server receives every time
After HTTP request message including range information, all can from CDN source station request data, so,
In the case of the data asked in multiple HTTP request message are identical, this CDN server repeats to CDN
The data that source station request is identical, waste the process resource of CDN source station.
Summary of the invention
The embodiment of the present invention provides a kind of CDN server and data cached method thereof, existing in order to solve
CDN server wastes the defect of the process resource of CDN source station to the process of HTTP request message, real
The existing CDN server caching to CDN source station data.
The embodiment of the present invention provides a kind of method that CDN server is data cached, including:
CDN server receives HTTP request message, described HTTP request message
Including request scope range information;It is described that described HTTP request message is used in request the first file
The target data of range information instruction;
Described CDN server deletes the described range information in described HTTP request message, and will delete
Described HTTP request message after removing sends to CDN source station;Described CDN source station refers to issue content
Original site;
What the described CDN server described CDN source station of reception sent is used for responding described HTTP request message
Http response message;Described http response message includes the partial data of described first file;
Described CDN server caches the partial data of described first file.
The embodiment of the present invention provides a kind of CDN server, including:
First receives unit, is used for receiving HTTP request message, and described HTTP please
Message is asked to include request scope range information;Described HTTP request message is in request the first file
The target data of described range information instruction;
Delete unit, for deleting the described range information in described HTTP request message, and will delete
After described HTTP request message send to CDN source station;Described CDN source station refers to issue the former of content
Initial station point;
Second receive unit, for receive described CDN source station send for responding described HTTP request
The http response message of message;Described http response message includes the partial data of described first file;
Buffer unit, for caching the partial data of described first file.
The CDN server of embodiment of the present invention offer and data cached method thereof, connect in CDN server
When receiving the HTTP request message including range information, described CDN server can delete described HTTP
Request message in range information, and will delete after described HTTP request message send to CDN source
Stand, described CDN source station in the case of receiving the HTTP request message not including range information,
The partial data of the first file described HTTP request message asked sends to described CDN server,
Described CDN server is receiving the partial data including described first file that described CDN source station sends
Http response message after, the partial data of described first file is cached, it is achieved that CDN take
The business device caching to the data that CDN source station sends, so, owing to CDN server is cached with the first file
Partial data, therefore, described first file of all requests that described CDN server is subsequently received
The HTTP request message of data, described CDN server all can obtain data from own cache and enter
Row response, it is not necessary to ask the data of described first file again from described CDN source station, thus avoid institute
State the process wasting of resources of CDN source station, and then alleviate the load of CDN source station.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below
The accompanying drawing used is needed to briefly introduce, it should be apparent that, the accompanying drawing in describing below is only the present invention's
Some embodiments, from the point of view of those of ordinary skill in the art, in the premise not paying creative work
Under, it is also possible to other accompanying drawing is obtained according to these accompanying drawings.
The method flow schematic diagram that a kind of CDN server that Fig. 1 provides for the embodiment of the present invention is data cached;
The method flow signal that another kind of CDN server that Fig. 2 provides for the embodiment of the present invention is data cached
Figure;
The structural representation of a kind of CDN server that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the another kind of CDN server that Fig. 4 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the present invention, is not
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation
The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
In order to make those skilled in the art be easier to understand the technical scheme that the embodiment of the present invention provides, below
First the correlation technique that the present embodiments relate to simply is introduced.
HTTP is the rule that a set of computer is communicated by network, uses HTTP client by sending out
Sending the HTTP request message can be to http server solicited message and service, described HTTP client can
Thinking Web browser, described http server can be Web server.
HTTP request message is made up of three parts: request row (Request Line), message header (Message
Headers) and message body (Entity Body), wherein, divided by null between message header and message body
Every.
Specifically, request row is made up of three labellings: requesting method, Uniform Resource Identifier (Uniform
Resource Identifier, URI) and HTTP version, such as: GET/news.asp HTTP/1.1.With
In upper code, " GET " represents requesting method, and "/news.asp " represents URI, and " HTTP/1.1 " represents agreement version
This.What deserves to be explained is, URI intactly specifies the Internet resources in http server to be accessed,
As long as generally providing the relative directory of the root relative to server.
Message header allows HTTP client to http server transmission about request or about client
Additional information.Message header includes the fields such as Host header field, Referer header field, and wherein, Host header field represents
The main frame of request resource and port numbers, Referer header field allows client to specify the resource ground, source of request URI
Location.What deserves to be explained is, Range is a header field newly-increased in HTTP/1.1, and range header field allows
One or more subrange of client request entity.
Message body for carrying and asking the data that are associated, the parameter etc. that such as some requests need.By disappearing
Content-length Content-Type and content type Content-Length in breath head indicate.
CDN server is as the proxy server of CDN source station (i.e. http server), and client is sent out
The HTTP request message sent need to first pass through CDN server, and from above-mentioned introduction, CDN server connects
After receiving HTTP request message, according to the Uniform Resource Identifier in this HTTP request message and range
Information i.e. can determine that the target data that client is asked.But, existing CDN server is for including range
, there is the defect of the process resource of waste CDN source station in the process of the HTTP request message of information.
The embodiment of the present invention provides a kind of method that CDN server is data cached, as it is shown in figure 1, the party
Method includes:
Step 100, CDN server receive HTTP request message, and described HTTP request message includes range
Information, the target of the described HTTP request message described range information instruction in request the first file
Data.
What deserves to be explained is, described CDN server can be to receive the HTTP that HTTP client sends
Request message, this HTTP client can be Web browser, it is also possible to be to have answering of browser function
Use program.
Specifically, the request row of this HTTP request message includes that described first file is in CDN source station
Uniform Resource Identifier, the message header of this HTTP request message includes for indicating described first file
In the range information of part data, the part data of described first file are this HTTP request message
The target data of request.
Step 101, described CDN server delete the described range information in described HTTP request message,
And the described HTTP request message after deleting sends to CDN source station.
What deserves to be explained is, described CDN source station refers to issue the original site of content, and such as, Web takes
Business device.
What step 102, the described CDN server described CDN source station of reception sent is used for responding described HTTP
The http response message of request message, described http response message includes the complete number of described first file
According to.
Wherein, described CDN source station after receiving the HTTP request message not including range information,
According to existing technology, this HTTP request message can be processed.
Step 103, described CDN server cache the partial data of described first file.
The explanation of value, in existing technical scheme, CDN source station does not includes range information receiving
HTTP request message after, according to the Uniform Resource Identifier in this HTTP request message, it is right to include
Should the partial data of file of Uniform Resource Identifier and answer code 200 send to CDN server,
Existing CDN server is when determining that http response message includes answer code 200, to receive
Data cache, if CDN source station receives the HTTP request message including range information, then should
The answer code carried in the http response message that CDN source station returns is 206, existing CDN server
When answer code in determining http response message is 206, the data received are not cached.
And in a kind of possible implementation of the embodiment of the present invention, this CDN server receives and includes
After the http response message of the partial data of the first file, directly the partial data of this first file is carried out
Caching.
In the alternatively possible implementation of the embodiment of the present invention, this CDN server receives and includes
After the http response message of the partial data of the first file, cache described first file according to answer code 200
Partial data.
Use said method, receive the HTTP request message including range information in CDN server
Time, described CDN server can be deleted the range information in described HTTP request message, and will be deleted
Described HTTP request message after removing sends to CDN source station, and described CDN source station does not include receiving
In the case of the HTTP request message of range information, the first literary composition that described HTTP request message is asked
The partial data of part sends to described CDN server, and described CDN server is receiving described CDN
After the http response message of the partial data including described first file that source station sends, to described first literary composition
The partial data of part caches, it is achieved that the CDN server caching to the data that CDN source station sends,
So, owing to CDN server is cached with the partial data of the first file, therefore, described CDN server
The HTTP request message of the data of described first file of subsequently received all requests, described CDN
Server all can obtain data from own cache and respond, it is not necessary to ask from described CDN source station again
The data of described first file, thus avoid the process wasting of resources to described CDN source station, and then subtract
The light load of CDN source station.
Specifically, the described CDN server described range letter in deleting described HTTP request message
Before breath, it is also possible to record described range information, and after receiving described http response message,
Described target data can also be determined from the partial data of described first file according to described range information,
And respond described HTTP request message according to described target data.
It is to say, in embodiments of the present invention, CDN server receives the HTTP that client sends
After request message, correct target data can be back to this client in order to ensure CDN server,
This CDN server, before deleting range information, can record this range information, in order to this CDN
Server, can be according to this range information after the partial data receiving the file that CDN source station sends
Determine the target data that client is asked, and this target data is sent to this client, it is to avoid client
This is asked unsuccessfully.
Above-mentioned being merely illustrative, this CDN server can not also record this range information, but directly
Connect the range information deletion in this HTTP request message, and return request failure message to client,
Notice client retransmits this HTTP request message, and this CDN server receives this HTTP request of re-transmission
After message, then determine that this target data is back to this client from caching.This is not limited by the present invention.
Further, described method also includes: described CDN server receives second that client sends
HTTP request message;Described second HTTP request message includes the 2nd range information;Described CDN takes
Described first file that business device caches in described CDN server according to described 2nd range information complete
Data determine the second target data;Described second target data is sent to described by described CDN server
Client.
Further, described method also includes: described CDN server receives the 3rd that client sends
HTTP request message;Described 3rd HTTP request message does not include range information;Described CDN service
The partial data of described first file of caching is sent to described client by device.
It is to say, this CDN server is after the partial data being cached with the first file, subsequently received
This first file of all requests part data (the most described second HTTP request message) or request should
The partial data (the most described 3rd HTTP request message) of the first file, this CDN server all can be from
The caching of self obtains data respond, it is not necessary to ask described first file from described CDN source station again
Data, thus avoid the process wasting of resources to described CDN source station.
In order to enable those skilled in the art to be more clearly understood that the technical scheme that the embodiment of the present invention provides,
Below by specific embodiment, a kind of CDN server providing the embodiment of the present invention is data cached
Method is described in detail, as in figure 2 it is shown, the method includes:
Step 200, CDN server receive the HTTP request including range information of client transmission and disappear
Breath.
Illustratively, when user use client listening a first song when, if listening network drop partway,
In this case, if the file extent that client has read before have recorded, then after network recovery,
This client can send the HTTP request message including Range information, this range to CDN server
Information is used for indicating remaining file extent.Such as, the total size of data of user listens audio file is 2MB
(Mbytes), the scope that residue is not listened is last 500 bytes, the then range in this HTTP request message
Information is particularly as follows: Range:bytes=-500.
The above-mentioned citing that simply when client is sent the HTTP request message including range information
Illustrating, when specifically applying, client can also send the HTTP including range information in other cases
Request message, this is not limited by the present invention, and such as, in the case of multithreading segmentation is downloaded, client is permissible
Multiple scopes are specified to be downloaded respectively identical file.Illustratively, client needs to file 500
Individual byte, the data after 500 bytes, last 500 bytes are downloaded respectively, now, should
Range information is particularly as follows: Range:bytes=0-499;Bytes=500-;Bytes=-500.
Range information in step 201, this this HTTP request message of CDN server record.
Step 202, this CDN server delete the range information in this HTTP request message.
Illustratively, described CDN server can be the CDN server using nginx to build, namely
Saying, realize agent functionality in CDN server is nginx software, and so, this CDN server is connecing
After receiving HTTP request message, after step 201 and 202 can be performed, after range information being deleted
HTTP request message send to this CDN server run nginx software, so, this nginx is soft
Part i.e. can not include the following step of flow performing of the HTTP request message of range information according to existing process
Rapid S203.
HTTP request message after step 203, this CDN server will delete range information sends extremely
CDN source station.
Step 204, this CDN source station determine according to the Uniform Resource Identifier in this HTTP request message
First file.
Step 205, this CDN source station will include the partial data of this first file and answer code 200
Http response message sends to described CDN server.
Step 206, this CDN server receive this http response message, and according to this answer code 200
Cache the partial data of this first file.
Step 207, this CDN server determine the mesh in this first file according to this range information of record
Mark data.
This target data is sent to this client by step 208, this CDN server.
Step 209, this CDN server receive this client send for accessing the another of this first file
One HTTP request message.
Step 210, this CDN server obtain another HTTP request described in the first file of caching
The target data of message request, and this target data is sent to described client.
So, the HTTP request of described first file of all access that this CDN server is subsequently received
Message, this CDN server all can obtain data from own cache and respond, it is not necessary to again from described
CDN source station asks the data of described first file, thus avoids the process resource to described CDN source station
Waste, and then alleviate the load of CDN source station.
It addition, for said method embodiment, in order to be briefly described, therefore it is all expressed as a series of dynamic
Combine, but those skilled in the art should know, the present invention not limiting by described sequence of movement
System, such as, target data can also first be sent to client by this CDN server according to range information,
Cache the partial data of this first file again.Secondly, those skilled in the art also should know, in description
Described embodiment belongs to preferred embodiment, and involved action not necessarily present invention institute is necessary
's.
The embodiment of the present invention also provides for a kind of CDN server, and being used for implementing said method embodiment provides one
Plant the method that CDN server is data cached, as it is shown on figure 3, this CDN server includes:
First receives unit 30, is used for receiving HTTP request message, described HTTP
Request message includes request scope range information;Described HTTP request message is in request the first file
Described range information instruction target data;
Delete unit 31, for deleting the described range information in described HTTP request message, and will delete
Described HTTP request message after removing sends to CDN source station;Described CDN source station refers to issue content
Original site;
Second receive unit 32, for receive described CDN source station send for respond described HTTP please
Seek the http response message of message;Described http response message includes the partial data of described first file;
Buffer unit 33, for caching the partial data of described first file.
Using above-mentioned CDN server, this CDN server includes the HTTP of range information receiving
During request message, this CDN server can delete the range information in this HTTP request message, and
This HTTP request message after deleting sends to CDN source station, and this CDN source station does not include receiving
In the case of the HTTP request message of range information, the first file that this HTTP request message is asked
Partial data send to this CDN server, this CDN server receiving this CDN source station send
The partial data including this first file http response message after, the partial data to this first file
Cache, it is achieved that the CDN server caching to the data that CDN source station sends, so, due to
CDN server is cached with the partial data of the first file, and therefore, this CDN server is subsequently received
The HTTP request message of the data of this first file of all requests, this CDN server all can be from certainly
Body caching obtains data respond, it is not necessary to ask the data of this first file again from this CDN source station,
Thus avoid the process wasting of resources to this CDN source station, and then alleviate the load of CDN source station.
Alternatively, as shown in Figure 4, described CDN server also includes: record unit 34, in institute
Stating before deleting the described range information that unit 31 is deleted in described HTTP request message, record is described
Range information;Described CDN server also includes response unit 35, for receiving unit described second
After receiving described http response message, according to described range information from the complete number of described first file
Determine described target data according to, and respond described HTTP request message according to described target data.
It is to say, in embodiments of the present invention, CDN server receives the HTTP that client sends
After request message, correct target data can be back to this client in order to ensure CDN server,
This CDN server, before deleting range information, can record this range information, in order to this CDN
Server, can be according to this range information after the partial data receiving the file that CDN source station sends
Determine the target data that client is asked, and this target data is sent to this client, it is to avoid client
This is asked unsuccessfully.
Alternatively, described http response message also includes answer code 200;Described buffer unit 33 is specifically used
In: the partial data of described first file is cached according to described answer code 200.
Alternatively, described first receives unit 30 is additionally operable to, and the 2nd HTTP receiving client transmission please
Seek message;Described second HTTP request message includes the 2nd range information;Described response unit 35, uses
Complete number in described first file cached in described CDN server according to described 2nd range information
Determine the second target data according to, and described second target data is sent to described client.
Alternatively, described first receives unit 30 is additionally operable to, and the 3rd HTTP receiving client transmission please
Seek message;Described 3rd HTTP request message does not include range information;Described response unit 35, is used for
The partial data of described first file of caching is sent to described client.
It is to say, this CDN server is after the partial data being cached with the first file, subsequently received
This first file of all requests part data (the most described second HTTP request message) or request should
The partial data (the most described 3rd HTTP request message) of the first file, this CDN server all can be from
The caching of self obtains data respond, it is not necessary to ask described first file from described CDN source station again
Data, thus avoid the process wasting of resources to described CDN source station.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, only with above-mentioned
The division of each functional module is illustrated, and in actual application, can above-mentioned functions be divided as desired
Join and completed by different functional modules, the internal structure of device will be divided into different functional modules, with complete
Become all or part of function described above.The specific works process of each unit of foregoing description, Ke Yican
State the corresponding process in embodiment of the method before examination, do not repeat them here.
Device embodiment described above is only schematically, wherein said illustrates as separating component
Unit can be or may not be physically separate, the parts shown as unit can be or
Person may not be physical location, i.e. may be located at a place, or can also be distributed to multiple network
On unit.Some or all of module therein can be selected according to the actual needs to realize the present embodiment
The purpose of scheme.Those of ordinary skill in the art are not in the case of paying performing creative labour, the most permissible
Understand and implement.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each enforcement
Mode can add the mode of required general hardware platform by software and realize, naturally it is also possible to pass through hardware.
Based on such understanding, the part that prior art is contributed by technique scheme the most in other words is permissible
Embodying with the form of software product, this computer software product can be stored in computer-readable storage medium
In matter, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that a computer equipment
(can be personal computer, server, or the network equipment etc.) performs each embodiment or embodiment
The method described in some part.
Last it is noted that above example is only in order to illustrate technical scheme, it is not intended to limit;
Although being described in detail the present invention with reference to previous embodiment, those of ordinary skill in the art should
Understand: the technical scheme described in foregoing embodiments still can be modified by it, or in the middle part of it
Technical characteristic is divided to carry out equivalent;And these amendments or replacement, do not make the essence of appropriate technical solution
Depart from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (10)
1. the method that a CDN server is data cached, it is characterised in that including:
CDN server receives HTTP request message, described HTTP request message
Including request scope range information;It is described that described HTTP request message is used in request the first file
The target data of range information instruction;
Described CDN server deletes the described range information in described HTTP request message, and will delete
Described HTTP request message after removing sends to CDN source station;Described CDN source station refers to issue content
Original site;
What the described CDN server described CDN source station of reception sent is used for responding described HTTP request message
Http response message;Described http response message includes the partial data of described first file;
Described CDN server caches the partial data of described first file.
Method the most according to claim 1, it is characterised in that described CDN server is deleted described
Before described range information in HTTP request message, including:
Range information described in described CDN server record;
After described CDN server receives described http response message, described method also includes:
Described CDN server determines from the partial data of described first file according to described range information
Described target data, and respond described HTTP request message according to described target data.
Method the most according to claim 1 and 2, it is characterised in that described http response message
Also include answer code 200;
Described CDN server caches the partial data of described first file, including:
Described CDN server caches the partial data of described first file according to described answer code.
Method the most according to claim 1 and 2, it is characterised in that described method also includes:
Described CDN server receives the second HTTP request message that client sends;Described 2nd HTTP
Request message includes the 2nd range information;
Described in described CDN server caches in described CDN server according to described 2nd range information
The partial data of the first file determines the second target data;
Described second target data is sent to described client by described CDN server.
Method the most according to claim 1 and 2, it is characterised in that described method also includes:
Described CDN server receives the 3rd HTTP request message that client sends;Described 3rd HTTP
Request message does not include range information;
The partial data of described first file of caching is sent to described client by described CDN server.
6. a CDN server, it is characterised in that including:
First receives unit, is used for receiving HTTP request message, and described HTTP please
Message is asked to include request scope range information;Described HTTP request message is in request the first file
The target data of described range information instruction;
Delete unit, for deleting the described range information in described HTTP request message, and will delete
After described HTTP request message send to CDN source station;Described CDN source station refers to issue the former of content
Initial station point;
Second receive unit, for receive described CDN source station send for responding described HTTP request
The http response message of message;Described http response message includes the partial data of described first file;
Buffer unit, for caching the partial data of described first file.
CDN server the most according to claim 6, it is characterised in that described CDN server
Also include: record unit, for described in HTTP request message described in described deletion element deletion
Before range information, record described range information;
Described CDN server also includes response unit, receives described for receiving unit described second
After http response message, from the partial data of described first file, determine institute according to described range information
State target data, and respond described HTTP request message according to described target data.
8. according to the CDN server described in claim 6 or 7, it is characterised in that described HTTP rings
Message is answered also to include answer code;Described buffer unit specifically for:
The partial data of described first file is cached according to described answer code.
9. according to the CDN server described in claim 6 or 7, it is characterised in that described first receives
Unit is additionally operable to, and receives the second HTTP request message that client sends;Described second HTTP request disappears
Breath includes the 2nd range information;
Described CDN server includes response unit, is used for according to described 2nd range information at described CDN
The partial data of described first file of server buffer determines the second target data, and by described second mesh
Mark data send to described client.
10. according to the CDN server described in claim 6 or 7, it is characterised in that described first connects
Receipts unit is additionally operable to, and receives the 3rd HTTP request message that client sends;Described 3rd HTTP request
Message does not include range information;
Described CDN server includes response unit, for the partial data by described first file of caching
Send to described client.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610264264.7A CN105959362A (en) | 2016-04-25 | 2016-04-25 | CDN server and method of CDN server of caching data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610264264.7A CN105959362A (en) | 2016-04-25 | 2016-04-25 | CDN server and method of CDN server of caching data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105959362A true CN105959362A (en) | 2016-09-21 |
Family
ID=56915649
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610264264.7A Pending CN105959362A (en) | 2016-04-25 | 2016-04-25 | CDN server and method of CDN server of caching data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105959362A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112866310A (en) * | 2019-11-12 | 2021-05-28 | 北京金山云网络技术有限公司 | CDN back-to-source verification method and verification server, and CDN cluster |
CN114189560A (en) * | 2020-08-28 | 2022-03-15 | 北京金山云网络技术有限公司 | Resource transmission method and device, storage medium, and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102771080A (en) * | 2009-12-01 | 2012-11-07 | 万特里克斯公司 | System and methods for efficient media delivery using cache |
CN102883187A (en) * | 2012-09-17 | 2013-01-16 | 华为技术有限公司 | Time-shift program service method, equipment and system |
US20130179541A1 (en) * | 2012-01-06 | 2013-07-11 | Comcast Cable Communications, Llc | Streamlined delivery of video content |
CN103460667A (en) * | 2011-04-07 | 2013-12-18 | 高通股份有限公司 | Network streaming of video data using byte range requests |
CN104935648A (en) * | 2015-06-03 | 2015-09-23 | 北京快网科技有限公司 | High-cost-performance CDN system, and file pre-push and fragment buffer memory methods |
-
2016
- 2016-04-25 CN CN201610264264.7A patent/CN105959362A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102771080A (en) * | 2009-12-01 | 2012-11-07 | 万特里克斯公司 | System and methods for efficient media delivery using cache |
CN103460667A (en) * | 2011-04-07 | 2013-12-18 | 高通股份有限公司 | Network streaming of video data using byte range requests |
US20130179541A1 (en) * | 2012-01-06 | 2013-07-11 | Comcast Cable Communications, Llc | Streamlined delivery of video content |
CN102883187A (en) * | 2012-09-17 | 2013-01-16 | 华为技术有限公司 | Time-shift program service method, equipment and 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 (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112866310A (en) * | 2019-11-12 | 2021-05-28 | 北京金山云网络技术有限公司 | CDN back-to-source verification method and verification server, and CDN cluster |
CN112866310B (en) * | 2019-11-12 | 2022-03-04 | 北京金山云网络技术有限公司 | CDN back-to-source verification method and verification server, CDN cluster |
CN114189560A (en) * | 2020-08-28 | 2022-03-15 | 北京金山云网络技术有限公司 | Resource transmission method and device, storage medium, and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104468817B (en) | Implementation method and device, server, the client of resource is downloaded by CDN | |
CN103036977B (en) | Business pushing method and pushing system based on content distribution network | |
US20030120752A1 (en) | Dynamic web page caching system and method | |
WO2021253889A1 (en) | Load balancing method and apparatus, proxy device, cache device and serving node | |
CN110457199A (en) | The method and apparatus of performance test | |
KR20140022464A (en) | Sharing control system and method for network resources download information | |
CN104426985B (en) | Show the method, apparatus and system of webpage | |
CN105897850A (en) | Response processing method and system and scheduling proxy server for CDN platform | |
CN105871975A (en) | Method and device for selecting source server | |
CN107231402A (en) | HTTP request processing method, apparatus and system | |
CN105978936A (en) | CDN server and data caching method thereof | |
CN100563214C (en) | A kind of method and system that improve accesses network resource speed | |
CN106657426A (en) | Processing method and device for domain name parsing request, and server | |
CN108234207A (en) | A kind of Fault Locating Method and device based on content distributing network CDN | |
CN112513830A (en) | Back-source method and related device in content distribution network | |
CN111064780B (en) | Multitask content updating method, device, equipment and medium | |
US20150095487A1 (en) | Third-party link tracker system and method | |
CN105979277A (en) | File transfer method and electronic equipment | |
CN108494875A (en) | A kind of method and apparatus of feedback resources file | |
CN106557584A (en) | A kind of web site collection method and device | |
CN103416027B (en) | The system of the method, buffer and cache optimization of cache optimization | |
CN105959362A (en) | CDN server and method of CDN server of caching data | |
CN101184002A (en) | A method and device for in-depth monitoring of point-to-point traffic | |
CN103001967A (en) | Origin Server and Service Push Method | |
CN108345508A (en) | Interface calls test method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160921 |
|
WD01 | Invention patent application deemed withdrawn after publication |