CN103475626A - Method, equipment and system used for resource requesting - Google Patents

Method, equipment and system used for resource requesting Download PDF

Info

Publication number
CN103475626A
CN103475626A CN2012101865160A CN201210186516A CN103475626A CN 103475626 A CN103475626 A CN 103475626A CN 2012101865160 A CN2012101865160 A CN 2012101865160A CN 201210186516 A CN201210186516 A CN 201210186516A CN 103475626 A CN103475626 A CN 103475626A
Authority
CN
China
Prior art keywords
user
request message
address
resource
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012101865160A
Other languages
Chinese (zh)
Other versions
CN103475626B (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

Images

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 invention provides a method, equipment and a system used for resource requesting and relates to the field of network information transmission. Pieces of cache equipment are managed by cache management equipment in a centralized way, and the burden of edge routing equipment is reduced. The method comprises the following steps: the cache management equipment receives a user request message forwarded by an edge router, wherein the user request message is forwarded to the cache management equipment after the edge router determines that the user request message conforms to a first forwarding rule; the cache management equipment determines a piece of cache equipment according to a preset strategy; and the cache management equipment sends an IP message to the cache equipment, wherein the IP message includes an URL, the IP address of a user, the IP address of a server, the identifier of the server and the local resource identifier of resource on the server. The method, the equipment and the system which are provided by the embodiment of the invention are used for resource requesting.

Description

A kind of method for request resource, equipment and system
Technical field
The present invention relates to the network information transfer field, relate in particular to a kind of method for request resource, equipment and system.
Background technology
Due to broadband network, at high speed development all over the world, the user is also more and more higher to the requirement of the transmission service quality of Internet resources (audio frequency, video etc.).
In order to improve the transmission service quality of Internet resources; improve user's satisfaction; operator usually can dispose buffer memory device and obtain also storage networking resource; the user is when the acquisition request Internet resources; edge router only need be redirected user's request message or be forwarded on buffer memory device; if this buffer memory device stores the Internet resources of user's request; this buffer memory device directly sends to the user by these Internet resources; and do not need to network resource server to obtain; because the buffer memory device distance users is nearer, thereby improved the transmission speed of Internet resources.
But, operator is when disposing buffer memory device, usually can dispose a plurality of buffer memory devices, because caching resource and the load of each buffer memory device are different, therefore, edge router need to be selected suitable buffer memory device, in prior art, each edge router all needs load by obtaining all buffer memory devices or buffer memory device to user's path and determines suitable buffer memory device by calculating, like this, the obtaining and calculating of each edge router repeatability, not only increase the time delay of transfer of data but also increased the loss of system, simultaneously, because each edge router is independently selected suitable buffer memory device, make the optimum principle of each edge router inconsistent.
Summary of the invention
Embodiments of the invention provide a kind of method for request resource, equipment and system, the heavier problem of burden caused because knowing the state information of buffer memory device to solve edge router.。
For achieving the above object, embodiments of the invention adopt following technical scheme:
The embodiment of the present invention provides a kind of method for request resource, comprising:
Cache management equipment receives user's request message that edge router forwards, wherein, described user's request message comprises the uniform resource position mark URL of requested resource, the source address of described user's request message is the user's of the described user's request message of transmission Internet protocol IP address, the IP address that the destination address of described user's request message is server that described resource is provided, described user's request message is determined after described user's request message meets the first forwarding rule and is transmitted to described cache management equipment at described edge router;
Described cache management equipment is determined buffer memory device according to default strategy;
Described cache management equipment sends the IP message to described buffer memory device, and described IP message comprises sign and the local resource sign of described resource on described server of the IP address of described URL, described user's IP address, described server, described server.
Alternatively, described method also comprises:
When the session that comprises described user's request message is transmission control protocol TCP session, described cache management equipment is that described edge router generates the second forwarding rule, described second forwards regular Matching Elements comprises: the destination slogan of the destination address of described user's request message, described user's request message, the transport layer protocol of described user's request message number, the source address of described user's request message and the source port number of described user's request message, and described second to forward forwarding purpose equipment corresponding to rule be described buffer memory device;
Described cache management equipment forwards rule by described second and sends to described edge router, and wherein, described second forwards the regular Matching Elements comprised forwards more than described first the Matching Elements that rule comprises.
Alternatively, the regular Matching Elements of described the first forwarding comprises the destination slogan of the IP address of described server, described user's request message and the transport layer protocol number of described user's request message; Perhaps, the regular Matching Elements of described the first forwarding comprises described URL.
The embodiment of the present invention provides a kind of method for request resource, comprising:
Edge router receives user's request message that the user sends;
Described edge router is after definite described user's request message and first forwards rule match, described user's request message is transmitted to cache management equipment, wherein, described user's request message comprises the uniform resource position mark URL of described resource, the Internet protocol IP address that the source address of described user's request message is the user that sends described user's request message, the IP address that the destination address of described user's request message is server that described resource is provided.
Alternatively, described method also comprises:
When the session that comprises 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 destination address that regular Matching Elements comprises described user's request message, the destination slogan of described user's request message, the transport layer protocol number of described user's request message, the source port number of the source address of described user's request message and described user's request message, the described second forwarding purpose equipment that forwards the rule correspondence is described cache management equipment, described second forwards the regular Matching Elements comprised forwards more than described first the Matching Elements that rule comprises,
Described edge router is carried out described first according to longest match principle and is forwarded rule and the second forwarding rule.
The embodiment of the present invention provides a kind of method that sends resource to the user, comprising:
Buffer memory device receives the Internet protocol IP message that cache management equipment sends, and described IP message comprises sign and the local resource sign of described resource on described server of the uniform resource position mark URL of described resource, described user's IP address, the IP address that the server of described resource is provided, described server;
Described buffer memory device determines according to sign and the described local resource sign of described server whether described buffer memory device is cached with described resource;
When described buffer memory device determines that according to the sign of described server and described local resource sign described buffer memory device is cached with described resource, described buffer memory device sends the data message that carries described resource to described user, the IP address that the source address of described data message is described server, the IP address that destination address is described user.
Alternatively, also comprise:
When described buffer memory device determines that according to the sign of described server and described local resource sign described buffer memory device is not cached with described resource, described buffer memory device according to described URL to the described resource of described server request;
Described buffer memory device, from described server gets described resource, sends the data message that carries described resource, the IP address that the IP address that the source address of described data message is described server and destination address are described user to described user.
The embodiment of the present invention provides a kind of cache management equipment, comprising:
The first receiving element, the user's request message forwarded for receiving edge router, wherein, described user's request message comprises the uniform resource position mark URL of requested resource, the source address of described user's request message is the user's of the described user's request message of transmission Internet protocol IP address, the IP address that the destination address of described user's request message is server that described resource is provided, described user's request message is determined after described user's request message meets the first forwarding rule and is transmitted to described cache management equipment at described edge router;
The first determining unit, determine buffer memory device for the strategy according to default;
The solicited message transmitting element, for after described the first determining unit is determined described buffer memory device, send the IP message to described buffer memory device, described IP message comprises sign and the local resource sign of described resource on described server of the IP address of described URL, described user's IP address, described server, described server.
Alternatively, also comprise:
Forward regular generation unit, for when the session that comprises described user's request message is transmission control protocol TCP session, described cache management equipment is that described edge router generates the second forwarding rule, described second forwards regular Matching Elements comprises: the destination address of described user's request message, the destination slogan of described user's request message, the transport layer protocol number of described user's request message, the source port number of the source address of described user's request message and described user's request message, the described second forwarding purpose equipment that forwards the rule correspondence is described buffer memory device,
The rule transmitting element, send to described edge router for the second forwarding rule that the regular generation unit of described forwarding is generated, and wherein, described second forwards the regular Matching Elements comprised forwards more than described first the Matching Elements that rule comprises.
Alternatively, the regular Matching Elements of described the first forwarding comprises the destination slogan of the IP address of described server, described user's request message and the transport layer protocol number of described user's request message; Perhaps, the regular Matching Elements of described the first forwarding comprises described URL.
The embodiment of the present invention provides a kind of edge router, comprising:
The second receiving element, the user's request message sent for receiving the user;
The second transmitting element, after at definite described user's request message and first, forwarding rule match, described user's request message that described the second receiving element is received is transmitted to cache management equipment, wherein, described user's request message comprises the uniform resource position mark URL of described resource, the Internet protocol IP address that the source address of described user's request message is the user that sends described user's request message, the IP address that the destination address of described user's request message is server that described resource is provided.
Alternatively, also comprise:
The rule receiving element, for when the session that comprises 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 destination address that regular Matching Elements comprises described user's request message, the destination slogan of described user's request message, the transport layer protocol number of described user's request message, the source port number of the source address of described user's request message and described user's request message, the described second forwarding purpose equipment that forwards the rule correspondence is described cache management equipment, described second forwards the regular Matching Elements comprised forwards more than described first the Matching Elements that rule comprises,
The rule performance element, forward rule and the second forwarding rule for carry out described first according to longest match principle.
The embodiment of the present invention provides a kind of buffer memory device, comprising:
The 3rd receiving element, the Internet protocol IP message sent for receiving cache management equipment, described IP message comprises sign and the local resource sign of described resource on described server of the uniform resource position mark URL of described resource, described user's IP address, the IP address that the server of described resource is provided, described server;
The 3rd determining unit, determine for sign and the described local resource sign of the described server of the described IP message that receives according to described the 3rd receiving element whether described buffer memory device is cached with described resource;
The 3rd transmitting element, for when described the 3rd determining unit determines that described buffer memory device is cached with described resource, send the data message that carries described resource, the IP address that the source address of described data message is described server, the IP address that destination address is described user to described user.
Alternatively, also comprise:
The 3rd request unit, for when described the 3rd determining unit determines that described buffer memory device is not cached with described resource, according to described URL to the described resource of described server request;
The 3rd data message transmitting element, for after getting described resource according to described the 3rd request unit, send the data message that carries described resource, the IP address that the source address of described data message is described server, the IP address that destination address is described user to described user.
The embodiment of the present invention provides a kind of system for request resource, comprising: cache management equipment, buffer memory device and edge router,
Described cache management equipment, the user's request message forwarded for receiving edge router, wherein, described user's request message comprises the uniform resource position mark URL of requested resource, the source address of described user's request message is the user's of the described user's request message of transmission Internet protocol IP address, the IP address that the destination address of described user's request message is server that described resource is provided, described user's request message is determined after described user's request message meets the first forwarding rule and is transmitted to described cache management equipment at described edge router, determine buffer memory device according to default strategy, and send the IP message to described buffer memory device, described IP message comprises described URL, described user's IP address, the IP address of described server, the sign of described server and the described resource local resource sign on described server,
Described buffer memory device, the Internet protocol IP message sent for receiving cache management equipment, described IP message comprises the uniform resource position mark URL of described resource, described user's IP address, the IP address of the server of described resource is provided, the sign of described server and the described resource local resource sign on described server, determine according to sign and the described local resource sign of described server whether described buffer memory device is cached with described resource, when described buffer memory device determines that described buffer memory device is cached with described resource, described buffer memory device sends the data message that carries described resource to described user, the IP address that the source address of described data message is described server, the IP address that destination address is described user,
Described edge router, the user's request message sent for receiving the user, and, after definite described user's request message and first forwards rule match, described user's request message is transmitted to cache management equipment.
Alternatively, described cache management equipment, while also for the session when comprising described user's request message, being transmission control protocol TCP session, described cache management equipment is that described edge router generates the second forwarding rule, described second forwards regular Matching Elements comprises: the destination address of described user's request message, the destination slogan of described user's request message, the transport layer protocol number of described user's request message, the source address of described family request message and the source port number of described user's request message, the described second forwarding purpose equipment that forwards the rule correspondence is described buffer memory device, and described the second forwarding rule is sent to described edge router, wherein, described second forwards the regular Matching Elements comprised forwards more than described first the Matching Elements that rule comprises.
The embodiment of the present invention provides a kind of method for request resource, equipment and system, by cache management equipment, manages each buffer memory device concentratedly, has reduced the burden of edge routing device.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
A kind of schematic diagram of the method for request resource that Fig. 1 provides for the embodiment of the present invention;
The another kind that Fig. 2 provides for the embodiment of the present invention is for the method schematic diagram of request resource;
The another kind that Fig. 3 provides for the embodiment of the present invention is for the method schematic diagram of request resource;
The schematic flow sheet of a kind of method for request resource that Fig. 4 provides for the embodiment of the present invention;
The structural representation of a kind of cache management equipment that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the another kind of cache management equipment that Fig. 6 provides for the embodiment of the present invention;
The structural representation of a kind of edge router that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the another kind of edge router that Fig. 8 provides for the embodiment of the present invention;
The structural representation of a kind of buffer memory device that Fig. 9 provides for the embodiment of the present invention;
The structural representation of the another kind of buffer memory device that Figure 10 provides for the embodiment of the present invention;
The schematic diagram of a kind of system for request resource that Figure 11 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method for request resource, and as shown in Figure 1, the executive agent of this embodiment is cache management equipment, and the method comprises:
S101, cache management equipment receive user's request message that edge router forwards.
Wherein, this user's request message comprises that (English full name is Uniform Resource Locator for the URL(uniform resource locator) of requested resource, english abbreviation is URL), (English full name is Internet Protocol to the Internet protocol that the source address of this user's request message is the user of this user's request message of transmission, english abbreviation is IP) address, the IP address that the destination address of this user's request message is server that this resource is provided.
In addition, this user's request message is determined after this user's request message meets the first forwarding rule and is transmitted to this cache management equipment at this edge router.
Further, if this user's IP address is fixed, the regular Matching Elements of this first forwarding can comprise the IP address of this server, the destination slogan of this user's request message and the transport layer protocol number of this user's request message.
Illustratively, first forwards the IP address that regular coupling element comprises server, the destination slogan of user's request message and the transport layer protocol number of this user's request message, as follows: the IP address: the IP address of Resource Server, the destination slogan of user's request message: 80 (being the port numbers of http protocol), the transport layer protocol of user's request message: 6 (being Transmission Control Protocol), edge router receives user's request message, if the server ip address of this user's request message, it (is the IP address of message Resource Server that the destination slogan forwards rule consistent with transport layer protocol with first of above-mentioned setting, the destination slogan be 80 and transport layer protocol be 6) time, this user's request message is sent to cache management equipment.
Perhaps, if this user's IP address changes, the regular Matching Elements of this first forwarding can comprise this URL.The embodiment of the present invention is not limited to this, and other parameters that can mate are also in protection scope of the present invention.
S102, this cache management equipment are determined buffer memory device according to default strategy.
Preferably, this cache management equipment determines that according to default strategy buffer memory device can be specifically: this cache management equipment obtains the resource allocation information of each buffer memory device, determine buffer memory device from each buffer memory device according to this URL, this resource allocation information comprises the URL of the resource of storing in buffer memory device and the load information of this buffer memory device.The embodiment of the present invention is not limited to this.
S103, this cache management equipment send the IP message to this buffer memory device.
Wherein, this IP message comprises this URL, this user's IP address, the IP address of this server, sign and the local resource sign of this resource on this server of this server.The domain name that is designated described server of described server or the IP address of described server.The local resource of described resource on described server be designated URL in the content on "/" the right of the rightmost side.
For instance, when the URL comprised when the IP message is http://tv.sohu.com/20120605/n344791935.shtml, described server be designated tv.sohu.com, i.e. domain name, the local resource of described resource on this server is designated n344791935.shtml.
When described server be designated the IP address of described server the time, the IP message comprises that this URL, this user's IP address, the IP address of this server, sign and the local resource sign of this resource on this server of this server are appreciated that this IP message has carried the IP address of two these identical servers, or are understood to that this IP message is in order only to have carried the IP address of this server.
This IP message is actually and is used to the user to ask described user's request message requested resource, and this IP message is used to indicate IP address that this buffer memory device is from this server to this user's transmission source address, IP address that destination address is this user and carries the data message of this resource.Can make like this user can't see the address information of buffer memory device, avoid exposing buffer memory device, realized the information transparency transmission to the user of cache management equipment and buffer memory device, simultaneously, avoid the attack of assailant to buffer memory device, ensured the fail safe of communication.
Further, when the session that comprises this user's request message is the TCP session, this cache management equipment forwards rule for this edge router generates second.
Wherein, this second forwards regular Matching Elements and comprises: the destination slogan of the destination address of this user's request message, this user's request message, the transport layer protocol of this user's request message number, the source address of this user's request message and the source port number of this user's request message.
This cache management equipment sends to this edge router by this second forwarding rule, wherein, and the Matching Elements that the Matching Elements that this second forwarding rule comprises comprises more than this first forwarding rule.Described edge router is carried out longest match principle, therefore, when a message all mates with the first forwarding rule and the second forwarding rule, according to the second forwarding rule, is forwarded.
Alternatively, the timer of cache management equipment setting can start at cache management equipment when buffer memory device sends user's request message, and stop when reaching or surpass Preset Time, if when timer reaches or surpass Preset Time, also do not receive the confirmation responsive feedback that buffer memory device sends, cache management equipment continues to send user's request message to this buffer memory device, now, and this timer replacement Preset Time.Until, after this cache management equipment receives the confirmation responsive feedback, cache management equipment just sends second to edge router and forwards rule.
In addition, this second forwarding purpose equipment that forwards the rule correspondence refers to for this buffer memory device, edge router will mate the regular message of this second forwarding and send to buffer memory device, in the present embodiment, be specially: the user is after the resource that receives the buffer memory device transmission, can send response message to this buffer memory device, this response message is when being received by edge router, edge router selects second to forward rule according to longest match principle, to be sent to buffer memory device according to the address information of this buffer memory device with this second response message that forwards rule match, like this, the response message that edge router can be replied the user directly is sent to buffer memory device, and do not need to pass through again cache management equipment, thereby improved forward efficiency.
Wherein, this longest match principle is that edge router is searched the first forwarding rule and the second forwarding rule, and selects the maximum forwarding rule of coupling element.In the present embodiment, because the coupling element of the second forwarding rule comprises: the destination slogan of the source port number of the source address of user's request message, user's request message, the destination address of user's request message, user's request message and the transport layer protocol of user's request message.The destination address of user's request message just is to provide the IP address of the server of user's request message requested resource.The first one group of optional value that forwards regular coupling element is: server ip address, destination slogan and transport layer protocol, therefore, edge router can be selected to mate element more second and forward rule.
But, because the user initiates the connection request to new resources, make edge router when receiving user's request message, need this user's request message is sent to cache management equipment, and the regular existence of the second forwarding can make edge router continue user's request message is sent to this buffer memory device, therefore, receive the connection ending message of user's transmission at edge router after, need to delete second and forward rule.
The method of the request resource that above-described embodiment provides, manage each buffer memory device concentratedly by cache management equipment, and select suitable buffer memory device according to unified principle for each edge router, like this, not only guaranteed the consistency to the buffer memory device optimum principle, reduced the time delay of network resource transmission simultaneously and reduced the loss of system.
The embodiment of the present invention provides a kind of method for request resource, and as shown in Figure 2, the executive agent of this embodiment is edge router, and the method comprises:
S201, edge router receive user's request message that the user sends.
Wherein, this user's request message comprises the URL of this resource, the Internet protocol IP address that the source address of this user's request message is the user that sends this user's request message, the IP address that the destination address of this user's request message is server that this resource is provided.
S202, this edge router, after definite this user's request message and first forwards rule match, are transmitted to cache management equipment by this user's request message.
Wherein, if this user's IP address is fixed, the regular Matching Elements of this first forwarding can comprise the IP address of this server, the destination slogan of this user's request message and the transport layer protocol number of this user's request message.
Illustratively, first forwards the IP address that regular coupling element comprises server, the destination slogan of user's request message and the transport layer protocol number of this user's request message, as follows: the IP address: the IP address of Resource Server, the destination slogan of user's request message: 80 (being the port numbers of http protocol), the transport layer protocol of user's request message: 6 (being Transmission Control Protocol), edge router receives user's request message, if the server ip address of this user's request message, it (is the IP address of message Resource Server that the destination slogan forwards rule consistent with transport layer protocol with first of above-mentioned setting, the destination slogan be 80 and transport layer protocol be 6) time, this user's request message is sent to cache management equipment.
Perhaps, if this user's IP address changes, the regular Matching Elements of this first forwarding can comprise this URL.The embodiment of the present invention is not limited to this, and other parameters that can mate are also in protection scope of the present invention.
Further, when the session that comprises this user's request message is the TCP session, this cache management equipment forwards rule for this edge router generates second.
Wherein, this second forwards regular Matching Elements and comprises: the destination slogan of the destination address of this user's request message, this user's request message, the transport layer protocol of this user's request message number, the source address of this user's request message and the source port number of this user's request message.
This cache management equipment sends to this edge router by this second forwarding rule, wherein, and the Matching Elements that the Matching Elements that this second forwarding rule comprises comprises more than this first forwarding rule.Described edge router is carried out longest match principle, therefore, when a message all mates with the first forwarding rule and the second forwarding rule, according to the second forwarding rule, is forwarded.
Alternatively, the timer of cache management equipment setting can start at cache management equipment when buffer memory device sends user's request message, and stop when reaching or surpass Preset Time, if when timer reaches or surpass Preset Time, also do not receive the confirmation responsive feedback that buffer memory device sends, cache management equipment continues to send user's request message to this buffer memory device, now, and this timer replacement Preset Time.Until, after this cache management equipment receives the confirmation responsive feedback, cache management equipment just sends second to edge router and forwards rule.
In addition, this second forwarding purpose equipment that forwards the rule correspondence is this buffer memory device, be specially: the user is after the resource that receives the buffer memory device transmission, can send response message to this buffer memory device, this response message is when being received by edge router, edge router selects second to forward rule according to longest match principle, to be sent to buffer memory device according to the address information of this buffer memory device with this second response message that forwards rule match, like this, the response message that edge router can be replied the user directly is sent to buffer memory device, and do not need to pass through again cache management equipment, thereby improved forward efficiency.
Wherein, this longest match principle is that edge router is searched the first forwarding rule and the second forwarding rule, and selects the maximum forwarding rule of coupling element.In the present embodiment, because the coupling element of the second forwarding rule comprises: the destination slogan of the source port number of the source address of user's request message, user's request message, the destination address of user's request message, user's request message and the transport layer protocol of user's request message.The destination address of user's request message just is to provide the IP address of the server of user's request message requested resource.The first one group of optional value that forwards regular coupling element is: server ip address, destination slogan and transport layer protocol, therefore, edge router can be selected to mate element more second and forward rule.
But, because the user initiates the connection request to new resources, make edge router when receiving user's request message, need this user's request message is sent to cache management equipment, and the regular existence of the second forwarding can make edge router continue user's request message is sent to this buffer memory device, therefore, receive the connection ending message of user's transmission at edge router after, need to delete second and forward rule.
The method of the request resource that above-described embodiment provides, manage each buffer memory device concentratedly by cache management equipment, and select suitable buffer memory device according to unified principle for each edge router, like this, not only guaranteed the consistency to the buffer memory device optimum principle, reduced the time delay of network resource transmission simultaneously and reduced the loss of system.
The embodiment of the present invention provides a kind of method that sends resource to the user, and as shown in Figure 3, the execution of the method embodiment themes as buffer memory device, comprising:
S301, buffer memory device receive the IP message that cache management equipment sends;
Wherein, this IP message comprises sign and the local resource sign of this resource on this server of the URL of this resource, this user's IP address, the IP address that the server of this resource is provided, this server.The domain name that is designated described server of described server or the IP address of described server.The local resource of described resource on described server be designated URL in the content on "/" the right of the rightmost side.
For instance, when the URL comprised when the IP message is http://tv.sohu.com/20120605/n344791935.shtml, described server be designated tv.sohu.com, i.e. domain name, the local resource of described resource on this server is designated n344791935.shtml.
When described server be designated the IP address of described server the time, the IP message comprises that this URL, this user's IP address, the IP address of this server, sign and the local resource sign of this resource on this server of this server are appreciated that this IP message has carried the IP address of two these identical servers, or are understood to that this IP message is in order only to have carried the IP address of this server.
This IP message is actually and is used to the user to ask described user's request message requested resource, and this IP message is used to indicate IP address that this buffer memory device is from this server to this user's transmission source address, IP address that destination address is this user and carries the data message of this resource.Can be the address information that the user can't see buffer memory device like this, avoid exposing buffer memory device, realized the information transparency transmission to the user of cache management equipment and buffer memory device, simultaneously, avoid the attack of assailant to buffer memory device, ensured the fail safe of communication.
S302, this buffer memory device determine according to sign and this local resource sign of this server whether this buffer memory device is cached with this resource.
S303, when this buffer memory device determines that according to the sign of this server and this local resource sign this buffer memory device is cached with this resource, this buffer memory device sends the data message that carries this resource to this user.
Wherein, the IP address that the IP address that the source address of this data message is this server, destination address are this user.
Further, when this buffer memory device determines that according to the sign of this server and this local resource sign this buffer memory device is not cached with this resource, this buffer memory device according to this URL to this resource of this server request.
This buffer memory device, from this server gets this resource, sends the data message that carries this resource to this user, the IP address that the IP address that the source address of this data message is this server, destination address are this user.
Adopt said method, manage each buffer memory device concentratedly by cache management equipment, and select suitable buffer memory device according to unified principle for each edge router, like this, not only guaranteed the consistency to the buffer memory device optimum principle, reduced the time delay of network resource transmission simultaneously and reduced the loss of system.
The embodiment of the present invention provides a kind of method for request resource, and as shown in Figure 4, the method concrete steps are:
S401, cache management equipment receive user's request message that edge router forwards.
Wherein, this user's request message comprises the URL of requested resource, the IP address that the source address of this user's request message is the user that sends this user's request message, the IP address that the destination address of this user's request message is server that this resource is provided.
In addition, this user's request message is determined after this user's request message meets the first forwarding rule and is transmitted to this cache management equipment at this edge router.
Further, if this user's IP address is fixed, the regular Matching Elements of this first forwarding can comprise the IP address of this server, the destination slogan of this user's request message and the transport layer protocol number of this user's request message.
Illustratively, first forwards the IP address that regular coupling element comprises server, the destination slogan of user's request message and the transport layer protocol number of this user's request message, as follows: the IP address: the IP address of Resource Server, the destination slogan of user's request message: 80 (being the port numbers of http protocol), the transport layer protocol of user's request message: 6 (being Transmission Control Protocol), edge router receives user's request message, if the server ip address of this user's request message, it (is the IP address of message Resource Server that the destination slogan forwards rule consistent with transport layer protocol with first of above-mentioned setting, the destination slogan is 80, transport layer protocol is 6) time, this user's request message is sent to cache management equipment.
Perhaps, if this user's IP address changes, the regular Matching Elements of this first forwarding can comprise this URL.The embodiment of the present invention is not limited to this, and other parameters that can mate are also in protection scope of the present invention.
S402, cache management equipment obtain the resource allocation information of each buffer memory device.
Wherein, this resource allocation information comprises the URL of the resource of storing in buffer memory device and the load information of this buffer memory device.
It should be noted that, step S402 is not limited to after step S401 and carries out, because cache management equipment in step S402 obtains the resource allocation information of buffer memory device and the process in step S401, be that relatively independent process does not exist absolute sequencing, therefore, step S402 only need get final product before step S403.
S403, cache management equipment are determined buffer memory device from each buffer memory device according to this URL.
Preferably, this cache management equipment determines that according to default strategy buffer memory device can be specifically: this cache management equipment obtains the resource allocation information of each buffer memory device, determines buffer memory device from each buffer memory device according to this URL.The embodiment of the present invention is not limited to this.
S404, cache management equipment send the IP message to this buffer memory device.
Wherein, this IP message comprises this URL, this user's IP address, the IP address of this server, sign and the local resource sign of this resource on this server of this server.The domain name that is designated described server of described server or the IP address of described server.The local resource of described resource on described server be designated URL in the content on "/" the right of the rightmost side.
For instance, when the URL comprised when the IP message is http://tv.sohu.com/20120605/n344791935.shtml, described server be designated tv.sohu.com, i.e. domain name, the local resource of described resource on this server is designated n344791935.shtml.
When described server be designated the IP address of described server the time, the IP message comprises that this URL, this user's IP address, the IP address of this server, sign and the local resource sign of this resource on this server of this server are appreciated that this IP message has carried the IP address of two these identical servers, or are understood to that this IP message is in order only to have carried the IP address of this server.
This IP message is actually and is used to the user to ask described user's request message requested resource, and this IP message is used to indicate IP address that this buffer memory device is from this server to this user's transmission source address, IP address that destination address is this user and carries the data message of this resource.Can make like this user can't see the address information of buffer memory device, avoid exposing buffer memory device, realized the information transparency transmission to the user of cache management equipment and buffer memory device, simultaneously, avoid the attack of assailant to buffer memory device, ensured the fail safe of communication.
S405, buffer memory device send and confirm responsive feedback to cache management equipment.
S406, when the session that comprises this user's request message is the TCP session, cache management equipment is that this edge router generates second and forwards rule, and this second is forwarded to rule and be sent to edge router.
Wherein, this second forwards regular Matching Elements and comprises: the destination slogan of the destination address of this user's request message, this user's request message, the transport layer protocol of this user's request message number, the source address of this user's request message and the source port number of this user's request message.
This cache management equipment sends to this edge router by this second forwarding rule, wherein, and the Matching Elements that the Matching Elements that this second forwarding rule comprises comprises more than this first forwarding rule.Described edge router is carried out longest match principle, therefore, when a message all mates with the first forwarding rule and the second forwarding rule, according to the second forwarding rule, is forwarded.
Alternatively, the timer of cache management equipment setting can start at cache management equipment when buffer memory device sends user's request message, and stop when reaching or surpass Preset Time, if when timer reaches or surpass Preset Time, also do not receive the confirmation responsive feedback that buffer memory device sends, cache management equipment continues to send user's request message to this buffer memory device, now, and this timer replacement Preset Time.Until, after this cache management equipment receives the confirmation responsive feedback, cache management equipment just sends second to edge router and forwards rule.
S407, buffer memory device send the data message that carries this resource to this user according to the URL in this user's request message.
Further, buffer memory device determines according to sign and this local resource sign of the server in this this user's request message whether this buffer memory device is cached with this resource,
If determine and to this user, send the data message that carries this resource when this buffer memory device is cached with this resource;
If determine when this buffer memory device is not cached with this resource, according to this URL to this resource of this server request.
This buffer memory device, from this server gets this resource, sends the data message that carries this resource to this user, the IP address that the IP address that the source address of this data message is this server, destination address are this user.
Preferably, when buffer memory device is sent to the user by this data message, due to the source address of this data message IP address that is this server, the user does not also know to exist the equipment such as cache management equipment and target cache equipment in the process of Gains resources, realized the information transparency transmission to the user of cache management equipment and buffer memory device, simultaneously, avoid the attack of assailant to buffer memory device, ensured the fail safe of communication.
S408, edge router receive the response message that the user sends to target cache equipment.
S409, edge router select second to forward rule according to longest match principle, will be sent to buffer memory device according to the address information of this buffer memory device with this second response message that forwards rule match.
Like this, the response message that edge router can be replied the user directly is sent to buffer memory device, and does not need to pass through cache management equipment again, thereby has improved forward efficiency.
Wherein, this longest match principle is that edge router is searched the first forwarding rule and the second forwarding rule, and selects the maximum forwarding rule of coupling element.In the present embodiment, because the coupling element of the second forwarding rule comprises: the destination slogan of the source port number of the source address of user's request message, user's request message, the destination address of user's request message, user's request message and the transport layer protocol of user's request message.The destination address of user's request message just is to provide the IP address of the server of user's request message requested resource.The first one group of optional value that forwards regular coupling element is: server ip address, destination slogan and transport layer protocol, therefore, edge router can be selected to mate element more second and forward rule.
S410, user send and connect end to edge router.
In addition, because the user initiates the connection request to new resources, make edge router when receiving user's request message, need this user's request message is sent to cache management equipment, and the regular existence of the second forwarding can make edge router continue user's request message is sent to this buffer memory device, therefore, further comprising the steps of at the method embodiment:
S411, this edge router, after receiving this connection end, are deleted the second forwarding rule.
The method of the request resource that above-described embodiment provides, manage each buffer memory device concentratedly by cache management equipment, and select suitable buffer memory device according to unified principle for each edge router, like this, not only guaranteed the consistency to the buffer memory device optimum principle, reduced the time delay of network resource transmission simultaneously and reduced the loss of system.
The embodiment of the present invention provides a kind of cache management equipment 500, as shown in Figure 5, comprising:
The first receiving element 501, the user's request message forwarded for receiving edge router.
Wherein, this user's request message comprises the URL of requested resource, the source address of this user's request message is the user's of this user's request message of transmission Internet protocol IP address, the IP address that the destination address of this user's request message is server that this resource is provided, this user's request message is determined after this user's request message meets the first forwarding rule and is transmitted to this cache management equipment at this edge router.
In addition, this user's request message is determined after this user's request message meets the first forwarding rule and is transmitted to this cache management equipment at this edge router.
Further, if this user's IP address is fixed, the regular Matching Elements of this first forwarding can comprise the IP address of this server, the destination slogan of this user's request message and the transport layer protocol number of this user's request message.
Illustratively, first forwards the IP address that regular coupling element comprises server, the destination slogan of user's request message and the transport layer protocol number of this user's request message, as follows: the IP address: the IP address of Resource Server, the destination slogan of user's request message: 80 (being the port numbers of http protocol), the transport layer protocol of user's request message: 6 (being Transmission Control Protocol), edge router receives user's request message, if the server ip address of this user's request message, it (is the IP address of message Resource Server that the destination slogan forwards rule consistent with transport layer protocol with first of above-mentioned setting, the destination slogan be 80 and transport layer protocol be 6) time, this user's request message is sent to cache management equipment.
Perhaps, if this user's IP address changes, the regular Matching Elements of this first forwarding can comprise this URL.The embodiment of the present invention is not limited to this, and other parameters that can mate are also in protection scope of the present invention.
The first determining unit 502, determine buffer memory device for the strategy according to default.
Solicited message transmitting element 503, after in this first determining unit 502, determining this buffer memory device, send the IP message to this buffer memory device.
Wherein, this IP message comprises this URL, this user's IP address, the IP address of this server, sign and the local resource sign of this resource on this server of this server.The domain name that is designated described server of described server or the IP address of described server.The local resource of described resource on described server be designated URL in the content on "/" the right of the rightmost side.
For instance, when the URL comprised when the IP message is http://tv.sohu.com/20120605/n344791935.shtml, described server be designated tv.sohu.com, i.e. domain name, the local resource of described resource on this server is designated n344791935.shtml.
When described server be designated the IP address of described server the time, the IP message comprises that this URL, this user's IP address, the IP address of this server, sign and the local resource sign of this resource on this server of this server are appreciated that this IP message has carried the IP address of two these identical servers, or are understood to that this IP message is in order only to have carried the IP address of this server.
This IP message is actually and is used to the user to ask described user's request message requested resource, and this IP message is used to indicate IP address that this buffer memory device is from this server to this user's transmission source address, IP address that destination address is this user and carries the data message of this resource.Can make like this user can't see the address information of buffer memory device, avoid exposing buffer memory device, realized the information transparency transmission to the user of cache management equipment and buffer memory device, simultaneously, avoid the attack of assailant to buffer memory device, ensured the fail safe of communication.
Further, as shown in Figure 6, this cache management equipment 500 also comprises:
Forward regular generation unit 504, while for the session when comprising this user's request message, being transmission control protocol TCP session, this cache management equipment forwards rule for this edge router generates second.
Wherein, this second forwards regular Matching Elements and comprise: the destination slogan of the destination address of this user's request message, this user's request message, the transport layer protocol of this user's request message number, the source address of this user's request message and the source port number of this user's request message, second to forward forwarding purpose equipment corresponding to rule be this buffer memory device for this.
Wherein, this second forwarding purpose equipment that forwards the rule correspondence refers to for this buffer memory device, edge router will mate the regular message of this second forwarding and send to buffer memory device, in the present embodiment, be specially: the user is after the resource that receives the buffer memory device transmission, can send response message to this buffer memory device, this response message is when being received by edge router, edge router selects second to forward rule according to longest match principle, to be sent to buffer memory device according to the address information of this buffer memory device with this second response message that forwards rule match, like this, the response message that edge router can be replied the user directly is sent to buffer memory device, and do not need to pass through again cache management equipment, thereby improved forward efficiency.
Wherein, this longest match principle is that edge router is searched the first forwarding rule and the second forwarding rule, and the maximum forwarding rule of selection coupling element, in the present embodiment, because the coupling element of the second forwarding rule comprises: the destination slogan of the source port number of the source address of user's request message, user's request message, the destination address of user's request message, user's request message and the transport layer protocol of user's request message.The destination address of user's request message just is to provide the IP address of the server of user's request message requested resource.The first one group of optional value that forwards regular coupling element is: server ip address, destination slogan and transport layer protocol, therefore, edge router can be selected to mate element more second and forward rule.
Rule transmitting element 505, send to this edge router for the second forwarding rule that this is forwarded to regular generation unit generation.
Wherein, the Matching Elements that the Matching Elements that this second forwarding rule comprises comprises more than this first forwarding rule.
The cache management equipment that above-described embodiment provides, manage each buffer memory device concentratedly by this cache management equipment, and select suitable buffer memory device according to unified principle for each edge router, like this, not only guaranteed the consistency to the buffer memory device optimum principle, reduced the time delay of network resource transmission simultaneously and reduced the loss of system.
The embodiment of the present invention provides a kind of edge router 700, as shown in Figure 7, comprising:
The second receiving element 701, the user's request message sent for receiving the user.
Wherein, this user's request message comprises the uniform resource position mark URL of this resource, the Internet protocol IP address that the source address of this user's request message is the user that sends this user's request message, the IP address that the destination address of this user's request message is server that this resource is provided.
The second transmitting element 702, after at definite this user's request message and first, forwarding rule match, this user's request message that this second receiving element 701 is received is transmitted to cache management equipment.
Wherein, if this user's IP address is fixed, the regular Matching Elements of this first forwarding can comprise the IP address of this server, the destination slogan of this user's request message and the transport layer protocol number of this user's request message.
Illustratively, first forwards the IP address that regular coupling element comprises server, the destination slogan of user's request message and the transport layer protocol number of this user's request message, for example, IP address: the IP address of Resource Server, the destination slogan of user's request message: 80 (being the port numbers of http protocol), the transport layer protocol of user's request message: 6 (being Transmission Control Protocol), edge router receives user's request message, if the server ip address of this user's request message, it (is the IP address of message Resource Server that the destination slogan forwards rule consistent with transport layer protocol with first of above-mentioned setting, the destination slogan is 80, transport layer protocol is 6) time, this user's request message is sent to cache management equipment.
Perhaps, if this user's IP address changes, the regular Matching Elements of this first forwarding can comprise this URL.The embodiment of the present invention is not limited to this, and other parameters that can mate are also in protection scope of the present invention.
Further, as shown in Figure 8, this edge router 700 also comprises:
Rule receiving element 703, while for the session when comprising this user's request message, being transmission control protocol TCP session, this edge routing device receives the second forwarding rule that this cache management equipment sends.
Wherein, this second forwards regular Matching Elements and comprises: the destination slogan of the destination address of this user's request message, this user's request message, the transport layer protocol of this user's request message number, the source address of this user's request message and the source port number of this user's request message.
Rule performance element 704, forward rule for carry out this first forwarding rule and second according to longest match principle.
Wherein, this longest match principle is that edge router is searched the first forwarding rule and the second forwarding rule, and selects the maximum forwarding rule of coupling element.In the present embodiment, because the coupling element of the second forwarding rule comprises: the destination slogan of the source port number of the source address of user's request message, user's request message, the destination address of user's request message, user's request message and the transport layer protocol of user's request message.The destination address of user's request message just is to provide the IP address of the server of user's request message requested resource.The first one group of optional value that forwards regular coupling element is: server ip address, destination slogan and transport layer protocol, therefore, edge router can be selected to mate element more second and forward rule.
Edge router by adopting above-described embodiment to provide, not only guaranteed the consistency to the buffer memory device optimum principle, reduced the time delay of network resource transmission simultaneously and reduced the loss of system.
The embodiment of the present invention provides a kind of buffer memory device 900, as shown in Figure 9, comprising:
The 3rd receiving element 901, the Internet protocol IP message sent for receiving cache management equipment.
Wherein, this IP message comprises sign and the local resource sign of this resource on this server of the URL of this resource, this user's IP address, the IP address that the server of this resource is provided, this server.The domain name that is designated described server of described server or the IP address of described server.The local resource of described resource on described server be designated URL in the content on "/" the right of the rightmost side.
For instance, when the URL comprised when the IP message is http://tv.sohu.com/20120605/n344791935.shtml, described server be designated tv.sohu.com, i.e. domain name, the local resource of described resource on this server is designated n344791935.shtml.
When described server be designated the IP address of described server the time, the IP message comprises that this URL, this user's IP address, the IP address of this server, sign and the local resource sign of this resource on this server of this server are appreciated that this IP message has carried the IP address of two these identical servers, or are understood to that this IP message is in order only to have carried the IP address of this server.
This IP message is actually and is used to the user to ask described user's request message requested resource, and this IP message is used to indicate IP address that this buffer memory device is from this server to this user's transmission source address, IP address that destination address is this user and carries the data message of this resource.Can be the address information that the user can't see buffer memory device like this, avoid exposing buffer memory device, realized the information transparency transmission to the user of cache management equipment and buffer memory device, simultaneously, avoid the attack of assailant to buffer memory device, ensured the fail safe of communication.
The 3rd determining unit 902, determine for sign and this local resource sign of this server of this IP message of receiving according to the 3rd receiving element 901 whether this buffer memory device is cached with this resource;
The 3rd transmitting element 903, for when the 3rd determining unit 902 determines that this buffer memory device is cached with this resource, send the data message that carries this resource to this user.
Wherein, the IP address that the IP address that the source address of this data message is this server, destination address are this user.
Further, as shown in figure 10, this buffer memory device 900 also comprises:
The 3rd request unit 904, for when the 3rd determining unit 902 determines that described buffer memory device is not cached with described resource, according to this URL to this resource of this server request.
The 3rd data message transmitting element 905, after according to the 3rd request unit 904, getting this resource, send the data message that carries this resource to this user.
Wherein, the IP address that the IP address that the source address of this data message is this server, destination address are this user.
The buffer memory device that adopts above-described embodiment to provide, not only guaranteed the consistency to the buffer memory device optimum principle, reduced the time delay of network resource transmission simultaneously and reduced the loss of system.
It should be noted that, affiliated those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of each equipment of foregoing description, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
The embodiment of the present invention provides a kind of system for request resource, as shown in figure 11, comprising: cache management equipment 1100, buffer memory device 1101 and edge router 1102,
This cache management equipment 1100, the user's request message forwarded for receiving edge router 1101.
Wherein, this user's request message comprises requested resource URL, the IP address that the source address of this user's request message is the user that sends this user's request message, the IP address that the destination address of this user's request message is server that this resource is provided.
In addition, this user's request message is determined after this user's request message meets the first forwarding rule and is transmitted to this cache management equipment at this edge router.
Further, if this user's IP address is fixed, the regular Matching Elements of this first forwarding can comprise the IP address of this server, the destination slogan of this user's request message and the transport layer protocol number of this user's request message.
Illustratively, first forwards the IP address that regular coupling element comprises server, the destination slogan of user's request message and the transport layer protocol number of this user's request message, as follows: the IP address: the IP address of Resource Server, the destination slogan of user's request message: 80 (being the port numbers of http protocol), the transport layer protocol of user's request message: 6 (being Transmission Control Protocol), edge router receives user's request message, if the server ip address of this user's request message, it (is the IP address of message Resource Server that the destination slogan forwards rule consistent with transport layer protocol with first of above-mentioned setting, the destination slogan is 80, transport layer protocol is 6) time, this user's request message is sent to cache management equipment.
Perhaps, if this user's IP address changes, the regular Matching Elements of this first forwarding can comprise this URL.The embodiment of the present invention is not limited to this, and other parameters that can mate are also in protection scope of the present invention.
This buffer memory device 1101, the Internet protocol IP message sent for receiving cache management equipment 1100, and determine according to sign and this local resource sign of this server whether this buffer memory device is cached with this resource, when this buffer memory device determines that this buffer memory device is cached with this resource, this buffer memory device sends the data message that carries this resource to this user, the IP address that the IP address that the source address of this data message is this server, destination address are this user.
Wherein, this IP message comprises this URL, this user's IP address, the IP address of this server, sign and the local resource sign of this resource on this server of this server.The domain name that is designated described server of described server or the IP address of described server.The local resource of described resource on described server be designated URL in the content on "/" the right of the rightmost side.
For instance, when the URL comprised when the IP message is http://tv.sohu.com/20120605/n344791935.shtml, described server be designated tv.sohu.com, i.e. domain name, the local resource of described resource on this server is designated n344791935.shtml.
When described server be designated the IP address of described server the time, the IP message comprises that this URL, this user's IP address, the IP address of this server, sign and the local resource sign of this resource on this server of this server are appreciated that this IP message has carried the IP address of two these identical servers, or are understood to that this IP message is in order only to have carried the IP address of this server.
This IP message is actually and is used to the user to ask described user's request message requested resource, and this IP message is used to indicate IP address that this buffer memory device is from this server to this user's transmission source address, IP address that destination address is this user and carries the data message of this resource.Can make like this user can't see the address information of buffer memory device, avoid exposing buffer memory device, realized the information transparency transmission to the user of cache management equipment and buffer memory device, simultaneously, avoid the attack of assailant to buffer memory device, ensured the fail safe of communication.
This edge router 1102, the user's request message sent for receiving the user, and, after definite this user's request message and first forwards rule match, this user's request message is transmitted to cache management equipment 1100.
Further, this cache management equipment 1100, while also for the session when comprising this user's request message, being transmission control protocol TCP session, this cache management equipment forwards rule for this edge router generates second.
Wherein, in the present embodiment, the regular Matching Elements of this second forwarding comprises: the destination slogan of the source port number of the source address of user's request message, user's request message, the destination address of user's request message, user's request message, the transport layer protocol of user's request message.The destination address of user's request message just is to provide the IP address of the server of user's request message requested resource.The first one group of optional value that forwards regular coupling element is: server ip address, destination slogan and transport layer protocol, therefore, edge router can be selected to mate element more second and forward rule.
The system that adopts above-described embodiment to provide, manage each buffer memory device concentratedly by cache management equipment, and select suitable buffer memory device according to unified principle for each edge router, like this, not only guaranteed the consistency to the buffer memory device optimum principle, reduced the time delay of network resource transmission simultaneously and reduced the loss of system.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (16)

1. the method for request resource, is characterized in that, comprising:
Cache management equipment receives user's request message that edge router forwards, wherein, described user's request message comprises the uniform resource position mark URL of requested resource, the source address of described user's request message is the user's of the described user's request message of transmission Internet protocol IP address, the IP address that the destination address of described user's request message is server that described resource is provided, described user's request message is determined after described user's request message meets the first forwarding rule and is transmitted to described cache management equipment at described edge router;
Described cache management equipment is determined buffer memory device according to default strategy;
Described cache management equipment sends the IP message to described buffer memory device, and described IP message comprises sign and the local resource sign of described resource on described server of the IP address of described URL, described user's IP address, described server, described server.
2. method according to claim 1, is characterized in that, described method also comprises:
When the session that comprises described user's request message is transmission control protocol TCP session, described cache management equipment is that described edge router generates the second forwarding rule, described second forwards regular Matching Elements comprises: the destination slogan of the destination address of described user's request message, described user's request message, the transport layer protocol of described user's request message number, the source address of described user's request message and the source port number of described user's request message, and described second to forward forwarding purpose equipment corresponding to rule be described buffer memory device;
Described cache management equipment forwards rule by described second and sends to described edge router, and wherein, described second forwards the regular Matching Elements comprised forwards more than described first the Matching Elements that rule comprises.
3. method according to claim 1 and 2, is characterized in that,
Described first forwards regular Matching Elements comprises the destination slogan of the IP address of described server, described user's request message and the transport layer protocol number of described user's request message; Perhaps, the regular Matching Elements of described the first forwarding comprises described URL.
4. the method for request resource, is characterized in that, comprising:
Edge router receives user's request message that the user sends;
Described edge router is after definite described user's request message and first forwards rule match, described user's request message is transmitted to cache management equipment, wherein, described user's request message comprises the uniform resource position mark URL of described resource, the Internet protocol IP address that the source address of described user's request message is the user that sends described user's request message, the IP address that the destination address of described user's request message is server that described resource is provided.
5. method according to claim 4, is characterized in that, described method also comprises:
When the session that comprises 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 destination address that regular Matching Elements comprises described user's request message, the destination slogan of described user's request message, the transport layer protocol number of described user's request message, the source port number of the source address of described user's request message and described user's request message, the described second forwarding purpose equipment that forwards the rule correspondence is described cache management equipment, described second forwards the regular Matching Elements comprised forwards more than described first the Matching Elements that rule comprises,
Described edge router is carried out described first according to longest match principle and is forwarded rule and the second forwarding rule.
6. a method that sends resource to the user, is characterized in that, comprising:
Buffer memory device receives the Internet protocol IP message that cache management equipment sends, and described IP message comprises sign and the local resource sign of described resource on described server of the uniform resource position mark URL of described resource, described user's IP address, the IP address that the server of described resource is provided, described server;
Described buffer memory device determines according to sign and the described local resource sign of described server whether described buffer memory device is cached with described resource;
When described buffer memory device determines that according to the sign of described server and described local resource sign described buffer memory device is cached with described resource, described buffer memory device sends the data message that carries described resource to described user, the IP address that the source address of described data message is described server, the IP address that destination address is described user.
7. method according to claim 6, is characterized in that, also comprises:
When described buffer memory device determines that according to the sign of described server and described local resource sign described buffer memory device is not cached with described resource, described buffer memory device according to described URL to the described resource of described server request;
Described buffer memory device, from described server gets described resource, sends the data message that carries described resource, the IP address that the IP address that the source address of described data message is described server and destination address are described user to described user.
8. a cache management equipment, is characterized in that, comprising:
The first receiving element, the user's request message forwarded for receiving edge router, wherein, described user's request message comprises the uniform resource position mark URL of requested resource, the source address of described user's request message is the user's of the described user's request message of transmission Internet protocol IP address, the IP address that the destination address of described user's request message is server that described resource is provided, described user's request message is determined after described user's request message meets the first forwarding rule and is transmitted to described cache management equipment at described edge router;
The first determining unit, determine buffer memory device for the strategy according to default;
The solicited message transmitting element, for after described the first determining unit is determined described buffer memory device, send the IP message to described buffer memory device, described IP message comprises sign and the local resource sign of described resource on described server of the IP address of described URL, described user's IP address, described server, described server.
9. equipment according to claim 8, is characterized in that, also comprises:
Forward regular generation unit, for when the session that comprises described user's request message is transmission control protocol TCP session, described cache management equipment is that described edge router generates the second forwarding rule, described second forwards regular Matching Elements comprises: the destination address of described user's request message, the destination slogan of described user's request message, the transport layer protocol number of described user's request message, the source port number of the source address of described user's request message and described user's request message, the described second forwarding purpose equipment that forwards the rule correspondence is described buffer memory device,
The rule transmitting element, send to described edge router for the second forwarding rule that the regular generation unit of described forwarding is generated, and wherein, described second forwards the regular Matching Elements comprised forwards more than described first the Matching Elements that rule comprises.
10. equipment according to claim 8 or claim 9, is characterized in that, described first forwards regular Matching Elements comprises the destination slogan of the IP address of described server, described user's request message and the transport layer protocol number of described user's request message; Perhaps, the regular Matching Elements of described the first forwarding comprises described URL.
11. an edge router, is characterized in that, comprising:
The second receiving element, the user's request message sent for receiving the user;
The second transmitting element, after at definite described user's request message and first, forwarding rule match, described user's request message that described the second receiving element is received is transmitted to cache management equipment, wherein, described user's request message comprises the uniform resource position mark URL of described resource, the Internet protocol IP address that the source address of described user's request message is the user that sends described user's request message, the IP address that the destination address of described user's request message is server that described resource is provided.
12. equipment according to claim 11, is characterized in that, also comprises:
The rule receiving element, for when the session that comprises 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 destination address that regular Matching Elements comprises described user's request message, the destination slogan of described user's request message, the transport layer protocol number of described user's request message, the source port number of the source address of described user's request message and described user's request message, the described second forwarding purpose equipment that forwards the rule correspondence is described cache management equipment, described second forwards the regular Matching Elements comprised forwards more than described first the Matching Elements that rule comprises,
The rule performance element, forward rule and the second forwarding rule for carry out described first according to longest match principle.
13. a buffer memory device, is characterized in that, comprising:
The 3rd receiving element, the Internet protocol IP message sent for receiving cache management equipment, described IP message comprises sign and the local resource sign of described resource on described server of the uniform resource position mark URL of described resource, described user's IP address, the IP address that the server of described resource is provided, described server;
The 3rd determining unit, determine for sign and the described local resource sign of the described server of the described IP message that receives according to described the 3rd receiving element whether described buffer memory device is cached with described resource;
The 3rd transmitting element, for when described the 3rd determining unit determines that described buffer memory device is cached with described resource, send the data message that carries described resource, the IP address that the source address of described data message is described server, the IP address that destination address is described user to described user.
14. equipment according to claim 13, is characterized in that, also comprises:
The 3rd request unit, for when described the 3rd determining unit determines that described buffer memory device is not cached with described resource, according to described URL to the described resource of described server request;
The 3rd data message transmitting element, for after getting described resource according to described the 3rd request unit, send the data message that carries described resource, the IP address that the source address of described data message is described server, the IP address that destination address is described user to described user.
15. the system for request resource, is characterized in that, comprising: cache management equipment, buffer memory device and edge router,
Described cache management equipment, the user's request message forwarded for receiving edge router, wherein, described user's request message comprises the uniform resource position mark URL of requested resource, the source address of described user's request message is the user's of the described user's request message of transmission Internet protocol IP address, the IP address that the destination address of described user's request message is server that described resource is provided, described user's request message is determined after described user's request message meets the first forwarding rule and is transmitted to described cache management equipment at described edge router, determine buffer memory device according to default strategy, and send the IP message to described buffer memory device, described IP message comprises described URL, described user's IP address, the IP address of described server, the sign of described server and the described resource local resource sign on described server,
Described buffer memory device, the Internet protocol IP message sent for receiving cache management equipment, described IP message comprises the uniform resource position mark URL of described resource, described user's IP address, the IP address of the server of described resource is provided, the sign of described server and the described resource local resource sign on described server, determine according to sign and the described local resource sign of described server whether described buffer memory device is cached with described resource, when described buffer memory device determines that described buffer memory device is cached with described resource, described buffer memory device sends the data message that carries described resource to described user, the IP address that the source address of described data message is described server, the IP address that destination address is described user,
Described edge router, the user's request message sent for receiving the user, and, after definite described user's request message and first forwards rule match, described user's request message is transmitted to cache management equipment.
16. system according to claim 15, is characterized in that,
When described cache management equipment also is transmission control protocol TCP session for the session when comprising described user's request message, described cache management equipment is that described edge router generates the second forwarding rule, described second forwards regular Matching Elements comprises: the destination address of described user's request message, the destination slogan of described user's request message, the transport layer protocol number of described user's request message, the source port number of the source address of described user's request message and described user's request message, the described second forwarding purpose equipment that forwards the rule correspondence is described buffer memory device, and described the second forwarding rule is sent to described edge router, wherein, described second forwards the regular Matching Elements comprised forwards more than described first the Matching Elements that rule comprises.
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 true CN103475626A (en) 2013-12-25
CN103475626B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888228A (en) * 2015-12-15 2017-06-23 中国电信股份有限公司 Method, conversation controller and the system accelerated for content
CN107370690A (en) * 2016-05-13 2017-11-21 中国移动通信有限公司研究院 A kind of transmission method of business tine, terminal and network side equipment
CN108023900A (en) * 2016-10-31 2018-05-11 中国电信股份有限公司 The implementation method and system of transparent caching
CN111835642A (en) * 2019-04-19 2020-10-27 华为技术有限公司 Service processing method and network equipment

Families Citing this family (1)

* 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

Citations (11)

* 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
CN101247367A (en) * 2008-04-08 2008-08-20 中国电信股份有限公司 Content providing method and system based on content distribution network and peer-to-peer 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
CN101820386A (en) * 2009-01-30 2010-09-01 帕洛阿尔托研究中心公司 Be used for promoting network to transmit the method and system of grouping with the content being the center
CN101984637A (en) * 2010-11-02 2011-03-09 中兴通讯股份有限公司 Content distribution implementation method and system
WO2011056673A1 (en) * 2009-10-27 2011-05-12 Qualcomm Incorporated Systems and methods for measuring and reducing latency of radio link flows
CN102291447A (en) * 2011-08-05 2011-12-21 中国电信股份有限公司 Content distribution network load scheduling method and system

Family Cites Families (3)

* 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
CN102130778A (en) * 2010-10-22 2011-07-20 华为技术有限公司 Method and system for protecting IPTV (Internet Protocol Television) multicast service

Patent Citations (11)

* 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
CN101247367A (en) * 2008-04-08 2008-08-20 中国电信股份有限公司 Content providing method and system based on content distribution network and peer-to-peer network
CN101431532A (en) * 2008-12-15 2009-05-13 中国电信股份有限公司 Content routing method, load balancing equipment and resource management equipment
CN101820386A (en) * 2009-01-30 2010-09-01 帕洛阿尔托研究中心公司 Be used for promoting network to transmit the method and system of grouping with the content being the center
WO2011056673A1 (en) * 2009-10-27 2011-05-12 Qualcomm Incorporated Systems and methods for measuring and reducing latency of radio link flows
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨明川: "内容分发网络关键技术研究", 《电信科学》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888228A (en) * 2015-12-15 2017-06-23 中国电信股份有限公司 Method, conversation controller and the system accelerated for content
CN107370690A (en) * 2016-05-13 2017-11-21 中国移动通信有限公司研究院 A kind of transmission method of business tine, terminal and network side equipment
CN108023900A (en) * 2016-10-31 2018-05-11 中国电信股份有限公司 The implementation method and system of transparent caching
CN108023900B (en) * 2016-10-31 2020-11-27 中国电信股份有限公司 Method and system for realizing transparent cache
CN111835642A (en) * 2019-04-19 2020-10-27 华为技术有限公司 Service processing method and network equipment
CN111835642B (en) * 2019-04-19 2022-07-29 华为技术有限公司 Service processing method and network equipment
US11502953B2 (en) 2019-04-19 2022-11-15 Huawei Technologies Co., Ltd. Service processing method and network device

Also Published As

Publication number Publication date
WO2013182030A1 (en) 2013-12-12
CN103475626B (en) 2017-03-08

Similar Documents

Publication Publication Date Title
US20130332619A1 (en) Method of Seamless Integration and Independent Evolution of Information-Centric Networking via Software Defined Networking
JP5847185B2 (en) Content sharing method and apparatus using group change information in content-centric network environment
KR101528210B1 (en) Software downloading method and device
US9621412B2 (en) Method for guaranteeing service continuity in a telecommunication network and system thereof
CN103475626A (en) Method, equipment and system used for resource requesting
CN102625287A (en) Method for downloading mobile phone application software
US20150127837A1 (en) Relay apparatus and data transfer method
CN104639497A (en) Remote access configuration method, remote access method, remote access configuration device, remote access device and remote access system
KR20150099944A (en) Control method for transmitting distributed file based on P2Peer and P2P communication control apparatus therefor
US20150043592A1 (en) Terminal apparatus and method of controlling terminal apparatus
JP5526015B2 (en) Gateway system, gateway device, and load balancing method
KR20140125224A (en) Method and node apparatus for collecting information in contents network based on information centric networking
JP4815547B2 (en) Data synchronization system, data synchronization method, and synchronization management server
CN111615812B (en) Configuration method intended to be implemented in a network using dynamic routing protocols
CN104010046A (en) Server selecting method and system, recording server and measurement servers
CN104717312A (en) Method and device for determining network resource access interfaces
EP3089422B1 (en) Content distribution method, apparatus and system
JP5517190B2 (en) Communication system, mapping information notification apparatus, mapping information notification method, and program
CN105681266A (en) Communication cluster method and device for MMTel (MultiMedia Telephony)
CN103138961B (en) server control method, controlled server and central control server
CN105721314A (en) Method and equipment for sending data packet
KR102141444B1 (en) Apparatus and method for delivering and receiving data in mobile content network
JP5894981B2 (en) Accessing a network of nodes distributed across a communication architecture using a topology server with multiple criteria selection
JP2007233700A (en) Cache system, load monitoring server, cache management server, and cache server
WO2013183231A1 (en) Communication system, communication control method, communication relay system, and communication relay control method

Legal Events

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