CN106686033A - Method, device and system for cache and service content - Google Patents
Method, device and system for cache and service content Download PDFInfo
- Publication number
- CN106686033A CN106686033A CN201510760276.4A CN201510760276A CN106686033A CN 106686033 A CN106686033 A CN 106686033A CN 201510760276 A CN201510760276 A CN 201510760276A CN 106686033 A CN106686033 A CN 106686033A
- Authority
- CN
- China
- Prior art keywords
- mark
- url
- content
- access request
- cache
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000014509 gene expression Effects 0.000 claims description 50
- 238000012217 deletion Methods 0.000 claims description 5
- 230000037430 deletion Effects 0.000 claims description 5
- RZTAMFZIAATZDJ-UHFFFAOYSA-N felodipine Chemical compound CCOC(=O)C1=C(C)NC(C)=C(C(=O)OC)C1C1=CC=CC(Cl)=C1Cl RZTAMFZIAATZDJ-UHFFFAOYSA-N 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 6
- 244000089409 Erythrina poeppigiana Species 0.000 description 2
- 235000009776 Rathbunia alamosensis Nutrition 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method, a device and a system for a cache and a service content. The method comprises steps: a request routing (RR) device hijacks an access request of user equipment; the RR device acquires an identifier corresponding to a URL (Uniform Resource Locator) in the access request, and when the acquired identifier can not be found out in a pre-stored identifier, a pre-cache message is sent to a content load balancing device; the content load balancing device acquires the identifier corresponding to the URL in the pre-cache message, and the pre-cache message is sent to a cache device corresponding to the acquired identifier; the cache device acquires the identifier corresponding to the URL in the pre-cache message, a path corresponding to the identifier is calculated, the content corresponding to the URL downloaded from a server is cached to the path obtained through calculation, and a cache success message is sent to the RR device; and the RR device saves the acquired identifier. Through the scheme of the invention, the identifier corresponding to the URL serves as a unique identifier of the content, the same content corresponding to different URLs only needs to be cached for one time, the storage space utilization rate is improved, and the bandwidth use rate is improved.
Description
Technical field
The present invention relates to the methods, devices and systems of internet arena, espespecially a kind of caching and service content.
Background technology
With the fast development of internet, various the Internet, applications are continued to bring out, and broadband resource consumption is got over
Come bigger, the acquisition modes of traditional Web content are client-server end model, and user's is all
Access request is all sent to server and goes to process, and causes network congestion and server overload, causes to use
The access time delay at family is larger.
In order to lift the Experience Degree of user, caching system is increasingly welcome by operator.Fig. 1 is obtained for user
Take the schematic diagram of Web content.As shown in figure 1, user is sent out by access network and router to server
Access request is sent to obtain Web content, caching system is deployed in existing Internet protocol (IP, Internet
Protocol) in bearer network, the Hot Contents or certain content in internet are stored, by guiding user
Access request be forwarded in caching system, required internet data is provided the user by caching system,
Avoid directly from the server download data of internet source station, so as to effectively evade the congestion of network link
Problem, reduces the time delay that user accesses internet content, lifts the data service Experience Degree of user, while
Can also reduce because of closing the account produced by flow between net.
Caching system is supported to browse Web (WWW), file download, video playback etc. are based on super literary
The Internet service of this host-host protocol (HTTP, Hypertext Transfer Protocol) is accelerated,
Caching system does not have particular requirement for locally stored file format, audio frequency and video and document No. mode,
The files such as all kinds of internet audios, video, image, text can realize caching and add by caching system
Speed service.
Caching system supports mobile cellular net (such as 2G, 3G or Long Term Evolution (LTE, Long Term
Evolution)), WLAN (WLAN, Wireless Local Area Networks), fixation
The different network access mode such as broadband, and can be simultaneously PC (PC, Personal
Computer), the Terminal for service of the different shape such as mobile terminal.
The method of existing caching and service content is generally comprised:
Request route (RR, Request Routing) device kidnaps the access request of user equipment;Wherein,
Access request includes uniform resource locator (URL, Uniform Resource Locator);RR devices
Access request, content load balancer is forwarded to calculate using hash algorithm and visit to content load balancing apparatus
The cryptographic Hash of the URL in request is asked, access request is transmitted into the corresponding caching of calculated cryptographic Hash
Equipment;Buffer memory device adopts Message Digest Algorithm 5 (MD5, Message Digest Algorithm 5)
The corresponding paths of URL are calculated, and downloads from a server the corresponding contents of URL, the content that will be downloaded
Under being saved in calculated path, and the content of download is sent into user equipment.
In the method for existing cache contents, using URL as the unique mark of content cache contents are carried out, by
Can there is difference because of the difference of some parameters in the URL of same content, therefore, can repeatedly in caching system
Same content is preserved in system, memory space is wasted, and due to needing repeatedly to download from a server content
And reduce the utilization rate of bandwidth.For example,http://222.132.5.19/edge.v.iask.com/138364612.hlvKID=sina, viask&Expires=14 35766400&ssig=sjhlPQskgr&sid=138364612_1435653150890_175 1_68896&ws Hc_tag=1&wsts_tag=55925414&wsid_tag=d233c309&wsiphost=ip dbmWithhttp://218.58.222.57/edge.v.iask.com/138364612.hlvKID=sina, viask&Expires=1 435766400&ssig=sjhlPQskgr&sid=138364612_1435653263781_64 3_35962&ws Hc_tag=1&wsts_tag=55925485&wsid_tag=d233c309&wsiphost=ip dbm;Wherein,
222.132.5.19 with the IP address that 218.58.222.57 is client, edge.v.iask.com is what is accessed
Web site name, 138364612.hlv is the content name for accessing,The parameter for URL below, this
What two URL were represented is same content, and URL because parameter it is different and different, so as to lead
Cause the content to preserve twice, waste memory space, and reduce the speed of bandwidth.
The content of the invention
In order to solve the above problems, the present invention propose a kind of caching and the method for service content, device and
System, it is possible to increase the utilization rate of memory space, and improve the utilization rate of bandwidth.
In order to achieve the above object, a kind of method that the present invention proposes caching and service content, including:
Request route RR devices kidnap the access request of user equipment;
RR devices obtain the corresponding marks of resource localizer URL in access request, what is pre-saved
Search in mark less than the mark for obtaining, to content load balancing apparatus pre-cache message is sent;
Content load balancer obtains the corresponding marks of URL in pre-cache message, by pre-cache message
It is sent to the corresponding buffer memory device of mark of acquisition;
Buffer memory device obtains the corresponding marks of URL in pre-cache message, calculates the corresponding path of mark,
By the corresponding content cachings of the URL for downloading from a server to calculated path, and to RR devices
Send the successful message of caching;
RR devices preserve the mark for obtaining.
Preferably, also include before the method:
The RR devices judge that the corresponding contents of the URL are accessed for number of times more than or equal to first
Predetermined threshold value.
Preferably, the corresponding marks of URL that the RR devices are obtained in access request include:
In corresponding relation of the RR devices between the regular expression and mark for pre-setting, search
Mark corresponding with the regular expression that the URL in the access request matches.
Preferably, the content load balancer obtains the corresponding mark bags of URL in pre-cache message
Include:
Corresponding relation of the content load balancer between the regular expression and mark for pre-setting
In, search mark corresponding with the regular expression that the URL in the pre-cache message matches.
Preferably, the corresponding marks of URL that the buffer memory device is obtained in pre-cache message include:
In corresponding relation of the buffer memory device between the regular expression and mark for pre-setting, search
Mark corresponding with the regular expression that the URL in the pre-cache message matches.
Preferably, when the buffer memory device judges that the content for caching exceedes the term of validity;Or, judge
When the total size of caching or the number of caching are more than or equal to the second predetermined threshold value, the method also includes:
The buffer memory device deletes the content of the caching more than the term of validity, or deletes accessed number of times minimum
The content of caching.
Preferably, when RR devices find the mark of acquisition in the mark for pre-saving, the method
Also include:
The RR devices send to user equipment and represent the mark for redirecting;
The content load balancer receives the access request from the user equipment, obtains described
The corresponding marks of URL in access request, send to the user equipment and represent the mark for redirecting;
The corresponding buffer memory device of mark of acquisition receives the access request from the user equipment, obtains
The corresponding marks of URL in the access request, calculate the corresponding path of mark, by the content in path
It is sent to user equipment.
The invention allows for a kind of request route RR devices, at least include:
Module is kidnapped, for kidnapping the access request of user equipment;
First sending module, for obtaining access request in the corresponding marks of resource localizer URL,
Search in the mark for pre-saving less than the mark for obtaining, send pre-cache to content load balancing apparatus and disappear
Breath;
First receiver module, it is corresponding slow for receiving the corresponding marks of the URL in access request
The successful message of caching of equipment is deposited, the mark for obtaining is preserved.
Preferably, it is described abduction module specifically for:
Judge that the corresponding contents of the URL are accessed for number of times more than or equal to the first predetermined threshold value, rob
Hold the access request of user equipment.
Preferably, first sending module specifically for:
In corresponding relation between the regular expression and mark for pre-setting, searching please with the access
The corresponding mark of regular expression that URL in asking matches, search in the mark for pre-saving less than
The mark of acquisition, to content load balancing apparatus pre-cache message is sent.
Preferably, first sending module is additionally operable to:
The mark of acquisition is found in the mark for pre-saving, is sent to user equipment and is represented what is redirected
Mark.
The invention allows for a kind of content load balancer, at least includes:
Second receiver module, for receiving the pre-cache message from request route RR devices;
Second sending module, for obtaining pre-cache message in the corresponding marks of URL, pre-cache is disappeared
Breath is sent to the corresponding buffer memory device of mark of acquisition.
Preferably, second sending module specifically for:
In corresponding relation between the regular expression and mark for pre-setting, search and the pre-cache
The corresponding mark of regular expression that URL in message matches, by pre-cache message acquisition is sent to
Identify corresponding buffer memory device.
Preferably, second receiver module is additionally operable to:
Receive the access request from user equipment;
Second sending module is additionally operable to:
The corresponding marks of URL in the access request are obtained, expression is sent to the user equipment and is reset
To mark.
The invention allows for a kind of buffer memory device, at least includes:
3rd receiver module, for receiving the pre-cache message from content load balancer;
3rd sending module, for obtaining pre-cache message in the corresponding marks of URL, calculate mark it is right
The path answered, by the corresponding content cachings of the URL for downloading from a server to calculated path, and
The successful message of caching is sent to RR devices.
Preferably, the 3rd sending module specifically for:
In corresponding relation between the regular expression and mark for pre-setting, search and the pre-cache
The corresponding mark of regular expression that URL in message matches, calculates the corresponding path of mark, will be from
The corresponding content cachings of URL downloaded on server send to calculated path to RR devices
Cache successful message.
Preferably, also include:
Removing module, for judging that the content for caching exceedes the term of validity;Or, judge the total of caching
The number of size or caching is more than or equal to the second predetermined threshold value, deletes the content of the caching more than the term of validity,
Or the content of the caching of the accessed number of times minimum of deletion.
Preferably, the 3rd receiver module is additionally operable to:
Receive the access request from user equipment;
3rd sending module is additionally operable to:
The corresponding marks of URL in the access request are obtained, the corresponding path of mark is calculated, by path
In content be sent to user equipment.
The invention allows for the system of a kind of caching and service content, at least includes:
Request route RR devices, for kidnapping the access request of user equipment;In obtaining access request
The corresponding marks of resource localizer URL, search less than the mark for obtaining in the mark for pre-saving, to
Content load balancer sends pre-cache message;The successful message of caching from buffer memory device is received,
Preserve the mark for obtaining;
Content load balancer, for obtaining pre-cache message in the corresponding marks of URL, will be pre- slow
Deposit the corresponding buffer memory device of mark that message is sent to acquisition;
Buffer memory device, for obtaining pre-cache message in the corresponding marks of URL, calculate mark it is corresponding
Path, by the corresponding content cachings of the URL for downloading from a server to calculated path, and to
RR devices send the successful message of caching.
Preferably, the RR devices are additionally operable to:
The mark of acquisition is found in the mark for pre-saving, is sent to user equipment and is represented what is redirected
Mark;
The content load balancer is additionally operable to:
The access request from the user equipment is received, the URL correspondences in the access request are obtained
Mark, to the user equipment send represent redirect mark;
The buffer memory device is additionally operable to:
The access request from the user equipment is received, the URL correspondences in the access request are obtained
Mark, calculate the corresponding path of mark, the content in path is sent into user equipment.
Compared with prior art, technical scheme includes:Request route RR devices kidnap user
The access request of equipment;RR devices obtain the corresponding marks of resource localizer URL in access request,
Search in the mark for pre-saving less than the mark for obtaining, to content load balancing apparatus pre-cache is sent
Message;Content load balancer obtains the corresponding marks of URL in pre-cache message, and pre-cache is disappeared
Breath is sent to the corresponding buffer memory device of mark of acquisition;Buffer memory device obtains the URL in pre-cache message
Corresponding mark, calculates the corresponding path of mark, and the corresponding contents of the URL for downloading from a server are delayed
Calculated path is stored to, and the successful message of caching is sent to RR devices;RR devices are preserved and obtained
Mark.By the solution of the present invention, using the corresponding unique marks identified as content of URL so that
The corresponding identical content of different URL only need to be cached once, so as to improve the utilization rate of memory space,
Improve the utilization rate of bandwidth.
Description of the drawings
The accompanying drawing in the embodiment of the present invention is illustrated below, the accompanying drawing in embodiment is for this
Bright further understands, and is used to explain the present invention together with specification, does not constitute to present invention protection model
The restriction enclosed.
Fig. 1 is the schematic diagram that existing user obtains Web content;
Fig. 2 is the flow chart of the method for present invention caching and service content;
Fig. 3 is the structure composition schematic diagram of RR devices of the present invention;
Fig. 4 is the structure composition schematic diagram of present invention load balancing apparatus;
Fig. 5 is the structure composition schematic diagram of buffer memory device of the present invention;
Fig. 6 is the structure composition schematic diagram of the system of present invention caching and service content.
Specific embodiment
For the ease of the understanding of those skilled in the art, the present invention is further retouched below in conjunction with the accompanying drawings
State, can not be used for limiting the scope of the invention.It should be noted that in the case where not conflicting,
The various modes in embodiment and embodiment in the application can be mutually combined.
Referring to Fig. 2, the present invention proposes a kind of method of cache contents, including:
Step 200, RR devices kidnap the access request of user equipment.
In this step, access request includes URL.
In this step, RR devices kidnap the access request that the access request of user equipment refers to user equipment
Server is no longer sent to, and is sent to content load balancer.
In this step, how RR devices kidnap the access request of user equipment belongs to those skilled in the art
Known technology, the protection domain being not intended to limit the present invention repeats no more here.
Step 201, RR devices obtain the corresponding marks of URL in access request, what is pre-saved
Search in mark less than the mark for obtaining, to content load balancing apparatus pre-cache message is sent.
In this step, RR devices also forward the access request from user equipment to server, by servicing
Device provides service for user equipment.
In this step, the corresponding marks of URL that RR devices are obtained in access request include:
In corresponding relation of the RR devices between the regular expression and mark for pre-setting, search and visit
Ask the corresponding mark of regular expression that the URL in request matches.
Wherein, RR devices how to judge URL in access request whether with corresponding relation in canonical table
Match up to formula and belong to the known technology of those skilled in the art, the protection model being not intended to limit the present invention
Enclose, repeat no more here.The present invention is it is emphasised that by mark corresponding with the regular expression that URL matches
Know the unique mark as the corresponding contents of URL so that the corresponding identical content of different URL is only needed
Caching once, so as to improve the utilization rate of memory space, improves the utilization rate of bandwidth.
For example, when URL ishttp://222.73.61.214/youku/6573718061135810187D003A7D/0300080500545A2 5632B57092B13A2E773DF5A-0614-5810-DC51-EB36488C7C74.mp4Nk=671 47729540_23587507484&ns=6490028_2707360&special=true, regular expression ishttp:// %d+%.%d+%.%d+%.%d+/youku/%x+/(%x+-%x+-%x+-%x+-%x+%.%w+ ) %Nk=%d+_%d+&ns=(%d+_%d+) &It is to match between URL and regular expression when .+
's.
Wherein, %d represents numeral, and %. represents any character, and %x represents hexadecimal number, and %w is represented
Letter or number ,+represent parameters of multiple , &ns for URL.
Wherein, regular expression can be drawn by checking that the URL of each content is summarized.
Wherein, correspond between regular expression and mark, above-mentioned regular expression is corresponding to be designatedhttp://www.youku.com/%1/%2, %1, %2 represents the parenthesis part in regular expression.
So above-mentioned URL is corresponding to be designatedhttp://www.youku.com/0300080500545A25632B57092B13A2E773DF5A-0614- 5810-DC51-EB36488C7C74.mp4/6490028_2707360。
In this step, when RR devices find the mark of acquisition in the mark for pre-saving, RR dresses
Put to be sent to user equipment and represent the mark for redirecting;Content load balancer is received and set from user
Standby access request, obtains the corresponding marks of URL in access request, sends to user equipment and represents weight
The mark of orientation;The corresponding buffer memory device of mark of acquisition receives the access request from user equipment,
The corresponding marks of URL in access request are obtained, the corresponding path of mark is calculated, by the content in path
It is sent to user equipment.
Wherein, RR devices are also to the address of user equipment transmission content load balancing apparatus, user equipment
Access request is sent to content load balancing apparatus according to the address of content load balancer.
Wherein, content load balancer also sends the corresponding buffer memory device of mark for obtaining to user equipment
Address, user equipment is according to the address of the corresponding buffer memory device of mark for obtaining to the mark correspondence for obtaining
Buffer memory device send access request.
Wherein, the corresponding buffer memory device of mark of acquisition refers to that the corresponding cryptographic Hash of the mark of acquisition is corresponding
Buffer memory device.
Wherein, the corresponding buffer memory device of the mark of acquisition can calculate the corresponding path of mark using MD5,
The known technology for belonging to those skilled in the art is implemented, the protection domain being not intended to limit the present invention,
Here repeat no more.The present invention it is emphasised that using mark carry out cache contents as the unique mark of content, from
And the utilization rate of memory space is improve, improve the speed of bandwidth.
In this step, pre-cache message includes URL, can also include the address of RR devices.
Step 202, content load balancer obtain the corresponding marks of URL in pre-cache message, will
Pre-cache message is sent to the corresponding buffer memory device of mark of acquisition.
In this step, content load balancer obtains the corresponding mark bags of URL in pre-cache message
Include:
In corresponding relation of the content load balancer between the regular expression and mark for pre-setting,
Search mark corresponding with the regular expression that the URL in pre-cache message matches.
Wherein, content load balancer how to judge URL in pre-cache message whether with corresponding relation
In regular expression match and belong to the known technology of those skilled in the art, be not used to limit this
Bright protection domain, repeats no more here.The present invention is it is emphasised that the regular expressions that will be matched with URL
Unique mark of the corresponding mark of formula as the corresponding contents of URL so that different URL are corresponding identical
Content only need to cache once, so as to improve the utilization rate of memory space, improve the utilization rate of bandwidth.
In this step, the corresponding buffer memory device of mark that pre-cache message is sent into acquisition includes:
The corresponding cryptographic Hash of mark for obtaining is calculated using hash algorithm, pre-cache message is sent into calculating
The corresponding buffer memory device of cryptographic Hash for obtaining.
Step 203, buffer memory device obtain the corresponding marks of URL in pre-cache message, calculate mark right
The path answered, by the corresponding content cachings of the URL for downloading from a server to calculated path, and
The successful message of caching is sent to RR devices.
In this step, the corresponding marks of URL that buffer memory device is obtained in pre-cache message include:
In corresponding relation of the buffer memory device between the regular expression that pre-sets and mark, search with it is pre-
The corresponding mark of regular expression that URL in buffered message matches.
Wherein, buffer memory device how to judge URL in pre-cache message whether with corresponding relation in canonical
Expression formula matches and belongs to the known technology of those skilled in the art, the protection being not intended to limit the present invention
Scope, repeats no more here.The present invention is it is emphasised that will be corresponding with the regular expression that URL matches
Identify the unique mark as the corresponding contents of URL so that the corresponding identical content of different URL is only
Need to cache once, so as to improve the utilization rate of memory space, improve the utilization rate of bandwidth.
In this step, the corresponding path of mark can be calculated using MD5, implement and belong to this area
The known technology of technical staff, the protection domain being not intended to limit the present invention, repeats no more here.
In this step, specifically how to download from a server the corresponding contents of URL and belong to people in the art
The known technology of member, the protection domain being not intended to limit the present invention is repeated no more here.
In this step, the address of RR device of the buffer memory device in pre-cache message is sent out to RR devices
Send caching successful message.
Step 204, RR devices preserve the mark for obtaining.
Further, also include before the method:
RR devices judge that the corresponding contents of URL are accessed for number of times more than or equal to the first default threshold
Value.
Specifically, RR devices obtain the access request that user equipment sends, and obtain the URL in access request
Corresponding mark, judges that the mark for obtaining is accessed for number of times more than or equal to the first predetermined threshold value.
Wherein, when RR devices judge that the corresponding contents of URL are accessed for number of times less than the first default threshold
During value, access request is sent to server by the RR devices.
That is, the access request that user equipment sends every time all can be got by RR devices, simply
When the corresponding contents of URL in access request are accessed for number of times more than or equal to the first predetermined threshold value,
Access request is just kidnapped by RR devices, and the system by the present invention is user equipment service;In access request
In the corresponding contents of URL be accessed for number of times less than the first predetermined threshold value when, RR devices by access please
Ask and be sent to server, be user equipment service by server.
Further, when buffer memory device judges that the content for caching exceedes the term of validity;Or, judge to delay
When the total size deposited or the number of caching are more than or equal to the second predetermined threshold value, buffer memory device is deleted to exceed to be had
The content of the caching of effect phase, or delete the content of the minimum caching of accessed number of times.
Referring to Fig. 3, the invention allows for a kind of request route RR devices, at least include:
Module is kidnapped, for kidnapping the access request of user equipment;
First sending module, for obtaining access request in the corresponding marks of resource localizer URL,
Search in the mark for pre-saving less than the mark for obtaining, send pre-cache to content load balancing apparatus and disappear
Breath;
First receiver module, it is corresponding slow for receiving the corresponding marks of the URL in access request
The successful message of caching of equipment is deposited, the mark for obtaining is preserved.
The present invention RR devices in, kidnap module specifically for:
Judge that the corresponding contents of URL are accessed for number of times more than or equal to the first predetermined threshold value, kidnap and use
The access request of family equipment.
The present invention RR devices in, the first sending module specifically for:
In corresponding relation between the regular expression and mark for pre-setting, in lookup and access request
The corresponding marks of regular expression that match of URL, search less than acquisition in the mark for pre-saving
Mark, to content load balancing apparatus send pre-cache message.
In the RR devices of the present invention, the first sending module is additionally operable to:
Judge that the content for caching exceedes the term of validity, or judge that the content for caching is accessed for number of times and is less than
Or equal to preset times, the message for representing the content for deleting caching is sent to content load balancing apparatus.
In the RR devices of the present invention, the first sending module is additionally operable to:
The mark of acquisition is found in the mark for pre-saving, is sent to user equipment and is represented what is redirected
Mark.
Referring to Fig. 4, the invention allows for a kind of content load balancer, at least includes:
Second receiver module, for receiving the pre-cache message from request route RR devices;
Second sending module, for obtaining pre-cache message in the corresponding marks of URL, pre-cache is disappeared
Breath is sent to the corresponding buffer memory device of mark of acquisition.
In present disclosure load balancing apparatus, the second sending module specifically for:
In corresponding relation between the regular expression and mark for pre-setting, search and pre-cache message
In the corresponding marks of regular expression that match of URL, pre-cache message is sent into the mark of acquisition
Corresponding buffer memory device.
In present disclosure load balancing apparatus, the second receiver module is additionally operable to:
Receive the message of the content cached from the expression deletion of RR devices;
Second sending module is additionally operable to:
The corresponding marks of URL in the message for representing the content for deleting caching are obtained, deletion caching is would indicate that
The message of content be sent to the corresponding buffer memory device of mark of acquisition.
In present disclosure load balancing apparatus, the second receiver module is additionally operable to:
Receive the access request from user equipment;
Second sending module is additionally operable to:
The corresponding marks of URL in access request are obtained, is sent to user equipment and is represented the mark for redirecting
Know.
Referring to Fig. 5, the invention allows for a kind of buffer memory device, at least includes:
3rd receiver module, for receiving the pre-cache message from content load balancer;
3rd sending module, for obtaining pre-cache message in the corresponding marks of URL, calculate mark it is right
The path answered, by the corresponding content cachings of the URL for downloading from a server to calculated path, and
The successful message of caching is sent to RR devices.
The present invention buffer memory device in, the 3rd sending module specifically for:
In corresponding relation between the regular expression and mark for pre-setting, search and pre-cache message
In the corresponding marks of regular expression that match of URL, calculate the corresponding path of mark, will be from service
The corresponding content cachings of URL downloaded on device send caching to calculated path to RR devices
Successful message.
In the buffer memory device of the present invention, also include:
Removing module, for judging that the content for caching exceedes the term of validity;Or, judge the total of caching
The number of size or caching is more than or equal to the second predetermined threshold value, deletes the content of the caching more than the term of validity,
Or the content of the caching of the accessed number of times minimum of deletion.
In the buffer memory device of the present invention, the 3rd receiver module is additionally operable to:
Receive the access request from user equipment;
3rd sending module is additionally operable to:
The corresponding marks of URL in access request are obtained, the corresponding path of mark is calculated, by path
Content is sent to user equipment.
Referring to Fig. 6, the invention allows for the system of a kind of caching and service content, at least includes:
Request route RR devices, for kidnapping the access request of user equipment;In obtaining access request
The corresponding marks of resource localizer URL, search less than the mark for obtaining in the mark for pre-saving, to
Content load balancer sends pre-cache message;The successful message of caching from buffer memory device is received,
Preserve the mark for obtaining;
Content load balancer, for obtaining pre-cache message in the corresponding marks of URL, will be pre- slow
Deposit the corresponding buffer memory device of mark that message is sent to acquisition;
Buffer memory device, for obtaining pre-cache message in the corresponding marks of URL, calculate mark it is corresponding
Path, by the corresponding content cachings of the URL for downloading from a server to calculated path, and to
RR devices send the successful message of caching.
In the system of the present invention, RR devices are additionally operable to:
The mark of acquisition is found in the mark for pre-saving, is sent to user equipment and is represented what is redirected
Mark;
Content load balancer is additionally operable to:
The access request from user equipment is received, the corresponding marks of URL in access request are obtained,
Send to user equipment and represent the mark for redirecting;
Buffer memory device is additionally operable to:
The access request from user equipment is received, the corresponding marks of URL in access request are obtained,
The corresponding path of mark is calculated, the content in path is sent into user equipment.
It should be noted that embodiment described above is for only for ease of those skilled in the art's understanding
, protection scope of the present invention is not limited to, in the premise of the inventive concept without departing from the present invention
Under, any obvious replacement and improvement that those skilled in the art are made to the present invention, or application
To other business scopes etc. within protection scope of the present invention.
Claims (20)
1. it is a kind of caching and service content method, it is characterised in that include:
Request route RR devices kidnap the access request of user equipment;
RR devices obtain the corresponding marks of resource localizer URL in access request, what is pre-saved
Search in mark less than the mark for obtaining, to content load balancing apparatus pre-cache message is sent;
Content load balancer obtains the corresponding marks of URL in pre-cache message, by pre-cache message
It is sent to the corresponding buffer memory device of mark of acquisition;
Buffer memory device obtains the corresponding marks of URL in pre-cache message, calculates the corresponding path of mark,
By the corresponding content cachings of the URL for downloading from a server to calculated path, and to RR devices
Send the successful message of caching;
RR devices preserve the mark for obtaining.
2. method according to claim 1, it is characterised in that also include before the method:
The RR devices judge that the corresponding contents of the URL are accessed for number of times more than or equal to first
Predetermined threshold value.
3. method according to claim 1 and 2, it is characterised in that the RR devices are obtained visits
Ask that corresponding mark includes the URL in request:
In corresponding relation of the RR devices between the regular expression and mark for pre-setting, search
Mark corresponding with the regular expression that the URL in the access request matches.
4. method according to claim 1 and 2, it is characterised in that the balanced dress of the content load
Putting the corresponding marks of the URL obtained in pre-cache message includes:
Corresponding relation of the content load balancer between the regular expression and mark for pre-setting
In, search mark corresponding with the regular expression that the URL in the pre-cache message matches.
5. method according to claim 1 and 2, it is characterised in that the buffer memory device obtains pre-
The corresponding marks of URL in buffered message include:
In corresponding relation of the buffer memory device between the regular expression and mark for pre-setting, search
Mark corresponding with the regular expression that the URL in the pre-cache message matches.
6. method according to claim 1 and 2, it is characterised in that when the buffer memory device judges
The content for going out caching exceedes the term of validity;Or, judge cache total size or caching number be more than or
During equal to the second predetermined threshold value, the method also includes:
The buffer memory device deletes the content of the caching more than the term of validity, or deletes accessed number of times minimum
The content of caching.
7. method according to claim 1 and 2, it is characterised in that when RR devices are protected in advance
When the mark of acquisition is found in the mark deposited, the method also includes:
The RR devices send to user equipment and represent the mark for redirecting;
The content load balancer receives the access request from the user equipment, obtains described
The corresponding marks of URL in access request, send to the user equipment and represent the mark for redirecting;
The corresponding buffer memory device of mark of acquisition receives the access request from the user equipment, obtains
The corresponding marks of URL in the access request, calculate the corresponding path of mark, by the content in path
It is sent to user equipment.
8. a kind of request route RR devices, it is characterised in that at least include:
Module is kidnapped, for kidnapping the access request of user equipment;
First sending module, for obtaining access request in the corresponding marks of resource localizer URL,
Search in the mark for pre-saving less than the mark for obtaining, send pre-cache to content load balancing apparatus and disappear
Breath;
First receiver module, it is corresponding slow for receiving the corresponding marks of the URL in access request
The successful message of caching of equipment is deposited, the mark for obtaining is preserved.
9. RR devices according to claim 8, it is characterised in that the abduction module is specifically used
In:
Judge that the corresponding contents of the URL are accessed for number of times more than or equal to the first predetermined threshold value, rob
Hold the access request of user equipment.
10. RR devices according to claim 8 or claim 9, it is characterised in that described first sends
Module specifically for:
In corresponding relation between the regular expression and mark for pre-setting, searching please with the access
The corresponding mark of regular expression that URL in asking matches, search in the mark for pre-saving less than
The mark of acquisition, to content load balancing apparatus pre-cache message is sent.
11. RR devices according to claim 8 or claim 9, it is characterised in that described first sends
Module is additionally operable to:
The mark of acquisition is found in the mark for pre-saving, is sent to user equipment and is represented what is redirected
Mark.
12. a kind of content load balancers, it is characterised in that at least include:
Second receiver module, for receiving the pre-cache message from request route RR devices;
Second sending module, for obtaining pre-cache message in the corresponding marks of URL, pre-cache is disappeared
Breath is sent to the corresponding buffer memory device of mark of acquisition.
13. content load balancers according to claim 12, it is characterised in that described second
Sending module specifically for:
In corresponding relation between the regular expression and mark for pre-setting, search and the pre-cache
The corresponding mark of regular expression that URL in message matches, by pre-cache message acquisition is sent to
Identify corresponding buffer memory device.
14. content load balancers according to claim 12, it is characterised in that described second
Receiver module is additionally operable to:
Receive the access request from user equipment;
Second sending module is additionally operable to:
The corresponding marks of URL in the access request are obtained, expression is sent to the user equipment and is reset
To mark.
15. a kind of buffer memory devices, it is characterised in that at least include:
3rd receiver module, for receiving the pre-cache message from content load balancer;
3rd sending module, for obtaining pre-cache message in the corresponding marks of URL, calculate mark it is right
The path answered, by the corresponding content cachings of the URL for downloading from a server to calculated path, and
The successful message of caching is sent to RR devices.
16. buffer memory devices according to claim 15, it is characterised in that the 3rd sending module
Specifically for:
In corresponding relation between the regular expression and mark for pre-setting, search and the pre-cache
The corresponding mark of regular expression that URL in message matches, calculates the corresponding path of mark, will be from
The corresponding content cachings of URL downloaded on server send to calculated path to RR devices
Cache successful message.
17. buffer memory devices according to claim 15, it is characterised in that also include:
Removing module, for judging that the content for caching exceedes the term of validity;Or, judge the total of caching
The number of size or caching is more than or equal to the second predetermined threshold value, deletes the content of the caching more than the term of validity,
Or the content of the caching of the accessed number of times minimum of deletion.
18. buffer memory devices according to claim 15, it is characterised in that the 3rd receiver module
It is additionally operable to:
Receive the access request from user equipment;
3rd sending module is additionally operable to:
The corresponding marks of URL in the access request are obtained, the corresponding path of mark is calculated, by path
In content be sent to user equipment.
The system of a kind of 19. cachings and service content, it is characterised in that at least include:
Request route RR devices, for kidnapping the access request of user equipment;In obtaining access request
The corresponding marks of resource localizer URL, search less than the mark for obtaining in the mark for pre-saving, to
Content load balancer sends pre-cache message;The successful message of caching from buffer memory device is received,
Preserve the mark for obtaining;
Content load balancer, for obtaining pre-cache message in the corresponding marks of URL, will be pre- slow
Deposit the corresponding buffer memory device of mark that message is sent to acquisition;
Buffer memory device, for obtaining pre-cache message in the corresponding marks of URL, calculate mark it is corresponding
Path, by the corresponding content cachings of the URL for downloading from a server to calculated path, and to
RR devices send the successful message of caching.
20. systems according to claim 19, it is characterised in that the RR devices are additionally operable to:
The mark of acquisition is found in the mark for pre-saving, is sent to user equipment and is represented what is redirected
Mark;
The content load balancer is additionally operable to:
The access request from the user equipment is received, the URL correspondences in the access request are obtained
Mark, to the user equipment send represent redirect mark;
The buffer memory device is additionally operable to:
The access request from the user equipment is received, the URL correspondences in the access request are obtained
Mark, calculate the corresponding path of mark, the content in path is sent into user equipment.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510760276.4A CN106686033A (en) | 2015-11-10 | 2015-11-10 | Method, device and system for cache and service content |
PCT/CN2016/105244 WO2017080459A1 (en) | 2015-11-10 | 2016-11-09 | Method, device and system for caching and providing service contents and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510760276.4A CN106686033A (en) | 2015-11-10 | 2015-11-10 | Method, device and system for cache and service content |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106686033A true CN106686033A (en) | 2017-05-17 |
Family
ID=58694522
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510760276.4A Pending CN106686033A (en) | 2015-11-10 | 2015-11-10 | Method, device and system for cache and service content |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106686033A (en) |
WO (1) | WO2017080459A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107346341A (en) * | 2017-07-11 | 2017-11-14 | 王焱华 | A kind of management method of big data |
CN108173952A (en) * | 2017-12-29 | 2018-06-15 | 北京奇虎科技有限公司 | A kind of data access method and device of content distributing network CDN |
CN109089175A (en) * | 2017-06-14 | 2018-12-25 | 中兴通讯股份有限公司 | A kind of method and device that video cache accelerates |
CN109873855A (en) * | 2018-04-13 | 2019-06-11 | 贵州白山云科技股份有限公司 | A kind of resource acquiring method and system based on block chain network |
CN110138880A (en) * | 2019-06-04 | 2019-08-16 | 杭州安恒信息技术股份有限公司 | The method and apparatus for promoting access rate are cached based on cloud platform |
CN113590658A (en) * | 2021-07-06 | 2021-11-02 | 广州汇思信息科技股份有限公司 | Cache data processing method and device, computer equipment and storage medium |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020272B (en) * | 2017-08-14 | 2021-11-05 | 中国电信股份有限公司 | Caching method and device and computer storage medium |
CN111104528B (en) * | 2018-10-29 | 2023-05-16 | 浙江宇视科技有限公司 | Picture acquisition method and device and client |
CN112256733A (en) * | 2020-10-19 | 2021-01-22 | 北京字节跳动网络技术有限公司 | Data caching method and device, electronic equipment and computer readable storage medium |
CN113596513A (en) * | 2021-08-02 | 2021-11-02 | 典基网络科技(上海)有限公司 | Video content distribution method and system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7526530B2 (en) * | 2006-05-05 | 2009-04-28 | Adobe Systems Incorporated | System and method for cacheing web files |
CN102170479B (en) * | 2011-05-21 | 2013-12-18 | 华为数字技术(成都)有限公司 | Updating method of Web buffer and updating device of Web buffer |
CN102523299B (en) * | 2011-12-22 | 2014-02-26 | 北京邮电大学 | Cache method for content identification based on message digests |
CN102882939B (en) * | 2012-09-10 | 2015-07-22 | 北京蓝汛通信技术有限责任公司 | Load balancing method, load balancing equipment and extensive domain acceleration access system |
CN103036967B (en) * | 2012-12-10 | 2017-03-15 | 北京奇虎科技有限公司 | A kind of download management equipment, method and data downloading system |
CN103916437A (en) * | 2013-01-05 | 2014-07-09 | 中国移动通信集团公司 | File release system, device and method |
CN203313219U (en) * | 2013-06-25 | 2013-11-27 | 余兵 | Caching acceleration system for local area network |
-
2015
- 2015-11-10 CN CN201510760276.4A patent/CN106686033A/en active Pending
-
2016
- 2016-11-09 WO PCT/CN2016/105244 patent/WO2017080459A1/en active Application Filing
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109089175A (en) * | 2017-06-14 | 2018-12-25 | 中兴通讯股份有限公司 | A kind of method and device that video cache accelerates |
CN109089175B (en) * | 2017-06-14 | 2022-04-22 | 中兴通讯股份有限公司 | Video cache acceleration method and device |
CN107346341A (en) * | 2017-07-11 | 2017-11-14 | 王焱华 | A kind of management method of big data |
CN108173952A (en) * | 2017-12-29 | 2018-06-15 | 北京奇虎科技有限公司 | A kind of data access method and device of content distributing network CDN |
CN109873855A (en) * | 2018-04-13 | 2019-06-11 | 贵州白山云科技股份有限公司 | A kind of resource acquiring method and system based on block chain network |
CN109873855B (en) * | 2018-04-13 | 2022-01-25 | 贵州白山云科技股份有限公司 | Resource acquisition method and system based on block chain network |
CN110138880A (en) * | 2019-06-04 | 2019-08-16 | 杭州安恒信息技术股份有限公司 | The method and apparatus for promoting access rate are cached based on cloud platform |
CN113590658A (en) * | 2021-07-06 | 2021-11-02 | 广州汇思信息科技股份有限公司 | Cache data processing method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2017080459A1 (en) | 2017-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106686033A (en) | Method, device and system for cache and service content | |
US10897450B2 (en) | Communication method and communication apparatus | |
Xu et al. | Investigating transparent web proxies in cellular networks | |
EP2897340B1 (en) | Routing proxy for adaptive streaming | |
EP2404432B1 (en) | Distributed content caching solution for a mobile wireless network | |
EP2638688B1 (en) | Traffic acceleration in mobile network | |
US20130132544A1 (en) | Precise geolocation for content caching in evolved packet core networks | |
CN104951480B (en) | The indexing unit and method that resource stores in a kind of CDN system | |
US20110320592A1 (en) | Methods, systems, and computer readable media for content delivery using deep packet inspection | |
CN103581765B (en) | The method and apparatus that a kind of message forwards | |
CN107025234A (en) | A kind of information-pushing method and caching server | |
CN103581248A (en) | Method and device for providing content distribution network CDN service | |
US10630530B2 (en) | Cache method, cache edge server, cache core server, and cache system | |
CN103220371A (en) | Method and system for conducting content adaptation | |
CN102984223B (en) | A kind of message method, the network equipment and system | |
CN103001964A (en) | Cache acceleration method under local area network environment | |
US20140282788A1 (en) | System for controlling video distribution in response to a request on reduced video data traffic and a method therefor | |
CN102857547B (en) | The method and apparatus of distributed caching | |
WO2017097092A1 (en) | Method and system for processing cache cluster service | |
CN101325499B (en) | Method, system and equipment for distributing static data | |
WO2013113150A1 (en) | Cache optimization method, cache and cache optimization system | |
US9350822B2 (en) | Distributed web object identification for web caching | |
CN106657039B (en) | Portal page acquisition method, wireless AP and Portal server | |
CN107612831B (en) | Transmission method and device for data message of access source station | |
US20150288734A1 (en) | Adaptive leveraging of network information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170517 |