[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103416027A - Cache optimization method, cache and cache optimization system - Google Patents

Cache optimization method, cache and cache optimization system Download PDF

Info

Publication number
CN103416027A
CN103416027A CN2012800002627A CN201280000262A CN103416027A CN 103416027 A CN103416027 A CN 103416027A CN 2012800002627 A CN2012800002627 A CN 2012800002627A CN 201280000262 A CN201280000262 A CN 201280000262A CN 103416027 A CN103416027 A CN 103416027A
Authority
CN
China
Prior art keywords
slow
content
url
response message
deposited
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
CN2012800002627A
Other languages
Chinese (zh)
Other versions
CN103416027B (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN103416027A publication Critical patent/CN103416027A/en
Application granted granted Critical
Publication of CN103416027B publication Critical patent/CN103416027B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a cache optimization method, a cache and a cache optimization system. The cache optimization method comprises: a cache node receiving a plurality of service requests from a terminal for a first uniform resource locator (URL), respectively receiving a plurality of first response messages from a content source based on the plurality of service requests, and respectively determining the first signature values of contents contained in the plurality of first response messages when all of the plurality of first response messages do not carry a cache control header field, or the carried cache control header field indicates no caching; and the cache node comparing the plurality of first signature values, and if they are the same, caching the contents contained in the first response messages and the first URL, and if they are not the same, not caching the contents contained in the first response messages. The cache optimization method, the cache and the cache optimization system in the embodiments of the present invention can determine the cache contents cached in a local caching device based on the signature values of the requested service contents, thereby reducing the bandwidth and enhancing the terminal service experience.

Description

The system of the method for cache optimization, buffer and cache optimization
Slow deposits the systems technology field that the method for optimization, Slow storages and Slow deposit optimization
The present embodiments relate to the communications field, and more particularly, to the system that Slow method, Slow storages and the Slow for depositing optimization deposits optimization.Background technology amount, the Internet, applications species, network bandwidth etc. all show explosive growth.These applications bring abundant internet to experience to client, but also result in network traffics surge.The network operator and manager of network are main to be deposited using dilatation bandwidth, control flow, introducing network Slow in order to meet ever-increasing user's request(Web cache), introduce the method such as content source.Deposited compared to dilatation bandwidth, flow control, introducing network Slow, introduce the limited improvement that content source is brought, telecom operators are also an option that deployment Slow deposits node in a network and popular content progress Slow are deposited, so as to realize low cost operation in the way of reducing bandwidth and lift service quality, i.e., operator actively disposes OTT (over the top) Slow in its network and deposits node.
Generally, OTT Slow are deposited into node deployment beside the Internet exportation of network, deployment strategy is route on the router, by Hypertext Transfer Protocol(HTTP, Hyper Text Transport Protocol) business is routed to Slow and deposits on node, if Slow, which deposits Slow on node, has the content that terminal is asked, node is then deposited by Slow service is directly provided, there is no Slow to deposit the content that terminal is asked on node if Slow is deposited, deposit node-agent terminal to after content source request content from Slow consigns to terminal again.
OTT Slow deposit node and after content source gets content, if it find that the Slow carried in the http response message that content source is returned, which deposits control header field, shows that content can be deposited with Slow, then deposit control header field by http protocol according to Slow and deposit content come Slow;Deposit control header field if it find that there is no to carry Slow in the http response message that content source is returned and depositing the Slow of control header field or carrying and indicate that Slow is not deposited, then gives tacit consent to and be not Slow to content and deposit.
In general, service provider I content suppliers(SP/CP; service provider/content provider) for the consideration for protecting oneself business and content; it is not inclined to and allows the network of operator to carry out Slow to oneself content to deposit, therefore often acquiescence does not carry Slow and deposits control header field or carry Slow and deposit control header field and indicates that Slow is not deposited in the response message.So, if OTT Slow deposit node and always deposit that the control header field effect that to determine the Slow of content to deposit and refresh Slow will be caused to deposit is poor according to Slow, substantial amounts of service request still needs It is upper to arrive content source, do not have the effect of reduction bandwidth and lifting terminal traffic experience.
Or, the larger content offline of flow-rate ratio that operator is provided SP/CP is made whether the analysis that can be deposited with Slow, then analysis result is configured into OTT Slow as strategy deposited on node.But, the refreshing underaction of configuration strategy in time, therefore can not quickly track the change of business, once content source alteration ruler, then may influence its service quality.The content of the invention
The embodiments of the invention provide the system that Slow method, Slow storages and the Slow for depositing optimization deposits optimization, the Slow completely in http response head can be avoided to deposit control header field decide whether Slow to deposit and the problem of influence service quality.
On the one hand there is provided a kind of method that Slow deposits optimization, including:Receiving terminal is to the first URL(URL, Uniform Resource Locator) multiple service requests, and multiple first response messages are received from content source based on the multiple service request respectively, when do not carried in the multiple first response message Slow deposit control header field or carrying Slow deposit control header field indicate not Slow deposit, the first signature value of content included in the multiple first response message is determined respectively;Compare multiple first signature values, if identical, Slow deposits the content included in first response message and the first URL, if it is not the same, Slow does not deposit the content included in first response message.
On the other hand there is provided a kind of Slow storages, including:Processing unit, for multiple service requests of the receiving terminal to the first URL, and multiple first response messages are received from content source based on the multiple service request respectively, when do not carried in the multiple first response message Slow deposit control header field or carrying Slow deposit control header field indicate not Slow deposit, the first signature value of content included in the multiple first response message is determined respectively;Comparing unit, for comparing multiple first signature values, if identical, the Slow storages Slow deposits the content included in first response message and the first URL, if it is not the same, Slow does not deposit the content included in first response message to the Slow storages.
Another aspect there is provided the system that a kind of Slow deposits optimization, including:Multiple Slow storages;Service management device;Scalable message handles Presence Protocol XMPP server, for obtain the Slow of service management device issue deposit regular and each Slow storages issue to URL whether the analysis result that can be deposited with Slow, so as to the service management device by the XMPP server know that each Slow storages issue to uniform resource position mark URL whether the analysis result that can be deposited with Slow, and each Slow storages by the XMPP server knows that Slow that the service management device is issued deposits rule and other Slow storages are issued to the URL whether the analysis result that can be deposited with Slow. The Slow of the embodiment of the present invention is deposited the method for optimization, Slow storages and Slow and deposits the system of optimization and can determined that Slow has local Slow and deposits the Slow in equipment based on the signature value of the business tine of request and deposit content, so that bandwidth is reduced, lifting terminal traffic experience.Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, cylinder will be made to the required accompanying drawing used in embodiment or description of the prior art below singly to introduce, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart for the method that Slow according to embodiments of the present invention deposits optimization.
Fig. 2 is the structural representation of Slow storages according to embodiments of the present invention.
Fig. 3 is the structural representation of Slow storages according to another embodiment of the present invention.
Fig. 4 is the structural representation of the Slow storages according to further embodiment of this invention.
Fig. 5 is the structural representation of Slow storages according to yet another embodiment of the invention.
Fig. 6 is the structural representation of the Slow storages according to further embodiment of this invention.
Fig. 7 is the structural representation for the system that Slow according to embodiments of the present invention deposits optimization.Embodiment
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 clearly and completely described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method that Slow deposits optimization, i.e., a kind of method deposited to content active Slow realizes cylinder list, and transparent to terminal, content source and operator.Can be automatically to popular URL (URL by the method for the embodiment of the present invention, Uniform Resource Locator) automatically analyzed, judge whether content can be deposited with Slow by the response message of analysis correspondence URL multiple request.In addition, the content that Slow is deposited can also be recognized according to the signature value of actual content, therefore the ratio that Slow deposits content can also be lifted when URL changes, the content that the of a relatively high reality of temperature can be deposited with Slow is allowed to deposit Slow on node and leave in Slow, so as to play reduction bandwidth, the effect of lifting terminal traffic experience.And the solution of the present invention can quickly track the change of business, the content of hot topic is allowed to terminate in this as early as possible Ground.
The method that Slow according to embodiments of the present invention deposits optimization is specifically described below with reference to Fig. 1.
It is route by configuration strategy on the router(PBR, Policy-Based Routing) by user access external network server flow by PBR turn to Slow deposit node, node is deposited so as to which HTTP flows are drained into Slow from router, node-agent user is then deposited by Slow again and goes external network server to be supplied to user after downloading content.It is, the HTTP access requests of user are drawn to Slow by PBR and deposit node;If Slow is deposited, node is local to deposit the content that user is asked without Slow, and proxy user initiates HTTP access requests to external network server;External network server returns to response message according to HTTP access requests and deposits node to Slow;Slow deposits node and response message is returned into user again.
Deposited in Slow during node provides the user content delivery, for each HTTP request received, if local no Slow deposits corresponding content, need the content source server request content to SP/CP.For the response message received from content source server, Slow, which deposits node, to be needed to check that its Slow deposits control header field, if Slow deposits control, header field carries the header field that can be deposited with Slow, then can directly Slow there is Slow to deposit node local, do not carry Slow for response message and deposit the Slow of control header field or carrying and deposit control header field and indicate when Slow is not deposited that then Slow deposits node and popular URL is analyzed to judge whether the content that response message is included can be deposited with Slow.
In Fig. 1, Slow deposits the method for optimization and comprised the following steps:
11, Slow deposit multiple service requests of the node receiving terminal to the first uniform resource position mark URL, and are based on the plurality of service request from content source(For example, content source server)Receive multiple first response messages respectively, if do not carried in the plurality of first response message Slow deposit control header field or carrying Slow deposit control header field indicate not Slow deposit, the first signature value of content included in the plurality of first response message is determined respectively.
That is, node is deposited when terminal to Slow to initiate to the first URL service request, Slow deposits node and receives the first response message respectively from content source, deposit control header field if not carrying Slow in first response message and depositing the Slow of control header field or carrying and indicate that Slow is not deposited, Slow deposits the first signature value of content that node determines to include in first response message.It is appreciated that the first signature value can be directed to the full content or partial content of the content included in the first response message and determine.Now, Slow, which is deposited, does not preserve the first URL and its corresponding content in node.If also repeatedly depositing service request of the node initiation to the first URL to Slow after terminal, Slow deposits node and still calculates multiple first signature values according to corresponding content.Now, Slow deposits node and does not still preserve the first URL and its corresponding content.
The service request for depositing node initiation to Slow generally, due to terminal is a lot, therefore the URL being related to A lot.Preferably, can be before Slow deposits multiple service requests of the node receiving terminal to the first URL, the first URL temperature is counted first, if the first URL temperature is not reaching to threshold value, then Slow deposits node and preserves the first URL and its corresponding business tine without considering, only when the first URL temperature exceeds threshold value, and determine that the first URL is not statically configured and not in blacklist, just carry out the operation of above-mentioned the first signature of calculating value.So, Slow deposits node and actively analyzed accessing the high URL of temperature, and the result more repeatedly asked forces local Slow to deposit if consistent, and Slow is not deposited and made the URL deposit blacklist into not Slow if inconsistent, it is possible to avoid replicate analysis.
From the foregoing, it will be observed that when Slow deposits node and multiple first signature values are determined, can determine whether that Slow deposits the first URL and its corresponding content for same first URL multiple first signature values.
12, Slow deposit the more multiple first signature values of node, if identical, Slow deposits the content included in the first response message and the first URL, otherwise, and Slow does not deposit the content included in the first response message.
Once Slow deposits node and determines to be deposited by Slow corresponding to the first URL content, then exist locally by the first URL and corresponding to the first URL content Slow.When as soon as terminal initiates the service request to URL again, the content source server without waiting for SP/CP feeds back relevant content, and only need directly from local Slow deposit equipment in obtain needed for content.That is, the method that the Slow of the embodiment of the present invention deposits optimization can be determined that Slow has local Slow and deposits the Slow in equipment based on the signature value of the business tine of request and deposit content, so that bandwidth is reduced, lifting terminal traffic experience.
Specifically, for some URL (for example, first URL) access request, if content source server return response message in do not carry Slow deposit control header field or carrying Slow deposit control header field indicate not Slow deposit, then Slow deposits node Slow does not deposit the content that the response message obtained from content source server is carried, but Slow deposits temperature of the node based on the URL of access times real-time statistics the first.When the first URL temperature reaches the threshold value of setting(Threshold after), check that whether having the Slow of static configuration to deposit strategy for the first URL can match, if can then be handled according to corresponding static policies.So-called static configuration refers to, if clearly knowing that some URL are to belong to dynamic URL and be unable to Slow and deposit, it is possible to which depositing strategy for these URL Slow for configuring static state, Slow is not deposited clearly to these URL.Determine that the first URL does not have the Slow of static configuration to deposit strategy when Slow deposits node, then check the first URL whether in the blacklist that not Slow is deposited, without subsequent treatment if in blacklist, otherwise proceed following processing:
When Slow deposit node receive again to should the first URL service request after, because local no Slow deposits corresponding content, Slow, which deposits node and still needed from content source server, obtains content.During content is obtained from content source server, signature value is generated for this content got, the algorithm of generation signature value can have multiple choices, such as Message Digest Algorithm 5(MD5 , Message Digest Algorithm Or SHA 5)(SHA, Secure Hash Algorithm ).The entire content that can be returned when calculating signature value for content source server is calculated and generates single signature value, it can also be sampled that generation is single or multiple signature values to content in order to reduce amount of calculation, signature value simply for example is calculated using the preceding 16KB (Kbyte) of returned content content, or signature value is all calculated respectively to preceding 16KB and last 16KB.Calculate obtained signature value as the contents attribute obtained from content source server when Slow deposit node receive again to should the first URL service request after, because local no Slow deposits corresponding content, Slow deposits node and still needed from content source server acquisition content.Signature value is calculated using above-mentioned algorithm during content is obtained from content source server, and the signature value of this calculating and the signature value calculated before are compared.If continuous several times(For example, 2 times or 3 times)When the comparative result of the signature value for the content downloaded from content source server is all consistent, then it is assumed that to should the first URL content just can have local content using Slow with the URL of Slow the first service request service is directly provided.It is inconsistent if there is signature value result, the signature value of such as double calculating is inconsistent, illustrate that the content obtained every time from content source server has differences, therefore the content to the first URL can not be deposited in local Slow, then the first URL needs to enter in the blacklist that not Slow is deposited or reduce the first URL hot statistics value, it is to avoid carry out the follow-up judgement that whether can be deposited with Slow processing.
In order to which the Slow for further optimizing above-mentioned deposits method, the curriculum offering life span TTL (Time To Live) included in the first response message that can be deposited for institute Slow, so as to when the TTL is overtime, the content included in the first response message that Force Deletion institute Slow is deposited.Specifically, the different ttl value of the curriculum offering come is left for local Slow.When TTL is overtime, the content that the local Slow of Force Deletion is deposited, when receiving new service request again from content source server request content.This way it is possible to avoid actual content occur small change and according to the signature value of partial content technology still consistent low probability event, so that it is guaranteed that the content that Slow is deposited is consistent with the content in content source server.
Wherein, set TTL can be based on following principle.Set according to different domain names:For example for the main domain name for providing video content, the change frequency of its content is low, therefore can set longer TTL;For the main domain name for providing information, the change frequency of its content is higher, therefore the TTL set is relatively shorter.Set according to the extension name of institute's request content:The different content type of the actual correspondence of different extension name, therefore different TTL can be set.It is of course possible to which domain name and extension name are combined into setting:Different domain names is directed to, the content of identical extension name can set different ttl values.
When with the local content catering service for forcing Slow to deposit, continue to send carrying to content source server If " changed(If-Modified-Since) " header field or " is if mismatched(If-None-Match the) " request of header field, allows content source server to record user access logses, while advantageously ensuring that the timely refreshing of content.
Because under some scenes, SP/CP needs to see the request of original user to collect the access log of user, at this moment Slow deposit node can be with pseudo-terminal to content source server initiating business request, whether the content according to the entity value information of the requested variable carried in service request checking Slow so as to content source server and deposit is changed.
For example, carrying the temporal information for the content generation that Slow is deposited in If-Modified-Since header fields, content source server can judge whether the content that Slow is deposited refreshed according to the information;Or If-None-Match header fields carry the entity value for the content generation that Slow is deposited(Etag) signing messages, content source server can judge whether the content that Slow is deposited refreshed according to the signing messages.
Specifically, downloaded in the Slow HTTP for depositing node transmission(HTTP Get) If-Modified-Since header fields or If-None-Match header fields are carried in request message, whether the temporal information or the Etag signing messages of the requested variable of If-None-Match header fields carrying that content source server directly can be carried according to If-Modified-Since header fields be changed come the scope of examination.If do not changed, " 304 can be directly replied:Not modified (are not changed)" response message in the response message without carrying actual data, therefore can equally reduce bandwidth.
The method that optimization is deposited according to Slow as shown in Figure 1, determines to be deposited by Slow corresponding to the first URL content, then exists locally by the first URL and corresponding to the first URL content Slow once Slow deposits node.When as soon as terminal initiates the service request to URL again, the content source server without waiting for SP/CP feeds back relevant content, and only need directly from local Slow deposit equipment in obtain needed for content.
But; when disposing practical business; SP/CP is for the consideration for protecting oneself business and content; indicated except giving tacit consent to not carry Slow and deposit control header field or carry Slow and deposit control header field in the response message in addition to Slow is not deposited; the URL for same content, i.e. SP/CP can also be converted and issue different URL to different users for same content.From the point of view of Slow deposits the request that node is received, the URL each asked is different, is substantially and is locally not hit by if simply being gone to search the content that Slow is deposited according to URL.
For above-mentioned situation, it still can realize that active Slow is deposited using signature value, so as to reduce bandwidth, lifting terminal traffic experience, detailed implementation process is as follows.
First, Slow deposits node and gets after content the signature value while calculating section content from content source server, for example calculate the signature value of preceding 16KB contents and the signature value of rear 16KB contents, calculate obtained signature value and content is all stored in locally, closed while the signature value of 16KB contents is corresponding with content before setting up System, i.e., in addition to the content that Slow is deposited can be indexed according to URL, can also index the content that Slow is deposited according to signature value.
When Slow, which deposits node, receives the 2nd URL of correspondence new access request, will search locally whether Slow has content corresponding with the 2nd URL asked according to the 2nd URL, if the content catering service that can be then deposited based on Slow.The 16KB content before first being asked without if to content source server, 16KB content can be by carrying scope in HTTP Get request message before request(Range) header field indicates request scope to realize, for example: Range: bytes=0- 16383.
Deposited in Slow before node is received after 16KB content, content to this 16KB calculates signature value, the content that the signature value calculated is deposited as the local Slow of index search, illustrate locally to deposit asked content without Slow if the result for not finding matching, therefore need to continue to ask remaining content delivery to terminal from content source server, remaining content is asked to indicate to ask scope to be realized by carrying Range header fields in HTTP Get request message, for example: Range: bytes=16384-.The signature value of 16KB contents and the content of request and corresponding signature value Slow are present local after calculating again during from content source server request content.
If finding the signature value for the content that local Slow is deposited as the signature value of the content for the preceding 16KB that this is calculated, it may be exactly the content of this service request to illustrate content that local Slow is deposited.In order to confirm further can be verified and examined, Slow deposits the content that node asks last 16KB to content source server again, and this can also indicate to ask scope to be realized by carrying Range header fields in HTTP Get request message, for example: Range: bytes=-16384.Deposited in Slow after node is received after 16KB content, the content to rear 16KB also calculates signature value, the signature value for the rear 16KB contents that the local Slow indexed by the signature value calculated and before according to the signature value of preceding 16KB contents deposits content is compared.If consistent, then the content that can be deposited using local Slow of explanation is come for end users with services, if inconsistent, then explanation locally deposits asked content without Slow, therefore need to continue to ask remaining content delivery to terminal from content source server, remaining content is asked to indicate to ask scope to be realized by carrying Range header fields in HTTP Get request message, for example: Range: bytes= 16384-.
By above description as can be seen that in addition to the content that Slow is deposited can be indicated according to the URL of raw requests, content can also be indicated according to the signature value of content.When handling in this manner, for Hot Contents, even if the URL of request is different, content that local Slow deposits also is available with after content is identified according to signature value to provide service.
In actual applications, if for improving performance, the generation and verification of the corresponding signature value of rear 16KB contents can also be omitted, i.e., simply recognize content according to the signature value of above 16KB contents.Certainly, A variety of variation patterns can be had by being used for calculating the content of signature value in practice, such as by original document burst, and part combination of bytes is extracted from every to calculating signature value again together.
In summary, alternatively, in addition to Slow deposits the content included in the first response message and the first URL, Slow deposits that node is set up and Slow deposits corresponding relation between the content included in the first response message that institute Slow is deposited and the first signature value.Therefore, when Slow, which deposits node, receives the URL of terminal-pair the 2nd service request, if the 2nd URL is identical with the first URL that institute Slow is deposited, corresponding relation between the content and the first signature value included in the content included in the first response messages for depositing of institute Slow corresponding to the first URL, the first response message otherwise deposited based on the service request to the 2nd URL and institute Slow is then sent to terminal from the content source(Server)The second response message is received, and determines the second signature value of content included in second response message.Slow deposits node and compares the second signature value and the first signature value, if identical, the content included in the first response message that institute Slow is deposited is sent to terminal, otherwise will be from content source(Server)The full content of the content included in the second response message received is sent to terminal.
Slow storages according to embodiments of the present invention are shown in Fig. 2.In fig. 2, Slow storages 20 include processing unit 21 and comparing unit 22.Wherein, processing unit 21 is used for multiple service requests of the receiving terminal to the first URL, and multiple first response messages are received from content source based on the multiple service request respectively, when do not carried in the multiple first response message Slow deposit control header field or carrying Slow deposit control header field indicate not Slow deposit, the first signature value of content included in the multiple first response message is determined respectively.For example, processing unit 21 can determine the first signature value according to the partial content of the content included in first response message;Or the first signature value can be determined according to the full content of the content included in first response message.Comparing unit 22 is used to compare multiple first signature values, if identical, then the Slow storages Slow deposits the content included in first response message and the first URL, and otherwise Slow does not deposit the content included in first response message to the Slow storages.
Therefore, the Slow storages of the embodiment of the present invention can be determined that Slow has local Slow and deposits the Slow in equipment based on the signature value of the business tine of request and deposit content, so that bandwidth is reduced, lifting terminal traffic experience.
Slow storages according to another embodiment of the present invention are shown in Fig. 3.In figure 3, except processing unit 21 and comparing unit 22, Slow storages 30 also include statistic unit 23 and determining unit 24.Wherein, statistic unit 23 is used for the temperature for counting the URL.Determining unit 24 is used to, when the temperature of the URL exceeds threshold value, determine that the URL is not statically configured and not in blacklist.
The Slow storages according to further embodiment of this invention are shown in Fig. 4.In Fig. 4, except processing unit 21, comparing unit 22, statistic unit 23 and determining unit 24, Slow storages 40 also include setting unit 25.The curriculum offering that the setting unit 25 is used to include in the first response message for depositing for institute Slow is survived Time TTL, so as to when the TTL is overtime, the content included in the first response message that Force Deletion institute Slow is deposited.
Slow storages according to yet another embodiment of the invention are shown in Fig. 5.In Figure 5, except processing unit 21, comparing unit 22, statistic unit 23, determining unit 24 and setting unit 25, Slow storages 50 also include analogue unit 26.The analogue unit 26 is used for pseudo-terminal to the content source initiating business request, so that whether the content source is changed according to the entity value information of the requested variable carried in the service request come the scope of examination.
The Slow storages according to further embodiment of this invention are shown in Fig. 6.In figure 6, except processing unit 21, comparing unit 22, statistic unit 23, determining unit 24, setting unit 25 and analogue unit 26, Slow storages 60 also include setting up unit 27, and this sets up the corresponding relation that unit 27 is used to set up in the first response message that institute Slow is deposited between the content and the first signature value included.Thus, processing unit 21 is further used for service request of the receiving terminal to the 2nd URL, if the 2nd URL is identical with the first URL that institute Slow is deposited, the content included in the first response message deposited corresponding to the institute Slow of the first URL is then sent to terminal, otherwise the second response message is received from the content source based on the service request and the corresponding relation to the 2nd URL, determines the second signature value of content included in second response message.Comparing unit 22 is further used for the second signature value described in comparison and the first signature value, if identical, the content included in the first response message that then the Slow storages deposit institute Slow is sent to the terminal, and the full content of the content included in the second response message that otherwise the Slow storages will be received from the content source is sent to terminal.
In summary, the Slow storages of the embodiment of the present invention can be changed with the temperature of real-time tracking content, and temperature is high and content Slow as local as possible that can actually be deposited with Slow leaves, so that reduction bandwidth is played, the effect of lifting terminal traffic experience.In addition, the Slow storages of the embodiment of the present invention are when with the local content catering service for forcing Slow to deposit, continue to send the request for carrying If-Modified-Since header fields or If-None-Match header fields to content source server as needed, content source server can continue to keep the record to user access logses, but actual returned content is not needed, therefore also improve the performance of content source server.
Fig. 7 shows the system that Slow according to embodiments of the present invention deposits optimization.Between multiple Slow deposit node Real-Time Sharing to URL whether the analysis result that can be deposited with Slow, Slow can be shared i.e. in whole network and deposits strategy, so as to avoiding multiple Slow from depositing computing repeatedly for node, allow can the contents deposited of Slow Slow is stored to locally as early as possible, and then the performance of the whole Slow deposit systems of lifting.
For example, as shown in fig. 7, the system 70 that Slow according to embodiments of the present invention deposits optimization includes multiple Slow storages 71, service management device 72 and scalable message processing Presence Protocol(XMPP, The Extensible Messaging and Presence Protocol) server 73.Wherein, multiple Slow storages 71 can be Slow storages as shown in Figures 2 to 6.XMPP server 73, can obtain the issue of service management device 72 Slow deposit rule and each issue of Slow storages 71 to URL whether the analysis result that can be deposited with Slow, so as to service management device 72 by XMPP server 73 know that each Slow storages 71 issue to URL whether the analysis result that can be deposited with Slow, and each Slow storages 71 by XMPP servers 73 know that Slow that service management device 72 is issued deposits rule and other Slow storages are issued to the URL whether the analysis result that can be deposited with Slow.Therefore, the Slow of the embodiment of the present invention is deposited the system of optimization and can be determined that Slow has local Slow and deposits the Slow in equipment based on the signature value of the business tine of request and deposit content, so that bandwidth is reduced, lifting terminal traffic experience.
In practice, node can be deposited by sharing each Slow(For example, Slow storages 71) analysis result, so as to optimize overall Slow sustainability energy.For example, the publish/subscribe model based on XMPP realizes that Slow deposits the issue of analysis result and shared.Specifically, service management device 72 can as publisher, can according to configuration issued to XMPP server 73 known to Slow deposit rule;Each Slow deposits node(For example, Slow storages 71) can also as publisher, to the real-time release of XMPP server 73 Slow deposit node to URL whether the analysis result that can be deposited with Slow;Service management device 72 also serves as subscriber simultaneously, to XMPP server 73 subscribe to other Slow deposit node real-time release to URL whether the analysis result that can be deposited with Slow, these results can help operator to carry out deeper analysis and conclusion, may finally form static rule and be configured to all Slow and deposit on node;Each Slow deposits node(For example, Slow storages 71) while be also all that, as subscriber, the Slow issued to the subscribing service managing device 72 of XMPP server 73 deposits rule, while also subscribe to other Slow deposit node issue to URL whether the analysis result that can be deposited with Slow.If for example, a Slow deposits node(For example, Slow storages 71) from other Slow deposit node and receive some URL and can be deposited using Slow and be currently locally to deposit processing as being unable to Slow, then after temperature reaches threshold value can directly Slow exist it is local without whether consistent with verification is calculated;If a Slow deposits node(For example, Slow storages 71) from other Slow deposit node receive some URL cannot Slow deposit, during directly the URL is put into is unable to the blacklist that Slow is deposited.Analysis result is shared between depositing node by this multiple Slow, it is possible to reduce the operation that verification is compared in whole network, so as to improve the performance of whole system.
Those of ordinary skill in the art are it is to be appreciated that the unit and algorithm steps of each example described with reference to the embodiments described herein, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel can realize described function to each specific application using distinct methods, but this realization is it is not considered that beyond the scope of this invention. It is apparent to those skilled in the art that, the specific work process of the system of foregoing description, device and unit clean for the convenience and cylinder of description may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can realize by another way.For example, device embodiment described above is only schematical, for example, the division of the unit, it is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.Another, it, by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, can be electrical, machinery or other forms that shown or discussed coupling or direct-coupling or communication connection each other, which can be,.
The unit illustrated as separating component can be or may not be physically separate, and the part shown as unit can be or may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each of the invention embodiment can be integrated in a processing unit or unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized using in the form of SFU software functional unit and as independent production marketing or in use, can be stored in a computer read/write memory medium.Understood based on such, the part or the part of the technical scheme that technical scheme substantially contributes to prior art in other words can be embodied in the form of software product, the computer software product is stored in a storage medium, including some instructions are to cause a computer equipment(Can be personal computer, server, or network equipment etc.)Perform all or part of step of each embodiment methods described of the invention.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It is described above; only embodiment of the invention, but protection scope of the present invention is not limited thereto, any one skilled in the art the invention discloses technical scope in; change or replacement can be readily occurred in, should be all included within the scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (15)

  1. Claim
    1st, a kind of method that Slow deposits optimization, it is characterised in that including:
    Multiple service requests of the receiving terminal to the first uniform resource position mark URL, and multiple first response messages are received from content source based on the multiple service request respectively, when do not carried in the multiple first response message Slow deposit control header field or carrying Slow deposit control header field indicate not Slow deposit, the first signature value of content included in the multiple first response message is determined respectively;
    Compare multiple first signature values, if identical, Slow deposits the content included in first response message and the first URL, if it is not the same, Slow does not deposit the content included in first response message.
    2nd, according to the method described in claim 1, it is characterised in that before multiple service requests of the receiving terminal to the first uniform resource position mark URL, in addition to:
    Count the temperature of the first URL;
    If the temperature of the first URL exceeds threshold value, determine whether the first URL is statically configured and whether in blacklist.
    3rd, method according to claim 1 or 2, it is characterised in that the first signature value of the content for determining to include in the multiple first response message respectively includes:
    Determine the first signature value of the partial content of the content included in first response message;Or determine the first signature value of the full content of the content included in first response message.
    4th, according to the method in any one of claims 1 to 3, it is characterised in that after the Slow deposits the content included in first response message, in addition to:
    The curriculum offering life span TTL included in the first response message deposited for the Slow, so as to when the TTL is overtime, the content included in the first response message that Slow described in Force Deletion is deposited.
    5th, method according to any one of claim 1 to 4, it is characterised in that also include:Pseudo-terminal is to the content source initiating business request, so that the content source checks whether the content that Slow is deposited is changed according to the entity value information of the requested variable carried in the service request.
    6th, method according to any one of claim 1 to 5, it is characterised in that also include:The corresponding relation set up in the first response message that the Slow is deposited between the content and the first signature value included.
    7th, method according to claim 6, it is characterised in that also include:
    Receiving terminal to the 2nd URL service request, if the 2nd URL and Slow deposit described the One URL is identical, the content included in the first response message deposited corresponding to the Slow of the first URL is then sent to the terminal, otherwise, second response message is received from the content source based on the service request and the corresponding relation to the 2nd URL, the second signature value of content included in second response message is determined;
    Compare the second signature value and the first signature value, if identical, the content included in the first response message that then Slow is deposited is sent to the terminal, if it is not the same, the full content of the content included in the second response message that will be received from the content source is sent to the terminal.
    8th, a kind of Slow storages, it is characterised in that including:
    Processing unit, for multiple service requests of the receiving terminal to the first uniform resource position mark URL, and multiple first response messages are received from content source based on the multiple service request respectively, when do not carried in the multiple first response message Slow deposit control header field or carrying Slow deposit control header field indicate not Slow deposit, the first signature value of content included in the multiple first response message is determined respectively;
    Comparing unit, for comparing multiple first signature values, if identical, the Slow storages Slow deposits the content included in first response message and the first URL, if it is not the same, Slow does not deposit the content included in first response message to the Slow storages.
    9th, Slow storages according to claim 8, it is characterised in that also include:
    Statistic unit, the temperature for counting the first URL;
    Determining unit, if the temperature for the first URL exceeds threshold value, determines whether the first URL is statically configured and whether in blacklist.
    10th, Slow storages according to claim 8 or claim 9, it is characterised in that the processing unit specifically for:
    Determine the first signature value of the partial content of the content included in first response message;Or determine the first signature value of the full content of the content included in first response message.
    11st, the Slow storages according to any one of claim 8 to 10, it is characterised in that also including setting unit, for the curriculum offering life span included in the first response message for being deposited for the Slow
    TTL, so as to when the TTL is overtime, the content included in the first response message that Slow described in Force Deletion is deposited.
    12nd, the Slow storages according to any one of claim 8 to 11, it is characterised in that also include:
    Analogue unit, for pseudo-terminal to the content source initiating business request, so that the content source checks whether is content that Slow deposits according to the entity value information of the requested variable carried in the service request Changed.
    13rd, the Slow storages according to any one of claim 8 to 12, it is characterised in that also include:
    Unit is set up, for the corresponding relation between the content and the first signature value that include to be set up in the first response message that the Slow is deposited.
    14th, Slow storages according to claim 13, it is characterised in that
    The processing unit is further used for service request of the receiving terminal to the 2nd URL, if the 2nd URL is identical with the first URL that Slow is deposited, the content included in the first response message deposited corresponding to the Slow of the first URL is then sent to the terminal, otherwise, second response message is received from the content source based on the service request and the corresponding relation to the 2nd URL, the second signature value of content included in second response message is determined;
    The comparing unit is further used for the second signature value described in comparison and the first signature value, if identical, the content included in the first response message that then the Slow storages deposit the Slow is sent to the terminal, if it is not the same, the full content of the content included in the second response message that the Slow storages will be received from the content source is sent to the terminal.
    15th, the system that a kind of Slow deposits optimization, it is characterised in that including:
    Multiple Slow storages as any one of claim 8 to 14;
    Service management device;
    Scalable message handles Presence Protocol XMPP server, for obtain the Slow of service management device issue deposit regular and each Slow storages issue to uniform resource position mark URL whether the analysis result that can be deposited with Slow, so as to the service management device by the XMPP server know that each Slow storages issue to uniform resource position mark URL whether the analysis result that can be deposited with Slow, and each Slow storages by the XMPP server knows that Slow that the service management device is issued deposits rule and other Slow storages are issued to the URL whether the analysis result that can be deposited with Slow.
CN201280000262.7A 2012-01-31 2012-01-31 The system of the method, buffer and cache optimization of cache optimization Active CN103416027B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/070791 WO2013113150A1 (en) 2012-01-31 2012-01-31 Cache optimization method, cache and cache optimization system

Publications (2)

Publication Number Publication Date
CN103416027A true CN103416027A (en) 2013-11-27
CN103416027B CN103416027B (en) 2017-06-20

Family

ID=48904361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280000262.7A Active CN103416027B (en) 2012-01-31 2012-01-31 The system of the method, buffer and cache optimization of cache optimization

Country Status (2)

Country Link
CN (1) CN103416027B (en)
WO (1) WO2013113150A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959361A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 Task distribution method, task distribution device, and task distribution system
CN106789857A (en) * 2015-11-25 2017-05-31 中国移动通信集团公司 A kind of information interacting method, equipment and caching system
CN109788047A (en) * 2018-12-29 2019-05-21 山东省计算中心(国家超级计算济南中心) A kind of cache optimization method and a kind of storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108471355A (en) * 2018-02-28 2018-08-31 哈尔滨工程大学 A kind of Internet of Things Information Interoperability method based on extra large cloud computing framework
CN110555184A (en) * 2019-09-06 2019-12-10 深圳市珍爱捷云信息技术有限公司 resource caching method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1286443A (en) * 1999-08-28 2001-03-07 Lg情报通信株式会社 Wireless internet service method in gateway system
CN101473590A (en) * 2006-05-05 2009-07-01 奥多比公司 System and method for cacheing WEB files
CN101706827A (en) * 2009-08-28 2010-05-12 四川虹微技术有限公司 Method for caching file of embedded browser
CN101888349A (en) * 2009-05-13 2010-11-17 上海即略网络信息科技有限公司 Interworking gateway of MSN and XMPP
CN102096712A (en) * 2011-01-28 2011-06-15 深圳市五巨科技有限公司 Method and device for cache-control of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040010543A1 (en) * 2002-07-15 2004-01-15 Steven Grobman Cached resource validation without source server contact during validation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1286443A (en) * 1999-08-28 2001-03-07 Lg情报通信株式会社 Wireless internet service method in gateway system
CN101473590A (en) * 2006-05-05 2009-07-01 奥多比公司 System and method for cacheing WEB files
CN101888349A (en) * 2009-05-13 2010-11-17 上海即略网络信息科技有限公司 Interworking gateway of MSN and XMPP
CN101706827A (en) * 2009-08-28 2010-05-12 四川虹微技术有限公司 Method for caching file of embedded browser
CN102096712A (en) * 2011-01-28 2011-06-15 深圳市五巨科技有限公司 Method and device for cache-control of mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789857A (en) * 2015-11-25 2017-05-31 中国移动通信集团公司 A kind of information interacting method, equipment and caching system
CN106789857B (en) * 2015-11-25 2020-08-14 中国移动通信集团公司 Information interaction method, equipment and cache system
CN105959361A (en) * 2016-04-25 2016-09-21 乐视控股(北京)有限公司 Task distribution method, task distribution device, and task distribution system
CN109788047A (en) * 2018-12-29 2019-05-21 山东省计算中心(国家超级计算济南中心) A kind of cache optimization method and a kind of storage medium
CN109788047B (en) * 2018-12-29 2021-07-06 山东省计算中心(国家超级计算济南中心) Cache optimization method and storage medium

Also Published As

Publication number Publication date
WO2013113150A1 (en) 2013-08-08
CN103416027B (en) 2017-06-20

Similar Documents

Publication Publication Date Title
US10791201B2 (en) Server initiated multipath content delivery
US10778801B2 (en) Content delivery network architecture with edge proxy
US10334016B2 (en) System and method for context specific website optimization
US9888089B2 (en) Client side cache management
CN107124630B (en) Method and device for node data management
US20160234303A1 (en) Peer-to-Peer Upload Scheduling
CN107025234B (en) Information pushing method and cache server
US9722950B2 (en) Processing resource access request in network
CN103347068B (en) A kind of based on Agent cluster network-caching accelerated method
CN103841045B (en) A kind of internet method for caching and processing, content detection subsystem and Cache systems
CN102737065B (en) Method and device for acquiring data
CN111614736A (en) Network content resource scheduling method, domain name scheduling server and electronic equipment
CN103001964B (en) Buffer memory accelerated method under a kind of LAN environment
EP3021537B1 (en) Method, device and system for determining content acquisition path and processing request
WO2021253889A1 (en) Load balancing method and apparatus, proxy device, cache device and serving node
CN103716391A (en) Implementation method for content caching and router
Hefeeda et al. Design and evaluation of a proxy cache for peer-to-peer traffic
CN103973834A (en) Domain name resolution (DNS) acceleration method and device based on home gateway
CN103416027A (en) Cache optimization method, cache and cache optimization system
CN105978936A (en) CDN server and data caching method thereof
US9055113B2 (en) Method and system for monitoring flows in network traffic
US7739364B2 (en) Method and apparatus for dynamically reconfiguring a server system
CN103825916B (en) A kind of resource downloading method and system
CN109714208A (en) A kind of equipment is included in method, storage medium and the electronic equipment of network management
CN103685344A (en) Synergetic method and system for multiple P2P (point-to-point) cache peers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220209

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right