CN102868753B - Adaptive null response restoration methods and device after content-based distributing network optimization - Google Patents

Adaptive null response restoration methods and device after content-based distributing network optimization Download PDF

Info

Publication number
CN102868753B
CN102868753B CN201210362884.6A CN201210362884A CN102868753B CN 102868753 B CN102868753 B CN 102868753B CN 201210362884 A CN201210362884 A CN 201210362884A CN 102868753 B CN102868753 B CN 102868753B
Authority
CN
China
Prior art keywords
response
file
distributing network
null response
null
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.)
Active
Application number
CN201210362884.6A
Other languages
Chinese (zh)
Other versions
CN102868753A (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

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Adaptive null response restoration methods and device after the invention discloses content-based distributing network optimization, can shorten the time of the date restoring caused by null response greatly.Its technical scheme is: method comprises: the static file that user asks source station newly to be issued or buffer memory static file out of date; By judging the source server of Hui Yuan to the monitoring of node source station, and send request to source server; Source server response request is to the fringe node of content distributing network; The fringe node response request of content distributing network is to user; Whether the flange node judges demand file of content distributing network is null response, if normal response then cache request file, if the file of null response then not buffer memory null response, when next user asks the file of null response, the fringe node of content distributing network returns source request again, when source server return be normal response time then buffer memory normal response file, recover null response.

Description

Adaptive null response restoration methods and device after content-based distributing network optimization
Technical field
The present invention relates to data exception recovery technology, particularly relate to the method and apparatus that content distributing network (CDN) null response recovers.
Background technology
The basic thought of the null response recovery technology of content-based distributing network is, user asks the file of source head response not with Cache-Control:no-cache or no-store or private or max-age=0 using CDN, during static file (hereinafter referred to as static file) of i.e. non-caching, when source server do not exist the file of request or source server low-response or CDN fringe node have problem to source server thus cause the file of request to be null response time, such as picture file shows red fork, CDN fringe node should be able to Timeliness coverage file abnormal, recover as early as possible, the influence time of null response is dropped to the shortest.
The realization of current null response recovery scheme is as shown in Figure 1:
Step S11: when the static file that user asks source station newly to be issued or buffer memory static file out of date, CDN fringe node returns 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: source server responds the file of asking to CDN fringe node;
The file that source server responds is returned to end user by step S14:CDN fringe node;
No matter whether this file of step S15:CDN fringe node buffer memory be null response, now do not judge whether demand file is null response.
Step S16: if null response file, then will wait user to ask this file and CDN fringe node judges that the after date that is cached of this file returns source request again, and when source server provides normal response, null response just recovers, and fork as red in picture recovers normal display.
There is following drawback in existing null response recovery scheme: whether the static file of no matter asking is null response, unified according to cache module cache file.If there is null response, then only have and again ask when being cached after date Hui Yuan, when source server provides normal response, null response just recovers, this recovery process, can not realize fast recovery, during this period of time not out of date at judgement buffer memory, all what return the request of this file is all the situation of null response, extends the time of fault, exacerbates the impact of fault.Such as use the game website of CDN, the frequency gets higher of null response situation is there is after redaction upgrading, the problem that the null response that has been exactly buffer memory causes, if the file cache time of this null response is i.e. 1 day, then after at least will waiting 1 day, buffer memory is expired and have client to ask this file just likely to recover normal.
Summary of the invention
The object of the invention is to solve the problem, provide adaptive null response restoration methods after a kind of content-based distributing network optimization, greatly can shorten the time of the date restoring caused by null response.
Another object of the present invention is to provide adaptive null response recovery device after a kind of content-based distributing network optimization, greatly can shorten the time of the date restoring caused by null response.
Technical scheme of the present invention is: present invention is disclosed adaptive null response restoration methods after a kind of content-based distributing network optimization, comprising:
The static file that user asks source station newly to be issued or buffer memory static file out of date;
By judging the source server of Hui Yuan to the monitoring of node source station, and send request to source server;
Source server response request is to the fringe node of content distributing network;
The fringe node response request of content distributing network is to user;
Whether the flange node judges demand file of content distributing network is null response, if normal response then cache request file, if the file of null response then not buffer memory null response, when next user asks the file of null response, the fringe node of content distributing network returns source request again, when source server return be normal response time then buffer memory normal response file, recover null response.
According to an embodiment of adaptive null response restoration methods after content-based distributing network optimization of the present invention, static file refers to the static file of non-caching.
Present invention is disclosed adaptive null response recovery device after a kind of content-based distributing network optimization, comprising:
Static file request module, the static file that user asks source station newly to be issued or buffer memory static file out of date;
Return source module, by judging the source server of Hui Yuan to the monitoring of node source station, and send request to source server;
Source server respond module, source server response request is to the fringe node of content distributing network;
Fringe node respond module, the fringe node response request of content distributing network is to user;
Null response processing module, whether the flange node judges demand file of content distributing network is null response, if normal response then cache request file, if the file of null response then not buffer memory null response, when next user asks the file of null response, the fringe node of content distributing network returns source request again, when source server return be normal response time then buffer memory normal response file, recover null response.
According to an embodiment of adaptive null response recovery device after content-based distributing network optimization of the present invention, static file refers to the static file of non-caching.
The present invention contrasts prior art following beneficial effect: the solution of the present invention is whether add on the basis of traditional null response recovery scheme demand file be the judgement of null response, for file null response, the not data of this mistake of buffer memory, during this file of request next time, need again to return source request, when source server returns normal response, null response recovers, and the red fork of such as picture recovers.Null response recovery technology after optimization, does not need buffer memory by the time to expire and just carries out the trial of null response recovery, as long as there is next time user to ask this file just to carry out the trial of null response recovery, greatly can shorten the time of date restoring.
Accompanying drawing explanation
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 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 content-based distributing network optimization of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described.
the embodiment of adaptive null response restoration methods after content-based distributing network optimization
Fig. 2 shows the flow process of the embodiment of adaptive null response restoration methods after content-based distributing network optimization of the present invention.Refer to Fig. 2, here is the detailed description of each step of null response restoration methods to the present embodiment.
Step S21: the static file that user asks source station newly to be issued or buffer memory static file out of date, the fringe node of content distributing network returns source request.
Static file refers to the static file of non-caching, i.e. the file of source head response not with Cache-Control:no-cache or no-cache or private or max-age=0 of content distributing network.
Step S22: by judging the source server of Hui Yuan to the monitoring of node source station, and send request to source server.
Step S23: 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 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 amendment cache module of content distributing network, buffer memory null response file, does not enter step S28.
Step S28: for null response, when next user asks this file, the fringe node of content distributing network returns source request again, when source server return be normal response time, this normal file of buffer memory, null response recovers, the red fork recovery of such as picture.
the embodiment of adaptive null response recovery device after content-based distributing network optimization
Fig. 3 shows the principle of the embodiment of adaptive null response recovery device after content-based distributing network optimization of the present invention.Refer to 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 returning 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 static file request module 11, the static file that user asks source station newly to be issued or buffer memory static file out of date, static file refers to the static file of non-caching.Return in source module 12, by judging the source server of Hui Yuan to the monitoring of node source station, and send request to source server.In source server respond module 13, source server response request is to the fringe node of content distributing network.In fringe node respond module 14, the fringe node response request of content distributing network is to user.In null response processing module 15, whether the flange node judges demand file of content distributing network is null response, if normal response then cache request file, if the file of null response then not buffer memory null response, when next user asks the file of null response, the fringe node of content distributing network returns source request again, when source server return be normal response time then buffer memory normal response file, recover null response.
Above-described embodiment is available to those of ordinary skill in the art to realize and uses of the present invention; those of ordinary skill in the art can be without departing from the present invention in the case of the inventive idea; various modifications or change are made to above-described embodiment; thus protection scope of the present invention not limit by above-described embodiment, and should be the maximum magnitude meeting the inventive features that claims are mentioned.

Claims (4)

1. an adaptive null response restoration methods after content-based distributing network optimization, comprising:
The static file that user asks source station newly to be issued or buffer memory static file out of date;
By judging the source server of Hui Yuan to the monitoring of node source station, and send request to source server;
Source server response request is to the fringe node of content distributing network;
The fringe node response request of content distributing network is to user;
Whether the file of the flange node judges response of content distributing network is null response, if the file of normal response then buffer memory normal response, if the file of null response then not buffer memory null response, when next user asks the file of null response, the fringe node of content distributing network returns source request again, when source server return be normal response time then buffer memory normal response file, recover null response.
2. adaptive null response restoration methods after content-based distributing network optimization according to claim 1, it is characterized in that, static file refers to the static file of non-caching.
3. an adaptive null response recovery device after content-based distributing network optimization, comprising:
Static file request module, the static file that user asks source station newly to be issued or buffer memory static file out of date;
Return source module, by judging the source server of Hui Yuan to the monitoring of node source station, and send request to source server;
Source server respond module, source server response request is to the fringe node of content distributing network;
Fringe node respond module, the fringe node response request of content distributing network is to user;
Null response processing module, whether the file of the flange node judges response of content distributing network is null response, if the file of normal response then buffer memory normal response, if the file of null response then not buffer memory null response, when next user asks the file of null response, the fringe node of content distributing network returns source request again, when source server return be normal response time then buffer memory normal response file, recover null response.
4. adaptive null response recovery device after content-based distributing network optimization according to claim 3, it is characterized in that, static file refers to the static file of non-caching.
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 CN102868753A (en) 2013-01-09
CN102868753B true 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)

Families Citing this family (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
CN109101625B (en) * 2018-08-13 2022-07-08 中国建设银行股份有限公司 Webpage caching 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

Also Published As

Publication number Publication date
CN102868753A (en) 2013-01-09

Similar Documents

Publication Publication Date Title
CN109684358B (en) Data query method and device
US9800691B2 (en) Stream processing using a client-server architecture
CN103209223B (en) distributed application session information sharing method, system and application server
US8645532B2 (en) Methods and computer program products for monitoring the contents of network traffic in a network device
WO2014166265A1 (en) Method, terminal, cache server and system for updating webpage data
CN104252466A (en) Stream computing processing method, equipment and system
CN105138679A (en) Data processing system and method based on distributed caching
CN103209214A (en) Not only structured query language (NoSQL)-based method for realizing message-oriented middleware
CN102868753B (en) Adaptive null response restoration methods and device after content-based distributing network optimization
CN105279034B (en) Consistency cache control system and method
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
CN105607606B (en) A kind of data acquisition device and method based on double mainboard frameworks
CN103051722B (en) A kind ofly determine the method whether page is held as a hostage and relevant device
CA3017055A1 (en) System and method for transmitting dynamic content to mobile devices
CN105577761B (en) A kind of transaction processing system and transaction processing method based on dual station point
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
CN109684611A (en) A kind of dictionary code-transferring method, device, storage medium and terminal
CN105743669A (en) Data communication method and apparatus
CN103873564A (en) Method for realizing SignalR duplex communication under balanced load condition of multiple servers
CN104038532A (en) Distributed system interconnection method and device
CN104104648A (en) Storage device data visiting method, application server and network
CN203951487U (en) Micro-letter public account group's the directed delivery system of information
CN105282237A (en) APP data transmission method

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