CN102868753A - Method and device for adaptive empty response restoring based on optimized content delivery network - Google Patents

Method and device for adaptive empty response restoring based on optimized content delivery network Download PDF

Info

Publication number
CN102868753A
CN102868753A CN2012103628846A CN201210362884A CN102868753A CN 102868753 A CN102868753 A CN 102868753A CN 2012103628846 A CN2012103628846 A CN 2012103628846A CN 201210362884 A CN201210362884 A CN 201210362884A CN 102868753 A CN102868753 A CN 102868753A
Authority
CN
China
Prior art keywords
response
file
request
source
distributing network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103628846A
Other languages
Chinese (zh)
Other versions
CN102868753B (en
Inventor
洪珂
郭文强
林阴珍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201210362884.6A priority Critical patent/CN102868753B/en
Publication of CN102868753A publication Critical patent/CN102868753A/en
Application granted granted Critical
Publication of CN102868753B publication Critical patent/CN102868753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for adaptive empty response restoring based on an optimized content delivery network. The method and the device can greatly reduce time of data restoration caused by empty response. The technical scheme includes that the method includes: requesting newly-issued static files or caching expired static files from a source station by a user; judging a source server back to a source by monitoring a node source station and sending a request to the source server; responding the request to an edge node of the content delivery network by the source server; responding the request to the user by the edge node of the content delivery network; and judging whether a request file is an empty response or not by the edge node of the content delivery network, caching the request file if response is normal, stopping caching the file of empty response if the response is empty, when the user requests the file of the empty response next time, performing a back-to-source request again by the edge node of the content delivery network, and when the source server returns a normal response, caching the file of the normal response and restoring the empty response.

Description

Adaptive null response restoration methods and device after the content-based distributing network optimization
Technical field
The present invention relates to the data exception recovery technology, relate in particular to the method and apparatus that content distributing network (CDN network) null response recovers.
Background technology
The basic thought of the null response recovery technology of content-based distributing network is, the source head response that the user asks to use the CDN network is not with the file of Cache-Control:no-cache or no-store or private or max-age=0, be non-buffer memory static file (hereinafter to be referred as: in the time of static file), when thereby source server does not exist the file of request or source server low-response or CDN fringe node to have problem to cause that the file of request is null response to source server, for example picture file shows red fork, the CDN fringe node should be able to find in time that file is unusual, recover as early as possible, drop to the influence time of null response the shortest.
The realization of present null response recovery scheme is as shown in Figure 1:
Step S11: when the user asked the static file of the new cloth in source station or buffer memory static file out of date, the CDN fringe node returned the source request;
Step S12: judge back any platform source server by the monitoring of node source station, and send request to source server;
Step S13: the file that the source server response is asked is to the CDN fringe node;
Step S14:CDN fringe node returns to the end user with the file of source server response;
Step S15:CDN fringe node buffer memory this document, whether no matter be null response, do not judge whether demand file is null response this moment.
Step S16: if the null response file then will wait the user to ask the buffer memory of this document and CDN fringe node judgement this document to cross after date and again return the source request, when source server provided normal response, null response just recovered, and recovered normal such as the red fork of picture and showed.
There is following drawback in existing null response recovery scheme: no matter whether the static file of request is null response, unified according to the cache module cache file.If there is null response, then only have and cross after date Hui Yuan when buffer memory and again ask, when source server provides normal response, null response just recovers, and this recovery process can not realize fast recovery, judging that buffer memory is during this period of time not out of date, what all returned the request of this document all is the situation of null response, has prolonged the time of fault, has aggravated the impact of fault.For example use the game website of CDN, the frequency gets higher that the null response situation after the redaction upgrading, occurs, the problem that the null response that is exactly buffer memory causes, if the file cache time of i.e. this null response is 1 day, then to wait at least 1 day after buffer memory expired and have client requests this document just might recover normal.
Summary of the invention
The object of the invention is to address the above problem, adaptive null response restoration methods after a kind of content-based distributing network optimization is provided, can greatly shorten the time that the data that caused by null response are recovered.
Another object of the present invention is to provide adaptive null response recovery device after a kind of content-based distributing network optimization, can greatly shorten the time that the data that caused by null response are recovered.
Technical scheme of the present invention is: the present invention has disclosed adaptive null response restoration methods after a kind of content-based distributing network optimization, comprising:
The user asks static file or the buffer memory static file out of date of the new cloth in source station;
By the monitoring of node source station being judged the source server of Hui Yuan, and send request to source server;
The source server response request is to the fringe node of content distributing network;
The fringe node response request of content distributing network is to the user;
Whether the flange node judges demand file of content distributing network is null response, if normal response cache request file then, if the null response file of buffer memory null response not then, when next user asks the file of null response, the fringe node of content distributing network returns the source request again, when source server return be normal response the time file of buffer memory normal response then, recover null response.
According to an embodiment of adaptive null response restoration methods after the content-based distributing network optimization of the present invention, static file refers to the static file of non-buffer memory.
The present invention has disclosed adaptive null response recovery device after a kind of content-based distributing network optimization, comprising:
The static file request module, the user asks static file or the buffer memory static file out of date of the new cloth in source station;
Return source module, by the monitoring of node source station being judged the source server of Hui Yuan, and send request to source server;
The source server respond module, the source server response request is to the fringe node of content distributing network;
The fringe node respond module, the fringe node response request of content distributing network is to the user;
The null response processing module, whether the flange node judges demand file of content distributing network is null response, if normal response cache request file then, if the null response file of buffer memory null response not then, when next user asks the file of null response, the fringe node of content distributing network returns the source request again, when source server return be normal response the time file of buffer memory normal response then, recover null response.
According to an embodiment of adaptive null response recovery device after the content-based distributing network optimization of the present invention, static file refers to the static file of non-buffer memory.
The present invention contrasts prior art following beneficial effect: the solution of the present invention is whether increased demand file on the basis of traditional null response recovery scheme is the judgement of null response, for the file null response, these wrong data of buffer memory not, during request next time this document, need to again return the source request, when source server returned normal response, null response recovered, and recovered such as the red fork of picture.Null response recovery technology after the optimization does not need by the time buffer memory to expire and just carries out the trial that null response recovers, as long as there is next time the user to ask this document just to carry out the trial that null response recovers, can greatly shorten the time of data recovery.
Description of drawings
Fig. 1 shows the flow chart of traditional null response restoration methods.
Fig. 2 shows the flow chart of the embodiment of adaptive null response restoration methods after the content-based distributing network optimization of the present invention.
Fig. 3 shows the schematic diagram of the embodiment of adaptive null response recovery device after the content-based distributing network optimization of the present invention.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
The embodiment of adaptive null response restoration methods after the content-based distributing network optimization
Fig. 2 shows the flow process of the embodiment of adaptive null response restoration methods after the content-based distributing network optimization of the present invention.See also Fig. 2, the below is the detailed description to each step of the null response restoration methods of the present embodiment.
Step S21: the user asks static file or the buffer memory static file out of date of the new cloth in source station, and the fringe node of content distributing network returns the source request.
Static file refers to the static file of non-buffer memory, and namely the source head response of content distributing network is not with the file of Cache-Control:no-cache or no-cache or private or max-age=0.
Step S22: by the monitoring of node source station being judged the source server of Hui Yuan, and send request to source server.
Step S23: the source server response request is to the fringe node of content distributing network.
Step S24: the fringe node response request of content distributing network is to the end user.
Step S25: whether the flange node judges demand file of content distributing network is null response, if null response then enters step S27, if normal response then enters step S26.
Step S26: for normal response, the fringe node of content distributing network is according to cache module cache request file.
Step S27: for null response, the fringe node of content distributing network is revised cache module, and buffer memory null response file does not enter step S28.
Step S28: for null response, when next user asked this document, the fringe node of content distributing network returned the source request again, when source server return be normal response the time, this normal file of buffer memory, null response recovers, for example the red fork of picture recovers.
The embodiment of adaptive null response recovery device after the content-based distributing network optimization
Fig. 3 shows the principle of the embodiment of adaptive null response recovery device after the content-based distributing network optimization of the present invention.See also Fig. 3, the null response recovery device of the present embodiment comprises: static file request module 11, time source module 12, source server respond module 13, fringe node respond module 14, null response processing module 15.
Wherein the output of static file request module 11 connects back source module 12, the output that returns source module 12 connects source server respond module 13, the output of source server respond module 13 connects fringe node respond module 14, and the output of fringe node respond module 14 connects null response processing module 15.
In the static file request module 11, the user asks static file or the buffer memory static file out of date of the new cloth in source station, and static file refers to the static file of non-buffer memory.Return in the source module 12, by the monitoring of node source station being judged the source server of Hui Yuan, and send request to source server.In the source server respond module 13, the source server response request is to the fringe node of content distributing network.In the fringe node respond module 14, the fringe node response request of content distributing network is to the user.In the null response processing module 15, whether the flange node judges demand file of content distributing network is null response, if normal response cache request file then, if the null response file of buffer memory null response not then, when next user asks the file of null response, the fringe node of content distributing network returns the source request again, when source server return be normal response the time file of buffer memory normal response then, recover null response.
Above-described embodiment provides to those of ordinary skills and realizes and use of the present invention; those of ordinary skills can be in the situation that do not break away from invention thought of the present invention; above-described embodiment is made various modifications or variation; thereby protection scope of the present invention do not limit by above-described embodiment, and should be the maximum magnitude that meets the inventive features that claims mention.

Claims (4)

1. adaptive null response restoration methods after the content-based distributing network optimization comprises:
The user asks static file or the buffer memory static file out of date of the new cloth in source station;
By the monitoring of node source station being judged the source server of Hui Yuan, and send request to source server;
The source server response request is to the fringe node of content distributing network;
The fringe node response request of content distributing network is to the user;
Whether the flange node judges demand file of content distributing network is null response, if normal response cache request file then, if the null response file of buffer memory null response not then, when next user asks the file of null response, the fringe node of content distributing network returns the source request again, when source server return be normal response the time file of buffer memory normal response then, recover null response.
2. adaptive null response restoration methods after the content-based distributing network optimization according to claim 1 is characterized in that, static file refers to the static file of non-buffer memory.
3. adaptive null response recovery device after the content-based distributing network optimization comprises:
The static file request module, the user asks static file or the buffer memory static file out of date of the new cloth in source station;
Return source module, by the monitoring of node source station being judged the source server of Hui Yuan, and send request to source server;
The source server respond module, the source server response request is to the fringe node of content distributing network;
The fringe node respond module, the fringe node response request of content distributing network is to the user;
The null response processing module, whether the flange node judges demand file of content distributing network is null response, if normal response cache request file then, if the null response file of buffer memory null response not then, when next user asks the file of null response, the fringe node of content distributing network returns the source request again, when source server return be normal response the time file of buffer memory normal response then, recover null response.
4. adaptive null response recovery device after the content-based distributing network optimization according to claim 3 is characterized in that, static file refers to the static file of non-buffer memory.
CN201210362884.6A 2012-09-25 2012-09-25 Adaptive null response restoration methods and device after content-based distributing network optimization Active CN102868753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210362884.6A CN102868753B (en) 2012-09-25 2012-09-25 Adaptive null response restoration methods and device after content-based distributing network optimization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210362884.6A CN102868753B (en) 2012-09-25 2012-09-25 Adaptive null response restoration methods and device after content-based distributing network optimization

Publications (2)

Publication Number Publication Date
CN102868753A true CN102868753A (en) 2013-01-09
CN102868753B CN102868753B (en) 2016-03-02

Family

ID=47447339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210362884.6A Active CN102868753B (en) 2012-09-25 2012-09-25 Adaptive null response restoration methods and device after content-based distributing network optimization

Country Status (1)

Country Link
CN (1) CN102868753B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9094464B1 (en) 2014-12-18 2015-07-28 Limelight Networks, Inc. Connection digest for accelerating web traffic
CN105871994A (en) * 2015-12-15 2016-08-17 乐视网信息技术(北京)股份有限公司 Static file service method and unit
CN109101625A (en) * 2018-08-13 2018-12-28 中国建设银行股份有限公司 A kind of web cache method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505261A (en) * 2008-02-05 2009-08-12 华为技术有限公司 Processing method for content routing exception, content routing functional equipment and system
CN102200980A (en) * 2010-03-25 2011-09-28 北京搜狗科技发展有限公司 Method and system for providing network resources
CN102594921A (en) * 2012-03-22 2012-07-18 网宿科技股份有限公司 Synchronization file access method and system based on content distribution system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505261A (en) * 2008-02-05 2009-08-12 华为技术有限公司 Processing method for content routing exception, content routing functional equipment and system
CN102200980A (en) * 2010-03-25 2011-09-28 北京搜狗科技发展有限公司 Method and system for providing network resources
CN102594921A (en) * 2012-03-22 2012-07-18 网宿科技股份有限公司 Synchronization file access method and system based on content distribution system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9094464B1 (en) 2014-12-18 2015-07-28 Limelight Networks, Inc. Connection digest for accelerating web traffic
CN105871994A (en) * 2015-12-15 2016-08-17 乐视网信息技术(北京)股份有限公司 Static file service method and unit
CN109101625A (en) * 2018-08-13 2018-12-28 中国建设银行股份有限公司 A kind of web cache method and device

Also Published As

Publication number Publication date
CN102868753B (en) 2016-03-02

Similar Documents

Publication Publication Date Title
US9634915B2 (en) Methods and computer program products for generating a model of network application health
US8645532B2 (en) Methods and computer program products for monitoring the contents of network traffic in a network device
CN102307206B (en) Caching system and caching method for rapidly accessing virtual machine images based on cloud storage
US20140019609A1 (en) Methods and Computer Program Products for Analysis of Network Traffic by Port Level and/or Protocol Level Filtering in a Network Device
US20130046811A1 (en) Stream processing using a client-server architecture
CN102710763B (en) The method and system of a kind of distributed caching pond, burst and Failure Transfer
CN104252466A (en) Stream computing processing method, equipment and system
CN106850258A (en) A kind of Log Administration System, method and device
CN105760467A (en) Real-time data read-write method, device and system and NFS server
CN103312751A (en) Instant messaging method based on browser
CN103209214A (en) Not only structured query language (NoSQL)-based method for realizing message-oriented middleware
CN102868753A (en) Method and device for adaptive empty response restoring based on optimized content delivery network
JP2013015915A (en) Transmission control method, device and program
CN103095807A (en) Method and system of displaying video download progress of front-end equipment in real time
CN103533064A (en) Method for upgrading server program without interrupting network user online state
WO2012028033A1 (en) Method and device for message updating
CN105607606B (en) A kind of data acquisition device and method based on double mainboard frameworks
JP2019511060A5 (en)
US8312138B2 (en) Methods and computer program products for identifying and monitoring related business application processes
US20170243256A1 (en) Method and device for controlling displaying of media object and media object display system
CN103581119B (en) System and method for displaying production process data at high speed
US9787755B2 (en) Method and device for browsing network data, and storage medium
CN107241451A (en) Interference method, apparatus and system are distorted based on content distributing network
CN103533001A (en) Communication method and communication system based on HTTP multi-proxy, and intermediate proxy server
CN103049351B (en) The log processing method of multivariate data server 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
C14 Grant of patent or utility model
GR01 Patent grant