CN103475626B - A kind of method for asking resource, equipment and system - Google Patents

A kind of method for asking resource, equipment and system Download PDF

Info

Publication number
CN103475626B
CN103475626B CN201210186516.0A CN201210186516A CN103475626B CN 103475626 B CN103475626 B CN 103475626B CN 201210186516 A CN201210186516 A CN 201210186516A CN 103475626 B CN103475626 B CN 103475626B
Authority
CN
China
Prior art keywords
user
request message
resource
address
buffer memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210186516.0A
Other languages
Chinese (zh)
Other versions
CN103475626A (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 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
Priority to CN201210186516.0A priority Critical patent/CN103475626B/en
Priority to PCT/CN2013/076687 priority patent/WO2013182030A1/en
Publication of CN103475626A publication Critical patent/CN103475626A/en
Application granted granted Critical
Publication of CN103475626B publication Critical patent/CN103475626B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The embodiment of the present invention provides a kind of method for asking resource, equipment and system, is related to network information transfer field, manages each buffer memory device concentratedly by cache management equipment, decreases the burden of edge routing device.The method includes:Cache management equipment receives the user's request message that edge router forwards, wherein, this user's request message is to determine in this edge router to be transmitted to this cache management equipment after this user's request message meets the first forwarding rule, this cache management equipment determines buffer memory device according to default strategy, this cache management equipment sends IP message to this buffer memory device, and this IP message includes this URL, the IP address of this user, the IP address of this server, the mark of this server and this resource local resource mark on that server.The embodiment of the present invention is used for asking resource.

Description

A kind of method for asking resource, equipment and system
Technical field
The present invention relates to network information transfer field, more particularly, to a kind of method for asking resource, equipment and system.
Background technology
Because broadband network is in high speed development all over the world, user takes to the transmission of Internet resources (audio frequency, video etc.) The requirement also more and more higher of business quality.
In order to improve the transmission service quality of Internet resources, improve the satisfaction of user, operator would generally dispose caching Equipment obtains and stores Internet resources, and, in acquisition request Internet resources, edge router only need to be by user's request message for user Redirect or be forwarded on buffer memory device, the Internet resources of user's request if this buffer memory device is stored with, this buffer memory device This Internet resources is transmitted directly to user, obtains without to network resource server, due to buffer memory device distance users Closer to thus improve the transmission speed of Internet resources.
But, operator is when disposing buffer memory device it will usually dispose multiple buffer memory devices, due to each buffer memory device Caching resource and load are different, and therefore, edge router needs to select suitable buffer memory device, in prior art, each Edge router is required for arriving the path of user and passing through calculating by obtaining the load of all buffer memory devices or buffer memory device To determine suitable buffer memory device, so, the acquisition of each edge router repeatability and calculating, not only increase data transfer Time delay and also increased the loss of system, simultaneously as the independently selected suitable buffer memory device of each edge router so that The optimum principle of each edge router is inconsistent.
Content of the invention
Embodiments of the invention provide a kind of method for asking resource, equipment and system, to solve edge router Since it is desired that knowing the status information of buffer memory device and the problem of heavy load that causes..
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that:
The embodiment of the present invention provides a kind of method for asking resource, including:
Cache management equipment receives the user's request message that edge router forwards, wherein, described user's request message bag Include the uniform resource position mark URL of requested resource, the source address of described user's request message is to send described user's request The Internet protocol IP address of the user of message, the destination address of described user's request message is the server of the described resource of offer IP address, described user's request message is to determine that described user's request message meets the first forwarding rule in described edge router It is transmitted to described cache management equipment afterwards;
Described cache management equipment determines buffer memory device according to default strategy;
Described cache management equipment sends IP message to described buffer memory device, and described IP message includes described URL, described use The IP address at family, the IP address of described server, the mark of described server and described resource are local on described server Resource identification.
Alternatively, methods described also includes:
When the session including described user's request message is transmission control protocol TCP session, described cache management equipment Generate second for described edge router and forward rule, described second forwards the Matching Elements of rule to include:Described user's request The destination address of message, the destination slogan of described user's request message, the transport layer protocol number of described user's request message, institute State the source address of user's request message and the source port number of described user's request message, the described second regular corresponding forwarding of forwarding Purpose equipment is described buffer memory device;
Described second forwarding rule is sent to described edge router by described cache management equipment, wherein, described second The Matching Elements that rule includes are forwarded to be more than the Matching Elements that described first forwarding rule includes.
Alternatively, described first the Matching Elements of rule are forwarded to include the IP address of described server, described user's request The destination slogan of message and the transport layer protocol number of described user's request message;Or, described first forwards the coupling of rule Key element includes described URL.
The embodiment of the present invention provides a kind of method for asking resource, including:
The user's request message that edge router receive user sends;
Described edge router, please by described user after determining that described user's request message and first forwards rule match Message is asked to be transmitted to cache management equipment, wherein, described user's request message includes the URL of described resource URL, the source address of described user's request message is the Internet protocol IP address of the user sending described user's request message, described The destination address of user's request message is for providing the IP address of the server of described resource.
Alternatively, methods described also includes:
When the session including described user's request message is transmission control protocol TCP session, described edge routing device Receive the second forwarding rule that described cache management equipment sends, described second forwards the Matching Elements of rule to include described user The destination address of request message, the destination slogan of described user's request message, the transport layer protocol of described user's request message Number, the source port number of the source address of described user's request message and described user's request message, described second forwards rule corresponding Forwarding purpose equipment be described cache management equipment, described second forward rule include Matching Elements be more than described first turn Send out the Matching Elements that rule includes;
Described edge router forwards rule and second to forward rule according to longest match principle execution described first.
The embodiment of the present invention provides a kind of method sending resource to user, including:
The Internet protocol IP message that buffer memory device order caching management equipment sends, described IP message includes described resource Uniform resource position mark URL, the IP address of described user, provide the IP address of server of described resource, described server The mark and described resource local resource mark on described server;
Described buffer memory device identifies and determines that described buffer memory device is according to the mark of described server and described local resource No it is cached with described resource;
Identify and determine described buffer memory device according to the mark of described server and described local resource in described buffer memory device When being cached with described resource, then described buffer memory device sends the data message carrying described resource, described data to described user The source address of message is the IP address of described server, and destination address is the IP address of described user.
Alternatively, also include:
Identify and determine described buffer memory device according to the mark of described server and described local resource in described buffer memory device Uncached when having described resource, then described buffer memory device resource according to described URL is to described server request;
Described buffer memory device, after getting described resource from described server, sends to described user and carries described resource Data message, the source address of described data message is the IP address of described server and IP ground that destination address is described user Location.
The embodiment of the present invention provides a kind of cache management equipment, including:
First receiving unit, for receiving the user's request message of edge router forwarding, wherein, described user's request report Literary composition includes the uniform resource position mark URL of requested resource, and the source address of described user's request message is to send described user The Internet protocol IP address of the user of request message, the destination address of described user's request message is for providing the service of described resource The IP address of device, described user's request message is to determine that described user's request message meets the first forwarding in described edge router It is transmitted to described cache management equipment after rule;
First determining unit, for determining buffer memory device according to default strategy;
Solicited message transmitting element, for after described first determining unit determines described buffer memory device, to described caching Equipment sends IP message, and described IP message includes the described URL, IP address of described user, the IP address of described server, described The mark of the server and described resource local resource mark on described server.
Alternatively, also include:
Forward rule generating unit, for being transmission control protocol TCP meeting when the session including described user's request message During words, described cache management equipment is that described edge router generates the second forwarding rule, and described second forwards the coupling of rule Key element includes:The destination address of described user's request message, the destination slogan of described user's request message, described user's request The source port number of the transport layer protocol number of message, the source address of described user's request message and described user's request message, described Second forwards rule corresponding forwarding purpose equipment to be described buffer memory device;
Regular transmitting element, for being sent to described side by described the second forwarding rule forwarding rule generating unit to generate Edge router, wherein, described second forwards the Matching Elements of rule inclusion to be more than described first forwards the coupling that rule includes to want Element.
Alternatively, described first the Matching Elements of rule are forwarded to include the IP address of described server, described user's request The destination slogan of message and the transport layer protocol number of described user's request message;Or, described first forwards the coupling of rule Key element includes described URL.
The embodiment of the present invention provides a kind of edge router, including:
Second receiving unit, the user's request message sending for receive user;
Second transmitting element, for after determining described user's request message and the first forwarding rule match, by described the The described user's request message that two receiving units receive is transmitted to cache management equipment, and wherein, described user's request message includes The uniform resource position mark URL of described resource, the source address of described user's request message is to send described user's request message The Internet protocol IP address of user, the destination address of described user's request message is for providing the IP ground of the server of described resource Location.
Alternatively, also include:
Regular receiving unit, during for being transmission control protocol TCP session when the session including described user's request message, Described edge routing device receives the second forwarding rule that described cache management equipment sends, and described second forwards the coupling of rule Key element includes the destination address of described user's request message, the destination slogan of described user's request message, described user's request The source port number of the transport layer protocol number of message, the source address of described user's request message and described user's request message, described Second forwards rule corresponding forwarding purpose equipment to be described cache management equipment, and the coupling that described second forwarding rule includes will Element forwards the Matching Elements that rule includes more than described first;
Regular performance element, for forwarding rule and second to forward rule according to longest match principle execution described first.
The embodiment of the present invention provides a kind of buffer memory device, including:
3rd receiving unit, the Internet protocol IP message sending for order caching management equipment, described IP message includes The uniform resource position mark URL of described resource, the IP address of described user, the IP address of server that described resource is provided, institute State the local resource mark identifying with described resource on described server of server;
3rd determining unit, for the described server in the described IP message according to described 3rd receiving unit reception Mark and described local resource mark determine whether described buffer memory device is cached with described resource;
3rd transmitting element, for when described 3rd determining unit determines that described buffer memory device is cached with described resource, Send the data message carrying described resource to described user, the source address of described data message is the IP ground of described server Location, destination address is the IP address of described user.
Alternatively, also include:
3rd request unit, has described resource for determining that described buffer memory device is uncached in described 3rd determining unit When, resource according to described URL is to described server request;
3rd data message transmitting element, for being got after described resource according to described 3rd request unit, to described User sends the data message carrying described resource, and the source address of described data message is the IP address of described server, purpose Address is the IP address of described user.
The embodiment of the present invention provides a kind of system for asking resource, including:Cache management equipment, buffer memory device and side Edge router,
Described cache management equipment, for receiving the user's request message of edge router forwarding, wherein, described user please Message is asked to include the uniform resource position mark URL of requested resource, the source address of described user's request message is that transmission is described The Internet protocol IP address of the user of user's request message, the destination address of described user's request message is for providing described resource The IP address of server, described user's request message is to determine that described user's request message meets first in described edge router It is transmitted to described cache management equipment after forwarding rule, buffer memory device is determined according to default strategy, and sets to described caching Preparation send IP message, and described IP message includes described URL, the IP address of described user, the IP address of described server, described clothes Local resource mark on described server for the mark and described resource of business device;
Described buffer memory device, the Internet protocol IP message sending for order caching management equipment, described IP message includes The uniform resource position mark URL of described resource, the IP address of described user, the IP address of server that described resource is provided, institute State the local resource mark, the mark according to described server and the institute that identify with described resource on described server of server State local resource mark and determine whether described buffer memory device is cached with described resource, determine that described caching sets in described buffer memory device For when being cached with described resource, then described buffer memory device sends the data message carrying described resource, described number to described user According to message source address be described server IP address, destination address is the IP address of described user;
Described edge router, the user's request message sending for receive user, and determining described user's request report Literary composition forwards after rule match with first, and described user's request message is transmitted to cache management equipment.
Alternatively, described cache management equipment, being additionally operable to when the session including described user's request message is that transmission controls During the session of agreement TCP, described cache management equipment is that described edge router generates the second forwarding rule, and described second forwards rule Matching Elements then include:The destination address of described user's request message, the destination slogan of described user's request message, described The source port of the transport layer protocol number of user's request message, the source address of described family request message and described user's request message Number, described second forwards rule corresponding forwarding purpose equipment to be described buffer memory device, and described second is forwarded rule to send To described edge router, wherein, described second forwards the Matching Elements that rule includes to be more than described first forwards rule to include Matching Elements.
The embodiment of the present invention provides a kind of method for asking resource, equipment and system, by cache management equipment collection Middle each buffer memory device of management, decreases the burden of edge routing device.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of method schematic diagram for asking resource provided in an embodiment of the present invention;
Fig. 2 is another kind of method schematic diagram for asking resource provided in an embodiment of the present invention;
Fig. 3 is another kind of method schematic diagram for asking resource provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet of method for asking resource provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of cache management equipment provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another kind cache management equipment provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of edge router provided in an embodiment of the present invention;
Fig. 8 is the structural representation of another kind edge router provided in an embodiment of the present invention;
Fig. 9 is a kind of structural representation of buffer memory device provided in an embodiment of the present invention;
Figure 10 is the structural representation of another kind buffer memory device provided in an embodiment of the present invention;
Figure 11 is a kind of schematic diagram of system for asking resource provided in an embodiment of the present invention.
Specific 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 carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work Embodiment, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides a kind of method for asking resource, as shown in figure 1, the executive agent of this embodiment is Cache management equipment, the method includes:
S101, cache management equipment receive the user's request message that edge router forwards.
Wherein, this user's request message include requested resource URL (English full name be Uniform Resource Locator, english abbreviation is URL), the source address of this user's request message is to send this user's request message Internet protocol (English full name is Internet Protocol, and english abbreviation the is IP) address of user, this user's request message Destination address is for providing the IP address of the server of this resource.
In addition, this user's request message is to determine that this user's request message meets the first forwarding rule in this edge router It is transmitted to this cache management equipment afterwards.
Further, if the IP address of this user is fixing, the Matching Elements of this first forwarding rule can include this The transport layer protocol number of the IP address of server, the destination slogan of this user's request message and this user's request message.
Illustratively, first the coupling element of rule is forwarded to include the IP address of server, the destination of user's request message Slogan and the transport layer protocol number of this user's request message, as follows:IP address:The IP address of Resource Server, user's request report The destination slogan of literary composition:80 (i.e. the port numbers of http protocol), the transport layer protocol of user's request message:6 (i.e. Transmission Control Protocol), Edge router receives user's request message, if the server ip address of this user's request message, destination slogan and transmission First forwarding rule of layer protocol and above-mentioned setting is consistent, and (i.e. the IP address of message Resource Server, destination slogan be for 80 simultaneously And transport layer protocol is 6) when, then this user's request message is sent to cache management equipment.
Or, if the IP address of this user is change, the Matching Elements of this first forwarding rule can include this URL. The embodiment of the present invention is not limited thereto, and the parameter that other can mate is also within the scope of the present invention.
S102, this cache management equipment determine buffer memory device according to default strategy.
Preferably, according to default strategy, this cache management equipment determines that buffer memory device can be specifically:This cache management Equipment obtains the resource allocation information of each buffer memory device, determines buffer memory device according to this URL, this resource is joined from each buffer memory device Confidence breath includes the load information of the URL of resource of storage and this buffer memory device in buffer memory device.The embodiment of the present invention is not It is confined to this.
S103, this cache management equipment send IP message to this buffer memory device.
Wherein, this IP message includes this URL, the IP address of this user, the IP address of this server, the mark of this server With this resource local resource mark on that server.Described server be designated the domain name of described server or described clothes The IP address of business device.Described resource on the right of the local resource on described server is designated the "/" of the rightmost side in URL in Hold.
For example, when the URL that IP message includes is http://tv.sohu.com/20120605/ During n344791935.shtml, then described server be designated tv.sohu.com, i.e. domain name, described resource is in this server On local resource be designated n344791935.shtml.
When described server be designated described server IP address when, IP message include this URL, this user IP ground Location, the IP address of this server, the mark of this server and this resource local resource mark on that server should be managed Solve the IP address carrying two this servers of identical for this IP message, or be understood to this IP message in order to only carry The IP address of one this server.
This IP message is actually used to user's request message requested resource described in user's request, and this IP Message be used for indicate this buffer memory device to this user's transmission source address be the IP address of this server, destination address be this user's IP address and carry the data message of this resource.User so can be made to can't see the address information of buffer memory device, it is to avoid sudden and violent Dew buffer memory device is it is achieved that cache management equipment and buffer memory device transmit to the information transparency of user, simultaneously, it is to avoid attacker Attack to buffer memory device, has ensured the safety of information transfer.
Further, when the session including this user's request message is TCP session, this cache management equipment is this side Edge router generates second and forwards rule.
Wherein, the Matching Elements of this second forwarding rule include:The destination address of this user's request message, this user's request The destination slogan of message, the transport layer protocol number of this user's request message, the source address of this user's request message and this user The source port number of request message.
This second forwarding rule is sent to this edge router by this cache management equipment, wherein, this second forwarding rule Including Matching Elements be more than this first forward rule include Matching Elements.It is former that described edge router executes the longest coupling Then, therefore when a message forwards rule with first and the second forwarding rule is all mated, then carry out according to the second forwarding rule Forward.
Alternatively, the intervalometer of cache management equipment setting can send user's request in cache management equipment to buffer memory device Start during message, and stop when up to or over Preset Time, if when intervalometer is up to or over Preset Time, also Do not receive the confirmation response feedback of buffer memory device transmission, then cache management equipment continues to send user's request to this buffer memory device Message, now, this intervalometer resets Preset Time.Until after this cache management equipment receives confirmation response feedback, caching pipe Reason equipment ability forwards rule to edge router second.
In addition, this second forwarding rule corresponding forwarding purpose equipment refers to edge router for this buffer memory device and incites somebody to action The message mating this second forwarding rule is sent to buffer memory device, is specially in the present embodiment:User is receiving buffer memory device Send resource after, can to this buffer memory device send response message, this response message when being received by edge router, edge Router according to longest match principle select second forward rule, by with this second forwarding rule match response message according to be somebody's turn to do The address information of buffer memory device sends to buffer memory device, and so, the response message that user replys can directly be sent out by edge router Deliver to buffer memory device, without again through cache management equipment, thus improve forward efficiency.
Wherein, this longest match principle is searched first for edge router and is forwarded rule and the second forwarding rule, and selects The most forwarding rule of coupling element.In the present embodiment, because the second coupling element forwarding rule includes:User's request message Source address, the source port number of user's request message, the destination address of user's request message, the destination interface of user's request message Number and user's request message transport layer protocol.The destination address of user's request message is exactly to provide user's request message to be asked The server of resource IP address.First forwards one group of selectable value of coupling element of rule to be:Server ip address, purpose Port numbers and transport layer protocol, therefore, edge router can select coupling element more second to forward rule.
But, because user initiates the connection request to new resources so that edge router is receiving user's request report Wen Shi, needs for this user's request message to be sent to cache management equipment, and second forwards the presence of rule can make edge road Continue to send user's request message to this buffer memory device by device, therefore, receive the connection of user's transmission in edge router After ending message, need to delete the second forwarding rule.
The method of the request resource that above-described embodiment provides, manages each buffer memory device concentratedly by cache management equipment, And it is directed to each edge router suitable buffer memory device of selection according to unified principle, so, not only ensure that and caching is set The concordance of standby optimum principle, decreases the time delay of network resource transmission simultaneously and decreases the loss of system.
The embodiment of the present invention provides a kind of method for asking resource, as shown in Fig. 2 the executive agent of this embodiment is Edge router, the method includes:
The user's request message that S201, edge router receive user send.
Wherein, this user's request message includes the URL of this resource, and the source address of this user's request message is to send this user The Internet protocol IP address of the user of request message, the destination address of this user's request message is for providing the server of this resource IP address.
S202, this edge router, please by this user after determining that this user's request message and first forwards rule match Message is asked to be transmitted to cache management equipment.
Wherein, if the IP address of this user is fixing, the Matching Elements of this first forwarding rule can include this service The transport layer protocol number of the IP address of device, the destination slogan of this user's request message and this user's request message.
Illustratively, first the coupling element of rule is forwarded to include the IP address of server, the destination of user's request message Slogan and the transport layer protocol number of this user's request message, as follows:IP address:The IP address of Resource Server, user's request report The destination slogan of literary composition:80 (i.e. the port numbers of http protocol), the transport layer protocol of user's request message:6 (i.e. Transmission Control Protocol), Edge router receives user's request message, if the server ip address of this user's request message, destination slogan and transmission First forwarding rule of layer protocol and above-mentioned setting consistent (i.e. the IP address of message Resource Server, destination slogan for 80 and Transport layer protocol is 6) when, then this user's request message is sent to cache management equipment.
Or, if the IP address of this user is change, the Matching Elements of this first forwarding rule can include this URL. The embodiment of the present invention is not limited thereto, and the parameter that other can mate is also within the scope of the present invention.
Further, when the session including this user's request message is TCP session, this cache management equipment is this edge Router generates second and forwards rule.
Wherein, the Matching Elements of this second forwarding rule include:The destination address of this user's request message, this user's request The destination slogan of message, the transport layer protocol number of this user's request message, the source address of this user's request message and this user The source port number of request message.
This second forwarding rule is sent to this edge router by this cache management equipment, wherein, this second forwarding rule Including Matching Elements be more than this first forward rule include Matching Elements.It is former that described edge router executes the longest coupling Then, therefore when a message forwards rule with first and the second forwarding rule is all mated, then carry out according to the second forwarding rule Forward.
Alternatively, the intervalometer of cache management equipment setting can send user's request in cache management equipment to buffer memory device Start during message, and stop when up to or over Preset Time, if when intervalometer is up to or over Preset Time, also Do not receive the confirmation response feedback of buffer memory device transmission, then cache management equipment continues to send user's request to this buffer memory device Message, now, this intervalometer resets Preset Time.Until after this cache management equipment receives confirmation response feedback, caching pipe Reason equipment ability forwards rule to edge router second.
In addition, this second forwarding rule corresponding forwarding purpose equipment is this buffer memory device, specially:User is receiving After the resource that buffer memory device sends, response message can be sent to this buffer memory device, this response message is being received by edge router Then, edge router selects second to forward rule according to longest match principle, by the response with this second forwarding rule match Information sends to buffer memory device according to the address information of this buffer memory device, so, the response that user can be replied by edge router Information is sent directly to buffer memory device, without again through cache management equipment, thus improve forward efficiency.
Wherein, this longest match principle is searched first for edge router and is forwarded rule and the second forwarding rule, and selects The most forwarding rule of coupling element.In the present embodiment, because the second coupling element forwarding rule includes:User's request message Source address, the source port number of user's request message, the destination address of user's request message, the destination interface of user's request message Number and user's request message transport layer protocol.The destination address of user's request message is exactly to provide user's request message to be asked The server of resource IP address.First forwards one group of selectable value of coupling element of rule to be:Server ip address, purpose Port numbers and transport layer protocol, therefore, edge router can select coupling element more second to forward rule.
But, because user initiates the connection request to new resources so that edge router is receiving user's request report Wen Shi, needs for this user's request message to be sent to cache management equipment, and second forwards the presence of rule can make edge road Continue to send user's request message to this buffer memory device by device, therefore, receive the connection of user's transmission in edge router After ending message, need to delete the second forwarding rule.
The method of the request resource that above-described embodiment provides, manages each buffer memory device concentratedly by cache management equipment, And it is directed to each edge router suitable buffer memory device of selection according to unified principle, so, not only ensure that and caching is set The concordance of standby optimum principle, decreases the time delay of network resource transmission simultaneously and decreases the loss of system.
The embodiment of the present invention provides a kind of method sending resource to user, as shown in figure 3, the execution of the method embodiment Theme is buffer memory device, including:
The IP message that S301, buffer memory device order caching management equipment send;
Wherein, this IP message include the URL of this resource, the IP address of this user, provide this resource server IP ground Location, the mark of this server and this resource local resource mark on that server.Described server be designated described clothes The business domain name of device or the IP address of described server.Local resource on described server for the described resource is designated in URL Content on the right of the "/" on right side.
For example, when the URL that IP message includes is http://tv.sohu.com/20120605/ During n344791935.shtml, then described server be designated tv.sohu.com, i.e. domain name, described resource is in this server On local resource be designated n344791935.shtml.
When described server be designated described server IP address when, IP message include this URL, this user IP ground Location, the IP address of this server, the mark of this server and this resource local resource mark on that server should be managed Solve the IP address carrying two this servers of identical for this IP message, or be understood to this IP message in order to only carry The IP address of one this server.
This IP message is actually used to user's request message requested resource described in user's request, and this IP Message be used for indicate this buffer memory device to this user's transmission source address be the IP address of this server, destination address be this user's IP address and carry the data message of this resource.Can be so the address information that user can't see buffer memory device, it is to avoid sudden and violent Dew buffer memory device is it is achieved that cache management equipment and buffer memory device transmit to the information transparency of user, simultaneously, it is to avoid attacker Attack to buffer memory device, has ensured the safety of information transfer.
S302, this buffer memory device identify and determine whether this buffer memory device delays according to the mark of this server and this local resource There is this resource.
S303, this buffer memory device according to the mark of this server and this local resource mark determine this buffer memory device caching When having this resource, then this buffer memory device sends the data message carrying this resource to this user.
Wherein, the source address of this data message be the IP address of this server, destination address be this user IP address.
Further, in this buffer memory device, this buffer memory device is determined according to the mark of this server and this local resource mark Uncached when having this resource, this buffer memory device is according to this URL to this resource of this server request.
This buffer memory device, after getting this resource from this server, sends the datagram carrying this resource to this user Literary composition, the IP address that the source address of this data message is the IP address of this server, destination address is this user.
Using said method, each buffer memory device is managed concentratedly by cache management equipment, and according to unified principle pin Suitable buffer memory device is selected to each edge router, so, not only ensure that the concordance to buffer memory device optimum principle, Decrease the time delay of network resource transmission simultaneously and decrease the loss of system.
The embodiment of the present invention provides a kind of method for asking resource, as shown in figure 4, the method concretely comprises the following steps:
S401, cache management equipment receive the user's request message that edge router forwards.
Wherein, this user's request message includes the URL of requested resource, and the source address of this user's request message is to send The IP address of the user of this user's request message, the destination address of this user's request message is for providing the IP of the server of this resource Address.
In addition, this user's request message is to determine that this user's request message meets the first forwarding rule in this edge router It is transmitted to this cache management equipment afterwards.
Further, if the IP address of this user is fixing, the Matching Elements of this first forwarding rule can include this The transport layer protocol number of the IP address of server, the destination slogan of this user's request message and this user's request message.
Illustratively, first the coupling element of rule is forwarded to include the IP address of server, the destination of user's request message Slogan and the transport layer protocol number of this user's request message, as follows:IP address:The IP address of Resource Server, user's request report The destination slogan of literary composition:80 (i.e. the port numbers of http protocol), the transport layer protocol of user's request message:6 (i.e. Transmission Control Protocol), Edge router receives user's request message, if the server ip address of this user's request message, destination slogan and transmission Layer protocol is consistent with the first forwarding rule of above-mentioned setting, and (i.e. the IP address of message Resource Server, destination slogan are 80, pass Defeated layer protocol is 6) when, then this user's request message is sent to cache management equipment.
Or, if the IP address of this user is change, the Matching Elements of this first forwarding rule can include this URL. The embodiment of the present invention is not limited thereto, and the parameter that other can mate is also within the scope of the present invention.
S402, cache management equipment obtain the resource allocation information of each buffer memory device.
Wherein, this resource allocation information includes the load of the URL of resource of storage and this buffer memory device in buffer memory device Information.
It should be noted that step S402 is not limited to carry out after step S401, due to caching in step S402 Management equipment obtains the process that the process in resource allocation information and step S401 of buffer memory device is relatively independent not to be existed Absolute sequencing, therefore, step S402 only need to be carried out before step S403.
S403, cache management equipment determine buffer memory device according to this URL from each buffer memory device.
Preferably, according to default strategy, this cache management equipment determines that buffer memory device can be specifically:This cache management Equipment obtains the resource allocation information of each buffer memory device, determines buffer memory device according to this URL from each buffer memory device.The present invention is real Apply example to be not limited thereto.
S404, cache management equipment send IP message to this buffer memory device.
Wherein, this IP message includes this URL, the IP address of this user, the IP address of this server, the mark of this server With this resource local resource mark on that server.Described server be designated the domain name of described server or described clothes The IP address of business device.Described resource on the right of the local resource on described server is designated the "/" of the rightmost side in URL in Hold.
For example, when the URL that IP message includes is http://tv.sohu.com/20120605/ During n344791935.shtml, then described server be designated tv.sohu.com, i.e. domain name, described resource is in this server On local resource be designated n344791935.shtml.
When described server be designated described server IP address when, IP message include this URL, this user IP ground Location, the IP address of this server, the mark of this server and this resource local resource mark on that server should be managed Solve the IP address carrying two this servers of identical for this IP message, or be understood to this IP message in order to only carry The IP address of one this server.
This IP message is actually used to user's request message requested resource described in user's request, and this IP Message be used for indicate this buffer memory device to this user's transmission source address be the IP address of this server, destination address be this user's IP address and carry the data message of this resource.User so can be made to can't see the address information of buffer memory device, it is to avoid sudden and violent Dew buffer memory device is it is achieved that cache management equipment and buffer memory device transmit to the information transparency of user, simultaneously, it is to avoid attacker Attack to buffer memory device, has ensured the safety of information transfer.
S405, buffer memory device send to cache management equipment and confirm response feedback.
S406, when include this user's request message session be TCP session when, cache management equipment be this edge router Generate second and forward rule, and this second forwarding rule is sent to edge router.
Wherein, the Matching Elements of this second forwarding rule include:The destination address of this user's request message, this user's request The destination slogan of message, the transport layer protocol number of this user's request message, the source address of this user's request message and this user The source port number of request message.
This second forwarding rule is sent to this edge router by this cache management equipment, wherein, this second forwarding rule Including Matching Elements be more than this first forward rule include Matching Elements.It is former that described edge router executes the longest coupling Then, therefore when a message forwards rule with first and the second forwarding rule is all mated, then carry out according to the second forwarding rule Forward.
Alternatively, the intervalometer of cache management equipment setting can send user's request in cache management equipment to buffer memory device Start during message, and stop when up to or over Preset Time, if when intervalometer is up to or over Preset Time, also Do not receive the confirmation response feedback of buffer memory device transmission, then cache management equipment continues to send user's request to this buffer memory device Message, now, this intervalometer resets Preset Time.Until after this cache management equipment receives confirmation response feedback, caching pipe Reason equipment ability forwards rule to edge router second.
S407, buffer memory device send, according to the URL in this user's request message, the datagram carrying this resource to this user Literary composition.
Further, buffer memory device identifies according to the mark of the server in this this user's request message and this local resource Determine whether this buffer memory device is cached with this resource,
If it is determined that when this buffer memory device is cached with this resource, then sending, to this user, the data message carrying this resource;
If it is determined that this buffer memory device is uncached when having this resource, then according to this URL to this resource of this server request.
This buffer memory device, after getting this resource from this server, sends the datagram carrying this resource to this user Literary composition, the IP address that the source address of this data message is the IP address of this server, destination address is this user.
Preferably, when buffer memory device sends this data message to user, because the source address of this data message is this clothes The IP address of business device, user is not aware that there is cache management equipment and target cache equipment etc. during obtaining resource sets Standby it is achieved that cache management equipment and buffer memory device transmit to the information transparency of user, simultaneously, it is to avoid attacker sets to caching Standby attack, has ensured the safety of information transfer.
The response message that S408, edge router receive user send to target cache equipment.
S409, edge router select second to forward rule according to longest match principle, will be with this second forwarding rule The response message joined sends to buffer memory device according to the address information of this buffer memory device.
So, the response message that user replys can be sent directly to buffer memory device by edge router, without warp again Cross caching management equipment, thus improve forward efficiency.
Wherein, this longest match principle is searched first for edge router and is forwarded rule and the second forwarding rule, and selects The most forwarding rule of coupling element.In the present embodiment, because the second coupling element forwarding rule includes:User's request message Source address, the source port number of user's request message, the destination address of user's request message, the destination interface of user's request message Number and user's request message transport layer protocol.The destination address of user's request message is exactly to provide user's request message to be asked The server of resource IP address.First forwards one group of selectable value of coupling element of rule to be:Server ip address, purpose Port numbers and transport layer protocol, therefore, edge router can select coupling element more second to forward rule.
S410, user connect end to edge router.
Further, since user initiates the connection request to new resources so that edge router is receiving user's request report Wen Shi, needs for this user's request message to be sent to cache management equipment, and second forwards the presence of rule can make edge road Continue to send user's request message to this buffer memory device by device, therefore, further comprising the steps of in the method embodiment:
S411, this edge router, after receiving this connection end, are deleted second and are forwarded rule.
The method of the request resource that above-described embodiment provides, manages each buffer memory device concentratedly by cache management equipment, And it is directed to each edge router suitable buffer memory device of selection according to unified principle, so, not only ensure that and caching is set The concordance of standby optimum principle, decreases the time delay of network resource transmission simultaneously and decreases the loss of system.
The embodiment of the present invention provides a kind of cache management equipment 500, as shown in figure 5, including:
First receiving unit 501, for receiving the user's request message of edge router forwarding.
Wherein, this user's request message includes the URL of requested resource, and the source address of this user's request message is to send The Internet protocol IP address of the user of this user's request message, the destination address of this user's request message is for providing the clothes of this resource The IP address of business device, this user's request message is to determine that this user's request message meets the first forwarding rule in this edge router It is transmitted to this cache management equipment afterwards.
In addition, this user's request message is to determine that this user's request message meets the first forwarding rule in this edge router It is transmitted to this cache management equipment afterwards.
Further, if the IP address of this user is fixing, the Matching Elements of this first forwarding rule can include this The transport layer protocol number of the IP address of server, the destination slogan of this user's request message and this user's request message.
Illustratively, first the coupling element of rule is forwarded to include the IP address of server, the destination of user's request message Slogan and the transport layer protocol number of this user's request message, as follows:IP address:The IP address of Resource Server, user's request report The destination slogan of literary composition:80 (i.e. the port numbers of http protocol), the transport layer protocol of user's request message:6 (i.e. Transmission Control Protocol), Edge router receives user's request message, if the server ip address of this user's request message, destination slogan and transmission First forwarding rule of layer protocol and above-mentioned setting is consistent, and (i.e. the IP address of message Resource Server, destination slogan be for 80 simultaneously And transport layer protocol is 6) when, then this user's request message is sent to cache management equipment.
Or, if the IP address of this user is change, the Matching Elements of this first forwarding rule can include this URL. The embodiment of the present invention is not limited thereto, and the parameter that other can mate is also within the scope of the present invention.
First determining unit 502, for determining buffer memory device according to default strategy.
Solicited message transmitting element 503, for after this first determining unit 502 determines this buffer memory device, to this caching Equipment sends IP message.
Wherein, this IP message includes this URL, the IP address of this user, the IP address of this server, the mark of this server With this resource local resource mark on that server.Described server be designated the domain name of described server or described clothes The IP address of business device.Described resource on the right of the local resource on described server is designated the "/" of the rightmost side in URL in Hold.
For example, when the URL that IP message includes is http://tv.sohu.com/20120605/ During n344791935.shtml, then described server be designated tv.sohu.com, i.e. domain name, described resource is in this server On local resource be designated n344791935.shtml.
When described server be designated described server IP address when, IP message include this URL, this user IP ground Location, the IP address of this server, the mark of this server and this resource local resource mark on that server should be managed Solve the IP address carrying two this servers of identical for this IP message, or be understood to this IP message in order to only carry The IP address of one this server.
This IP message is actually used to user's request message requested resource described in user's request, and this IP Message be used for indicate this buffer memory device to this user's transmission source address be the IP address of this server, destination address be this user's IP address and carry the data message of this resource.User so can be made to can't see the address information of buffer memory device, it is to avoid sudden and violent Dew buffer memory device is it is achieved that cache management equipment and buffer memory device transmit to the information transparency of user, simultaneously, it is to avoid attacker Attack to buffer memory device, has ensured the safety of information transfer.
Further, as shown in fig. 6, this cache management equipment 500, also include:
Forward rule generating unit 504, for being transmission control protocol TCP meeting when the session including this user's request message During words, this cache management equipment generates second for this edge router and forwards rule.
Wherein, the Matching Elements of this second forwarding rule include:The destination address of this user's request message, this user's request The destination slogan of message, the transport layer protocol number of this user's request message, the source address of this user's request message and this user The source port number of request message, this second forwarding rule corresponding forwarding purpose equipment is this buffer memory device.
Wherein, this second forwarding rule corresponding forwarding purpose equipment refers to edge router for this buffer memory device and incites somebody to action The message mating this second forwarding rule is sent to buffer memory device, is specially in the present embodiment:User is receiving buffer memory device Send resource after, can to this buffer memory device send response message, this response message when being received by edge router, edge Router according to longest match principle select second forward rule, by with this second forwarding rule match response message according to be somebody's turn to do The address information of buffer memory device sends to buffer memory device, and so, the response message that user replys can directly be sent out by edge router Deliver to buffer memory device, without again through cache management equipment, thus improve forward efficiency.
Wherein, this longest match principle is searched first for edge router and is forwarded rule and the second forwarding rule, and selects The most forwarding rule of coupling element, in the present embodiment, because the second coupling element forwarding rule includes:User's request message Source address, the source port number of user's request message, the destination address of user's request message, the destination interface of user's request message Number and user's request message transport layer protocol.The destination address of user's request message is exactly to provide user's request message to be asked The server of resource IP address.First forwards one group of selectable value of coupling element of rule to be:Server ip address, purpose Port numbers and transport layer protocol, therefore, edge router can select coupling element more second to forward rule.
Regular transmitting element 505, the second forwarding rule for generating this forwarding rule generating unit is sent to this side Edge router.
Wherein, the Matching Elements that this second forwarding rule includes are more than this regular Matching Elements including of the first forwarding.
The cache management equipment that above-described embodiment provides, manages each buffer memory device concentratedly by this cache management equipment, And it is directed to each edge router suitable buffer memory device of selection according to unified principle, so, not only ensure that and caching is set The concordance of standby optimum principle, decreases the time delay of network resource transmission simultaneously and decreases the loss of system.
The embodiment of the present invention provides a kind of edge router 700, as shown in fig. 7, comprises:
Second receiving unit 701, the user's request message sending for receive user.
Wherein, this user's request message includes the uniform resource position mark URL of this resource, the source ground of this user's request message Location is the Internet protocol IP address of the user sending this user's request message, and the destination address of this user's request message should for providing The IP address of the server of resource.
Second transmitting element 702, for determine this user's request message with first forwarding rule match after, by this second This user's request message that receiving unit 701 receives is transmitted to cache management equipment.
Wherein, if the IP address of this user is fixing, the Matching Elements of this first forwarding rule can include this service The transport layer protocol number of the IP address of device, the destination slogan of this user's request message and this user's request message.
Illustratively, first the coupling element of rule is forwarded to include the IP address of server, the destination of user's request message Slogan and the transport layer protocol number of this user's request message, for example, IP address:The IP address of Resource Server, user's request report The destination slogan of literary composition:80 (i.e. the port numbers of http protocol), the transport layer protocol of user's request message:6 (i.e. Transmission Control Protocol), Edge router receives user's request message, if the server ip address of this user's request message, destination slogan and transmission Layer protocol is consistent with the first forwarding rule of above-mentioned setting, and (i.e. the IP address of message Resource Server, destination slogan are 80, pass Defeated layer protocol is 6) when, then this user's request message is sent to cache management equipment.
Or, if the IP address of this user is change, the Matching Elements of this first forwarding rule can include this URL. The embodiment of the present invention is not limited thereto, and the parameter that other can mate is also within the scope of the present invention.
Further, as shown in figure 8, this edge router 700, also include:
Regular receiving unit 703, for being transmission control protocol TCP session when the session including this user's request message When, this edge routing device receives the second forwarding rule of this cache management equipment transmission.
Wherein, the Matching Elements of this second forwarding rule include:The destination address of this user's request message, this user's request The destination slogan of message, the transport layer protocol number of this user's request message, the source address of this user's request message and this user The source port number of request message.
Regular performance element 704, forwards rule for executing this first forwarding rule and second according to longest match principle.
Wherein, this longest match principle is searched first for edge router and is forwarded rule and the second forwarding rule, and selects The most forwarding rule of coupling element.In the present embodiment, because the second coupling element forwarding rule includes:User's request message Source address, the source port number of user's request message, the destination address of user's request message, the destination interface of user's request message Number and user's request message transport layer protocol.The destination address of user's request message is exactly to provide user's request message to be asked The server of resource IP address.First forwards one group of selectable value of coupling element of rule to be:Server ip address, purpose Port numbers and transport layer protocol, therefore, edge router can select coupling element more second to forward rule.
By the edge router being provided using above-described embodiment, not only ensure that consistent to buffer memory device optimum principle Property, decrease the time delay of network resource transmission simultaneously and decrease the loss of system.
The embodiment of the present invention provides a kind of buffer memory device 900, as shown in figure 9, including:
3rd receiving unit 901, the Internet protocol IP message sending for order caching management equipment.
Wherein, this IP message include the URL of this resource, the IP address of this user, provide this resource server IP ground Location, the mark of this server and this resource local resource mark on that server.Described server be designated described clothes The business domain name of device or the IP address of described server.Local resource on described server for the described resource is designated in URL Content on the right of the "/" on right side.
For example, when the URL that IP message includes is http://tv.sohu.com/20120605/ During n344791935.shtml, then described server be designated tv.sohu.com, i.e. domain name, described resource is in this server On local resource be designated n344791935.shtml.
When described server be designated described server IP address when, IP message include this URL, this user IP ground Location, the IP address of this server, the mark of this server and this resource local resource mark on that server should be managed Solve the IP address carrying two this servers of identical for this IP message, or be understood to this IP message in order to only carry The IP address of one this server.
This IP message is actually used to user's request message requested resource described in user's request, and this IP Message be used for indicate this buffer memory device to this user's transmission source address be the IP address of this server, destination address be this user's IP address and carry the data message of this resource.Can be so the address information that user can't see buffer memory device, it is to avoid sudden and violent Dew buffer memory device is it is achieved that cache management equipment and buffer memory device transmit to the information transparency of user, simultaneously, it is to avoid attacker Attack to buffer memory device, has ensured the safety of information transfer.
3rd determining unit 902, for this server in this IP message of being received according to the 3rd receiving unit 901 Mark and this local resource mark determine whether this buffer memory device is cached with this resource;
3rd transmitting element 903, for the 3rd determining unit 902 determine this buffer memory device be cached with this resource when, Send the data message carrying this resource to this user.
Wherein, the source address of this data message be the IP address of this server, destination address be this user IP address.
Further, as shown in Figure 10, this buffer memory device 900, also includes:
3rd request unit 904, has described money for determining that described buffer memory device is uncached in the 3rd determining unit 902 During source, according to this URL to this resource of this server request.
3rd data message transmitting element 905, for getting after this resource according to the 3rd request unit 904, to this User sends the data message carrying this resource.
Wherein, the source address of this data message be the IP address of this server, destination address be this user IP address.
The buffer memory device being provided using above-described embodiment, not only ensure that the concordance to buffer memory device optimum principle, with When decrease the time delay of network resource transmission and decrease the loss of system.
It should be noted that affiliated those skilled in the art can be understood that, for convenience and simplicity of description, The specific work process of each equipment of foregoing description, may be referred to the corresponding process in preceding method embodiment, and here is no longer Repeat.
The embodiment of the present invention provides a kind of system for asking resource, as shown in figure 11, including:Cache management equipment 1100th, buffer memory device 1101 and edge router 1102,
This cache management equipment 1100, for receiving the user's request message of edge router 1101 forwarding.
Wherein, this user's request message includes requested resource URL, and the source address of this user's request message is to send to be somebody's turn to do The IP address of the user of user's request message, the destination address of this user's request message is for providing the IP ground of the server of this resource Location.
In addition, this user's request message is to determine that this user's request message meets the first forwarding rule in this edge router It is transmitted to this cache management equipment afterwards.
Further, if the IP address of this user is fixing, the Matching Elements of this first forwarding rule can include this The transport layer protocol number of the IP address of server, the destination slogan of this user's request message and this user's request message.
Illustratively, first the coupling element of rule is forwarded to include the IP address of server, the destination of user's request message Slogan and the transport layer protocol number of this user's request message, as follows:IP address:The IP address of Resource Server, user's request report The destination slogan of literary composition:80 (i.e. the port numbers of http protocol), the transport layer protocol of user's request message:6 (i.e. Transmission Control Protocol), Edge router receives user's request message, if the server ip address of this user's request message, destination slogan and transmission Layer protocol is consistent with the first forwarding rule of above-mentioned setting, and (i.e. the IP address of message Resource Server, destination slogan are 80, pass Defeated layer protocol is 6) when, then this user's request message is sent to cache management equipment.
Or, if the IP address of this user is change, the Matching Elements of this first forwarding rule can include this URL. The embodiment of the present invention is not limited thereto, and the parameter that other can mate is also within the scope of the present invention.
This buffer memory device 1101, the Internet protocol IP message sending for order caching management equipment 1100, and according to this The mark of server and this local resource mark determine whether this buffer memory device is cached with this resource, and determining in this buffer memory device should When buffer memory device is cached with this resource, then this buffer memory device sends the data message carrying this resource, this datagram to this user The IP address that the source address of literary composition is the IP address of this server, destination address is this user.
Wherein, this IP message includes this URL, the IP address of this user, the IP address of this server, the mark of this server With this resource local resource mark on that server.Described server be designated the domain name of described server or described clothes The IP address of business device.Described resource on the right of the local resource on described server is designated the "/" of the rightmost side in URL in Hold.
For example, when the URL that IP message includes is http://tv.sohu.com/20120605/ During n344791935.shtml, then described server be designated tv.sohu.com, i.e. domain name, described resource is in this server On local resource be designated n344791935.shtml.
When described server be designated described server IP address when, IP message include this URL, this user IP ground Location, the IP address of this server, the mark of this server and this resource local resource mark on that server should be managed Solve the IP address carrying two this servers of identical for this IP message, or be understood to this IP message in order to only carry The IP address of one this server.
This IP message is actually used to user's request message requested resource described in user's request, and this IP Message be used for indicate this buffer memory device to this user's transmission source address be the IP address of this server, destination address be this user's IP address and carry the data message of this resource.User so can be made to can't see the address information of buffer memory device, it is to avoid sudden and violent Dew buffer memory device is it is achieved that cache management equipment and buffer memory device transmit to the information transparency of user, simultaneously, it is to avoid attacker Attack to buffer memory device, has ensured the safety of information transfer.
This edge router 1102, the user's request message sending for receive user, and determining this user's request report Literary composition forwards after rule match with first, and this user's request message is transmitted to cache management equipment 1100.
Further, this cache management equipment 1100, being additionally operable to when the session including this user's request message is transmission control During agreement TCP session processed, this cache management equipment generates second for this edge router and forwards rule.
Wherein, in the present embodiment, the Matching Elements of this second forwarding rule include:The source address of user's request message, The source port number of user's request message, the destination address of user's request message, the destination slogan of user's request message, user ask Seek the transport layer protocol of message.The destination address of user's request message is exactly the clothes providing user's request message requested resource The IP address of business device.First forwards one group of selectable value of coupling element of rule to be:Server ip address, destination slogan and biography Defeated layer protocol, therefore, edge router can select coupling element more second to forward rule.
The system being provided using above-described embodiment, manages each buffer memory device concentratedly by cache management equipment, and according to Unified principle is directed to each edge router and selects suitable buffer memory device, so, not only ensure that preferred to buffer memory device The concordance of principle, decreases the time delay of network resource transmission simultaneously and decreases the loss of system.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, and any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by described scope of the claims.

Claims (16)

1. a kind of method for asking resource is it is characterised in that include:
Cache management equipment receive edge router forward user's request message, wherein, described user's request message include by The uniform resource position mark URL of the resource of request, the source address of described user's request message is to send described user's request message User Internet protocol IP address, the destination address of described user's request message is for providing the IP ground of the server of described resource Location, described user's request message is to determine in described edge router to turn after described user's request message meets the first forwarding rule Issue described cache management equipment;
Described cache management equipment determines buffer memory device according to default strategy;
Described cache management equipment sends IP message to described buffer memory device, and described IP message includes described URL, described user IP address, the IP address of described server, the mark of the described server and described resource local resource on described server Mark;Described IP message is used for indicating that described buffer memory device sends the data of the resource carrying described user's request to described user Message.
2. method according to claim 1 is it is characterised in that methods described also includes:
When the session including described user's request message is transmission control protocol TCP session, described cache management equipment is institute State edge router and generate the second forwarding rule, described second forwards the Matching Elements of rule to include:Described user's request message Destination address, the destination slogan of described user's request message, the transport layer protocol number of described user's request message, described use The source address of family request message and the source port number of described user's request message, the described second regular corresponding forwarding purpose of forwarding Equipment is described buffer memory device;
Described second forwarding rule is sent to described edge router by described cache management equipment, wherein, described second forwarding The Matching Elements that rule includes are more than described first and forward the regular Matching Elements including.
3. method according to claim 1 and 2 it is characterised in that
Described first forwards the Matching Elements of rule to include the IP address of described server, the destination of described user's request message Slogan and the transport layer protocol number of described user's request message;Or, the regular Matching Elements of described first forwarding include described URL.
4. a kind of method for asking resource is it is characterised in that include:
The user's request message that edge router receive user sends;
Described edge router determine described user's request message with first forwarding rule match after, by described user's request report Literary composition is transmitted to cache management equipment so that described cache management equipment determines buffer memory device, and sends use to described buffer memory device Send the data message of the resource carrying described user's request in the described buffer memory device of instruction to described user;Wherein, described use Family request message includes the uniform resource position mark URL of described resource, and the source address of described user's request message is that transmission is described The Internet protocol IP address of the user of user's request message, the destination address of described user's request message is for providing described resource The IP address of server.
5. method according to claim 4 is it is characterised in that methods described also includes:
When the session including described user's request message is transmission control protocol TCP session, described edge routing device receives The second forwarding rule that described cache management equipment sends, described second forwards the Matching Elements of rule to include described user's request The destination address of message, the destination slogan of described user's request message, the transport layer protocol number of described user's request message, institute State the source address of user's request message and the source port number of described user's request message, the described second regular corresponding forwarding of forwarding Purpose equipment is described cache management equipment, and described second forwards the Matching Elements that rule includes to be more than described first forwards rule Including Matching Elements;
Described edge router forwards rule and second to forward rule according to longest match principle execution described first.
6. a kind of method to user's transmission resource is it is characterised in that include:
The Internet protocol IP message that buffer memory device order caching management equipment sends, described IP message includes the unification of described resource URLs URL, the IP address of described user, the IP address of server that described resource is provided, the mark of described server With local resource mark on described server for the described resource;
Described buffer memory device identifies and determines whether described buffer memory device delays according to the mark of described server and described local resource There is described resource;
Identify and determine described buffer memory device caching according to the mark of described server and described local resource in described buffer memory device When having described resource, then described buffer memory device sends the data message carrying described resource, described data message to described user Source address be described server IP address, destination address is the IP address of described user.
7. method according to claim 6 is it is characterised in that also include:
Identify and determine that described buffer memory device does not delay according to the mark of described server and described local resource in described buffer memory device When having described resource, then described buffer memory device resource according to described URL is to described server request;
Described buffer memory device, after getting described resource from described server, sends the number carrying described resource to described user According to message, the source address of described data message is the IP address of described server and IP address that destination address is described user.
8. a kind of cache management equipment is it is characterised in that include:
First receiving unit, for receiving the user's request message of edge router forwarding, wherein, described user's request message bag Include the uniform resource position mark URL of requested resource, the source address of described user's request message is to send described user's request The Internet protocol IP address of the user of message, the destination address of described user's request message is the server of the described resource of offer IP address, described user's request message is to determine that described user's request message meets the first forwarding rule in described edge router It is transmitted to described cache management equipment afterwards;
First determining unit, for determining buffer memory device according to default strategy;
Solicited message transmitting element, for after described first determining unit determines described buffer memory device, to described buffer memory device Send IP message, described IP message includes described URL, the IP address of described user, the IP address of described server, described service The mark of the device and described resource local resource mark on described server.
9. equipment according to claim 8 is it is characterised in that also include:
Forward rule generating unit, during for being transmission control protocol TCP session when the session including described user's request message, Described cache management equipment is that described edge router generates the second forwarding rule, and described second forwards the Matching Elements bag of rule Include:The destination address of described user's request message, the destination slogan of described user's request message, described user's request message The source port number of transport layer protocol number, the source address of described user's request message and described user's request message, described second turn Sending out rule corresponding forwarding purpose equipment is described buffer memory device;
Regular transmitting element, for being sent to described edge road by described the second forwarding rule forwarding rule generating unit to generate By device, wherein, described second forwards the Matching Elements that rule includes to be more than the Matching Elements that described first forwarding rule includes.
10. equipment according to claim 8 or claim 9 is it is characterised in that described first forwards the Matching Elements of rule to include institute State the transport layer protocol of the IP address, the destination slogan of described user's request message and described user's request message of server Number;Or, described first forwards the Matching Elements of rule to include described URL.
A kind of 11. edge routers are it is characterised in that include:
Second receiving unit, the user's request message sending for receive user;
Second transmitting element, for, after determining that described user's request message and first forwards rule match, described second being connect The described user's request message receiving unit reception is transmitted to cache management equipment, and wherein, described user's request message includes resource Uniform resource position mark URL, the source address of described user's request message is the net of the user sending described user's request message Border Protocol IP address, the destination address of described user's request message is for providing the IP address of the server of described resource.
12. edge routers according to claim 11 are it is characterised in that also include:
Regular receiving unit, during for being transmission control protocol TCP session when the session including described user's request message, described Edge routing device receives the second forwarding rule that described cache management equipment sends, and described second forwards the Matching Elements of rule Including the destination address of described user's request message, the destination slogan of described user's request message, described user's request message Transport layer protocol number, the source address of described user's request message and described user's request message source port number, described second Rule corresponding forwarding purpose equipment is forwarded to be described cache management equipment, described second forwards the Matching Elements that rule includes many In the described first Matching Elements forwarding rule inclusion;
Regular performance element, for forwarding rule and second to forward rule according to longest match principle execution described first.
A kind of 13. buffer memory devices are it is characterised in that include:
3rd receiving unit, the Internet protocol IP message sending for order caching management equipment, described IP message includes resource Uniform resource position mark URL, the IP address of user, provide the IP address of server of resource, the mark of described server and Local resource mark on described server for the resource;
3rd determining unit, for the mark of the described server in the described IP message according to described 3rd receiving unit reception Identify with described local resource and determine whether described buffer memory device is cached with described resource;
3rd transmitting element, for when described 3rd determining unit determines that described buffer memory device is cached with described resource, to institute State user and send the data message carrying described resource, the source address of described data message is the IP address of described server, mesh Address be described user IP address.
14. equipment according to claim 13 are it is characterised in that also include:
3rd request unit, for when described 3rd determining unit determines that described buffer memory device is uncached and has described resource, root According to described URL to resource described in described server request;
3rd data message transmitting element, for being got after described resource according to described 3rd request unit, to described user Send the data message carrying described resource, the source address of described data message is the IP address of described server, destination address IP address for described user.
15. a kind of system for asking resource is it is characterised in that include:Cache management equipment, buffer memory device and edge route Device,
Described cache management equipment, for receiving the user's request message of edge router forwarding, wherein, described user's request report Literary composition includes the uniform resource position mark URL of requested resource, and the source address of described user's request message is to send described user The Internet protocol IP address of the user of request message, the destination address of described user's request message is for providing the service of described resource The IP address of device, described user's request message is to determine that described user's request message meets the first forwarding in described edge router It is transmitted to described cache management equipment after rule, buffer memory device is determined according to default strategy, and sends out to described buffer memory device Send IP message, described IP message includes described URL, the IP address of described user, the IP address of described server, described server Mark and described resource on described server local resource mark;Described IP message be used for indicating described buffer memory device to Described user sends the data message of the resource carrying described user's request;
Described buffer memory device, the Internet protocol IP message sending for order caching management equipment, described IP message includes described The uniform resource position mark URL of resource, the IP address of described user, the IP address of server that described resource is provided, described clothes Local resource mark on described server for the mark and described resource of business device, the mark according to described server and described Ground resource identification determines whether described buffer memory device is cached with described resource, determines that described buffer memory device delays in described buffer memory device When having described resource, then described buffer memory device sends the data message carrying described resource, described datagram to described user The source address of literary composition is the IP address of described server, and destination address is the IP address of described user;
Described edge router, for receive user send user's request message, and determine described user's request message with After first forwards rule match, described user's request message is transmitted to cache management equipment.
16. systems according to claim 15 it is characterised in that
It is transmission control protocol TCP session that described cache management equipment is additionally operable to when the session including described user's request message When, described cache management equipment is that described edge router generates the second forwarding rule, and the coupling of described second forwarding rule will Element includes:The destination address of described user's request message, the destination slogan of described user's request message, described user's request report The source port number of the transport layer protocol number, the source address of described user's request message and described user's request message of literary composition, described the Two forward rule corresponding forwarding purpose equipment to be described buffer memory device, and the described second forwarding rule is sent to described edge Router, wherein, described second forwards the Matching Elements that rule includes to be more than the Matching Elements that described first forwarding rule includes.
CN201210186516.0A 2012-06-07 2012-06-07 A kind of method for asking resource, equipment and system Active CN103475626B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210186516.0A CN103475626B (en) 2012-06-07 2012-06-07 A kind of method for asking resource, equipment and system
PCT/CN2013/076687 WO2013182030A1 (en) 2012-06-07 2013-06-04 A method, device and system for requesting resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210186516.0A CN103475626B (en) 2012-06-07 2012-06-07 A kind of method for asking resource, equipment and system

Publications (2)

Publication Number Publication Date
CN103475626A CN103475626A (en) 2013-12-25
CN103475626B true CN103475626B (en) 2017-03-08

Family

ID=49711364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210186516.0A Active CN103475626B (en) 2012-06-07 2012-06-07 A kind of method for asking resource, equipment and system

Country Status (2)

Country Link
CN (1) CN103475626B (en)
WO (1) WO2013182030A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337808B (en) * 2015-11-30 2019-01-04 网宿科技股份有限公司 The method, apparatus and system of data transmission
CN106888228A (en) * 2015-12-15 2017-06-23 中国电信股份有限公司 Method, conversation controller and the system accelerated for content
CN107370690B (en) * 2016-05-13 2020-05-12 ***通信有限公司研究院 Service content transmission method, terminal and network side equipment
CN108023900B (en) * 2016-10-31 2020-11-27 中国电信股份有限公司 Method and system for realizing transparent cache
CN111835642B (en) * 2019-04-19 2022-07-29 华为技术有限公司 Service processing method and network equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6587928B1 (en) * 2000-02-28 2003-07-01 Blue Coat Systems, Inc. Scheme for segregating cacheable and non-cacheable by port designation
CN1805355A (en) * 2006-01-16 2006-07-19 北京北方烽火科技有限公司 Method for implementing service orientation in multi-node network in mobile stream media system
CN101222424A (en) * 2007-12-24 2008-07-16 中国电信股份有限公司 Content distribution network and scheduling method based on content in the network
CN101242422A (en) * 2007-02-06 2008-08-13 中国电信股份有限公司 Content distribution network system and method applicable to multi-service fusion
CN101431532A (en) * 2008-12-15 2009-05-13 中国电信股份有限公司 Content routing method, load balancing equipment and resource management equipment
CN101789904A (en) * 2010-02-04 2010-07-28 杭州华三通信技术有限公司 Method and equipment for controlling flow
CN101984637A (en) * 2010-11-02 2011-03-09 中兴通讯股份有限公司 Content distribution implementation method and system
CN102291447A (en) * 2011-08-05 2011-12-21 中国电信股份有限公司 Content distribution network load scheduling method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100418320C (en) * 2006-10-20 2008-09-10 清华大学 Active obtaining method for internet data based on mobile storage device
CN101282281B (en) * 2007-04-03 2011-03-30 华为技术有限公司 Medium distributing system and apparatus as well as flow medium play method
CN101247367B (en) * 2008-04-08 2011-03-23 中国电信股份有限公司 Content providing method and system based on content distribution network and peer-to-peer network
US8204060B2 (en) * 2009-01-30 2012-06-19 Palo Alto Research Center Incorporated Method and system for facilitating forwarding a packet in a content-centric network
US8160015B2 (en) * 2009-10-27 2012-04-17 Qualcomm Incorporated Systems and methods for measuring and reducing latency of radio link flows
CN102130778A (en) * 2010-10-22 2011-07-20 华为技术有限公司 Method and system for protecting IPTV (Internet Protocol Television) multicast service

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6587928B1 (en) * 2000-02-28 2003-07-01 Blue Coat Systems, Inc. Scheme for segregating cacheable and non-cacheable by port designation
CN1805355A (en) * 2006-01-16 2006-07-19 北京北方烽火科技有限公司 Method for implementing service orientation in multi-node network in mobile stream media system
CN101242422A (en) * 2007-02-06 2008-08-13 中国电信股份有限公司 Content distribution network system and method applicable to multi-service fusion
CN101222424A (en) * 2007-12-24 2008-07-16 中国电信股份有限公司 Content distribution network and scheduling method based on content in the network
CN101431532A (en) * 2008-12-15 2009-05-13 中国电信股份有限公司 Content routing method, load balancing equipment and resource management equipment
CN101789904A (en) * 2010-02-04 2010-07-28 杭州华三通信技术有限公司 Method and equipment for controlling flow
CN101984637A (en) * 2010-11-02 2011-03-09 中兴通讯股份有限公司 Content distribution implementation method and system
CN102291447A (en) * 2011-08-05 2011-12-21 中国电信股份有限公司 Content distribution network load scheduling method and system

Also Published As

Publication number Publication date
CN103475626A (en) 2013-12-25
WO2013182030A1 (en) 2013-12-12

Similar Documents

Publication Publication Date Title
CN103475626B (en) A kind of method for asking resource, equipment and system
CN101521927B (en) Method and system for restraining multicast transmitting path
CN104519036B (en) A kind of method and device for sending business request information
EP3021537B1 (en) Method, device and system for determining content acquisition path and processing request
CN101039309B (en) Link sharing service apparatus and communication method thereof
CN103581765B (en) The method and apparatus that a kind of message forwards
CN107181804B (en) The method for down loading and device of resource
CN104539531A (en) Data transmission method and device
US9621412B2 (en) Method for guaranteeing service continuity in a telecommunication network and system thereof
US20150127837A1 (en) Relay apparatus and data transfer method
CN104462033A (en) Method and device for realizing editing operation among devices
EP3135016A1 (en) Managing sequence values with added headers in computing devices
CN102439946B (en) Data transmission method and device
CN104010046A (en) Server selecting method and system, recording server and measurement servers
CN107026878A (en) Subscribe to the dissemination method and device of message
WO2014047951A1 (en) Network storage method, switch device, and controller
CN103138961B (en) server control method, controlled server and central control server
JP5399276B2 (en) Content distribution system and method and program
CN105721314A (en) Method and equipment for sending data packet
WO2018086575A1 (en) Method and device for controlling media resource
JP2007233700A (en) Cache system, load monitoring server, cache management server, and cache server
CN105230074B (en) Video cache switching handling method, device and system
JP2006025211A (en) Peer-to-peer terminal device, peer-to-peer communication system, peer-to-peer communication method, and peer-to-peer terminal program
CN105491057A (en) Data transmission method and device for preventing distributed reject service DDoS attack
KR20020041851A (en) Error control method in the multicasting transmission system using repeater server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant