WO2016023384A1 - 一种缓存内容命中方法和通信系统 - Google Patents

一种缓存内容命中方法和通信系统 Download PDF

Info

Publication number
WO2016023384A1
WO2016023384A1 PCT/CN2015/076774 CN2015076774W WO2016023384A1 WO 2016023384 A1 WO2016023384 A1 WO 2016023384A1 CN 2015076774 W CN2015076774 W CN 2015076774W WO 2016023384 A1 WO2016023384 A1 WO 2016023384A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
identifier
cache device
cache
edge
Prior art date
Application number
PCT/CN2015/076774
Other languages
English (en)
French (fr)
Inventor
张少林
施雄俊
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP15823485.6A priority Critical patent/EP3016356B1/en
Publication of WO2016023384A1 publication Critical patent/WO2016023384A1/zh
Priority to US15/430,055 priority patent/US10306007B2/en

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
    • H04L67/5681Pre-fetching or pre-delivering data based on network characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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

Definitions

  • the present invention relates to the field of mobile communications, and in particular, to a cache content hit method and a communication system.
  • a charging monitoring device is disposed between the Internet and the wireless access network, and the content to be accessed by the user is sent from the Internet to the charging monitoring device, and then sent by the charging monitoring device to the wireless access network, and then sent. To the user. In this way, it can be ensured that the charging monitoring device can monitor the Internet content accessed by the user to perform charging according to the content.
  • an Internet cache device is generally provided between the billing monitoring device and the Internet for buffering content that the user repeatedly accesses to the Internet.
  • the Internet cache device stores the Internet content that the user wants to access
  • the Internet cache device sends the content to the charging monitoring device, and then the charging monitoring device transmits the content to the wireless access network. In this way, there is no need to repeat the request to the Internet for the same content to shorten the content access delay.
  • a general solution is to deploy a radio access network buffer on the base station side to cache the duplicate content accessed by the user. If the content accessed by the user is stored in the cache of the radio access network, the radio access network directly feeds back the partial content to the user; if the radio access network cache is not stored, the content is performed to the Internet cache device. request.
  • the charging monitoring device incorrectly charges the user, which affects the operator's traffic revenue. And avoided the legal monitoring of this part of the content.
  • the embodiment of the invention provides a cache content hitting method and a communication system, which can ensure that the charging monitoring device monitors the content accessed by the user while saving the backhaul transmission bandwidth between the radio access network and the charging monitoring device. And billing.
  • a first aspect of the embodiments of the present invention provides a cache content hitting method, including:
  • the edge cache device receives and stores a content request message from the access network device, where the content request message carries a content identifier;
  • the edge cache device searches for content corresponding to the content identifier from the locally cached content
  • the edge cache device When it is determined that the edge cache device stores content corresponding to the content identifier, transmitting content corresponding to the content identifier to the access network device; the edge cache device adds content in the content request message After hitting the identifier, forwarding it to the core cache device;
  • the core cache device sends a response message carrying the content corresponding to the content identifier to the cache control device via the charging monitoring device, where the response message carries the content hit identifier;
  • the cache control device discards the content in the response message according to the content hit identifier.
  • the determining that the edge cache device stores the content corresponding to the content identifier includes:
  • the edge cache device searches for content corresponding to the content identifier from the locally cached content according to the content identifier;
  • the edge cache device stores the content identifier, it is determined that the edge cache device stores content corresponding to the content identifier.
  • the determining that the edge cache device stores the content corresponding to the content identifier includes:
  • the edge cache device forwards the content request message to the core cache device
  • the core cache device acquires content corresponding to the content identifier according to the content identifier
  • the core cache device calculates a hash identifier of the content, and sends a response message including the hash identifier to the edge cache device via the charging monitoring device and the cache control device in sequence;
  • the edge cache device searches for content corresponding to the hash identifier from the locally cached content according to the hash identifier.
  • edge cache device When the edge cache device stores the hash identifier, it is determined that the edge cache device stores content corresponding to the content identifier.
  • the method further includes:
  • the edge cache device When the edge cache device does not store the content corresponding to the content identifier, the edge cache device sends the content to the access network device after acquiring the content from the core cache device.
  • the edge cache device does not store content corresponding to the content identifier.
  • the sending, by the edge cache device, the content to the access network device after acquiring the content from the core cache device includes:
  • the edge cache device When the edge cache device does not store the content corresponding to the content identifier, the edge cache device adds a content miss identifier to the content request message, and then forwards the content to the core cache device;
  • the core cache device sends a response message carrying the content corresponding to the content identifier to the cache control device via the charging monitoring device, where the response message carries the content miss identifier;
  • the cache control device sends the content to the access network device via the edge cache device according to the content miss identifier.
  • the edge cache device does not store content corresponding to the content identifier.
  • the content response to the access network device includes:
  • the edge cache device When the edge cache device does not store content corresponding to the content identifier, the edge cache device forwards the content request message to the core cache device;
  • the core cache device sends a response message carrying the content corresponding to the content identifier to the cache control device via the charging monitoring device;
  • the cache control device sends the response message to the access network device via the edge cache device.
  • a second aspect of the embodiments of the present invention provides a communication system, including:
  • An access network device an edge buffer device, a cache control device, a charging monitoring device, and a core cache device;
  • the edge cache device is configured to receive and store a content request message from an access network device, where the content request message carries a content identifier;
  • the edge cache device is further configured to search for content corresponding to the content identifier from the locally cached content;
  • the edge cache device is further configured to: when determining that the edge cache device stores content corresponding to the content identifier, send content corresponding to the content identifier to the access network device, and request the content Adding a content hit identifier to the message and forwarding it to the core cache device;
  • the core cache device is configured to send a response message carrying the content corresponding to the content identifier to the cache control device, where the response message carries the content hit identifier;
  • the cache control device is configured to discard content in the response message according to the content hit identifier.
  • the edge cache device is specifically configured to search for the content identifier from the locally cached content according to the content identifier. Corresponding content, when the edge cache device stores the content identifier, determining that the edge cache device stores content corresponding to the content identifier.
  • the edge cache device is further configured to forward the content request message to the core cache device.
  • the core cache device is further configured to acquire content corresponding to the content identifier according to the content identifier;
  • the core cache device is further configured to calculate a hash identifier of the content, and send a response message including the hash identifier to the edge cache via the charging monitoring device and the cache control device in sequence.
  • the edge cache device is further configured to search the hash identifier from the locally cached content according to the hash identifier;
  • the edge cache device is further configured to: when the edge cache device stores the hash identifier, determine that the edge cache device stores content corresponding to the content identifier.
  • the edge cache device is further configured to: when the edge cache device does not store content corresponding to the content identifier And sending the content to the access network device after acquiring the content from the core cache device.
  • the edge cache device is specifically configured to: when the edge cache device is not stored When the content identifier corresponds to the content, the content miss message is added to the content request message and then forwarded to the core cache device;
  • the core cache device is further configured to send a response message carrying the content corresponding to the content identifier to the cache control device by using the charging monitoring device, where the response message carries the content miss identifier;
  • the cache control device is further configured to send the content to the access network device by using the content cache identifier according to the edge cache device.
  • the edge cache device is specifically configured to: when the edge cache device is not stored When the content identifier corresponds to the content, the content request message is forwarded to the core cache device;
  • the core cache device is specifically configured to send a response message carrying content corresponding to the content identifier to the cache control device via the charging monitoring device;
  • the cache control device is specifically configured to send the response message to the access network device via the edge cache device.
  • the edge cache device when the edge cache device locally stores content corresponding to the content identifier, the content corresponding to the content identifier is sent to the access network device, and content is also added to the content request message.
  • the core cache device may send the response message carrying the content corresponding to the content identifier to the cache control device via the billing monitoring device, so that the billing monitoring device can And the content of the response message is discarded according to the content hit identifier carried in the response message, so that the content of the response message is discarded according to the content hit identifier carried in the response message, and the repeated transmission is avoided.
  • the content can be discarded without the need for the charging monitoring device, but the cache control device is added to the communication system to perform the action, which can greatly reduce the modification of the existing device and reduce the transformation cost.
  • FIG. 1 is a flow chart of an embodiment of a cache content hit method of the present invention
  • FIG. 2 is a flow chart of another embodiment of a cache content hit method of the present invention.
  • FIG. 3 is a schematic structural diagram of an embodiment of a communication system according to the present invention.
  • FIG. 4 is a networking diagram of a communication system of the present invention.
  • the embodiment of the invention provides a cache content hitting method and a communication system, which can ensure that the charging monitoring device monitors the content accessed by the user while saving the backhaul transmission bandwidth between the radio access network and the charging monitoring device. And billing.
  • FIG. 4 is a structural diagram of a communication system according to the present invention.
  • the communication system 400 includes an access network device 401, an edge buffer device 402, a cache control device 403, a billing listening device 404, and a core cache device 405.
  • the access network device 401 may be a base station, a radio network controller (RNC), or other access network device, etc., for forwarding a request message from the user terminal to the backbone network.
  • RNC radio network controller
  • the edge caching device 402 can be a RAN Cache Edge, and the core caching device 405 can be a Core Cache, both of which are caching devices for caching content Internet content.
  • the cache control device 403 may be a routing and forwarding device for deciding whether to forward the message of the charging monitoring device 404 to the edge buffer device 402.
  • the charging monitoring device 404 may be a PCEF device and a GGSN device, or a PGW device, an SGW device, or the like, for charging and lawful interception of content requested by the user terminal.
  • the content request message from the user terminal is first sent to the access network device, and is forwarded by the access network device to the edge cache device. If the content requested by the content request message is stored in the edge cache device, the edge cache device directly responds the content to the access network device, and then forwards the content to the user terminal by the access network device. If the content requested by the content request message is not stored in the edge cache device, the edge cache device forwards the content request message to the core cache device.
  • the content is sent to the charging monitoring device; if not stored, the core cache device sends a content request message to the Internet, and receives a content response from the Internet. And then send the content to the billing device.
  • the billing device forwards the content to the edge cache device.
  • the edge cache device stores the content and forwards it to the access network device, and forwards it to the user terminal by the access network device.
  • a cache content hit method in an embodiment of the present invention includes:
  • the edge cache device receives and stores a content request message from the access network device.
  • the access network device may be a base station (for example, a NodeB), a radio network controller (RNC), or another access network device, where the base station may be a 2G wireless communication system, a 3G wireless communication system,
  • the base station in the LTE wireless communication system or other communication system is not limited herein.
  • the access network device receives a content request message, wherein the content request message carries a content identifier.
  • the content request message may be an Http request, such as a URL (Uniform Resource Locator).
  • the content request message may be of other types in actual use, and is not limited herein.
  • the edge cache device searches for content corresponding to the content identifier from the locally cached content.
  • the edge cache device does not directly search whether the content is stored in the locally cached content, but searches for the content corresponding to the content identifier by other means. For example, the edge cache device stores the content identifier in the partial content request message received in the past and the content corresponding to the content identifier, and the content identifier and the corresponding content are associated in the locally cached content. The edge cache device searches for the content identifier from the locally cached content according to the content identifier in the content request message, that is, by searching the edge cache device, each time the edge cache device receives the content request message from the access network device. Whether the content identifier is stored to determine whether the content is stored.
  • the edge cache device may also search for content corresponding to the content identifier from the locally cached content by using other methods, which is not limited herein.
  • the edge cache device When it is determined that the edge cache device stores content corresponding to the content identifier, the edge cache device sends content corresponding to the content identifier to the access network device, and in the content request message. Adding a content hit identifier and forwarding it to the core cache device;
  • the edge cache device searches for the content corresponding to the content identifier according to the content identifier, when the edge cache device stores the content identifier, determining that the edge cache device stores the content corresponding to the content identifier. .
  • the edge cache device stores the content according to other corresponding methods.
  • the edge cache device sends the content corresponding to the content identifier to the access network device, so that the access network device can feed back the related content to the user terminal.
  • the edge cache device transmits bandwidth and greatly reduces the delay for users to access content.
  • the edge cache device is deployed on the base station side, which can further shorten the delay for the user to access the content.
  • the edge cache device also adds a content hit identifier in the content message request to indicate that the edge cache device has hit the content requested by the content request message and sends the content to the access network device.
  • a content hit identifier There are various methods for adding a content hit identifier.
  • the TOS field in the IP packet header of the content request message may be used as the identifier.
  • the edge cache device sets a bit in the TOS field to 1 as the content hit identifier.
  • other methods may be used to add content hit identifiers, which are not limited herein.
  • the edge cache device After adding the content hit identifier to the content request message, the edge cache device forwards the content request message to the core cache device.
  • the core cache device sends a response message carrying the content corresponding to the content identifier to the cache control device via the charging monitoring device.
  • the core cache device After receiving the content request message, the core cache device first searches for the content identifier from the locally cached content to confirm whether the content corresponding to the content identifier is stored in the core cache device.
  • the core cache device sends a response message carrying the content corresponding to the content identifier to the cache control device, where the response message further carries the content hit identifier, and the response message is sent to the cache control.
  • the device will pass through the billing monitoring device.
  • the core cache device forwards the content request message to the Internet to request feedback to the Internet for content corresponding to the content identifier in the content request message.
  • the core cache device stores the content identifier in the content request message and the content corresponding to the content identifier, and further transmits a response message carrying the content corresponding to the content identifier.
  • the monitoring device sends the content to the cache control device, wherein the content message also carries the content hit identifier.
  • the charging monitoring device monitors and charges the content corresponding to the content identifier carried in the response message.
  • the cache control device discards content in the response message according to the content hit identifier.
  • the cache control device When the cache control device carries the content hit identifier in the received response message, it indicates that the edge cache device has sent the content corresponding to the content identifier in the content request message to the access network device. Therefore, in order to prevent the access network device from repeatedly receiving the content
  • the content in the request message identifies the content corresponding to the content, and the cache control device discards the content in the response message according to the content hit identifier.
  • the edge cache device when the edge cache device locally stores the content corresponding to the content identifier Sending content corresponding to the content identifier to the access network device, and adding a content hit identifier to the content request message, and forwarding the content to the core cache device; thus, the core cache device may carry and The response message of the content corresponding to the content identifier is sent to the cache control device via the charging monitoring device, so that the charging monitoring device can monitor and charge the content corresponding to the content identifier; and the edge cache device has already related the content.
  • the cache control device can discard the content of the response message according to the content hit identifier carried in the response message, avoiding repeated transmission to the user, and thus can discard the content without the charging monitoring device, but in the communication system
  • the modification of the existing device can be greatly reduced, and the modification cost can be reduced.
  • the cache content hitting method in the present invention preferably further includes:
  • the edge cache device When the edge cache device does not store the content corresponding to the content identifier, the edge cache device sends the content to the access network device after acquiring the content from the core cache device.
  • the edge cache device when the edge cache device does not store the content corresponding to the content identifier, the edge cache device adds the content miss identifier to the content request message and forwards the identifier to the core cache device.
  • the edge cache device There are various methods for adding a content miss identifier.
  • the TOS field in the IP packet header of the content request message may be used as the identifier.
  • the edge cache device sets a bit of the TOS field to 0 as the content miss identifier.
  • other methods may be used to add the content miss identifier, which is not limited herein.
  • the core buffer device sends a response message carrying the content corresponding to the content identifier to the cache control device via the charging monitoring device, so that the charging monitoring device can charge and monitor the content.
  • the content message also carries the content miss identifier.
  • the cache control device sends the content corresponding to the content identifier in the response message to the edge cache device according to the content miss identifier carried in the response message.
  • the edge cache device stores the content and the content identifier of the content, and also sends the content to the access network device.
  • the edge cache device does not store the content corresponding to the content identifier
  • the edge cache device sends the content to the access network after acquiring the content from the core cache device.
  • One specific method of the device is not limited.
  • the edge cache device may not directly add the content miss identifier to the content request message, but directly forwards the content to the core cache device.
  • the core cache device transmits a response message carrying the content corresponding to the content identifier to the cache control device via the charging monitoring device.
  • the cache control device is not in the response message
  • the response message may be sent to the access network device via the edge cache device.
  • the content corresponding to the content identifier in the two content request messages may be the same, but the two content identifiers are different.
  • the content identifier is an Http request
  • the Http request includes a static URL (Uniform Resource Locator) and a dynamic URL.
  • the content identifier is a dynamic URL
  • the dynamic URL stored in the edge cache device may not be the same as the dynamic URL in the content request message. Even two static URLs that correspond to the same content may be different.
  • a cache content hit method in another embodiment of the present invention includes:
  • the edge cache device receives and stores a content request message from the access network device.
  • step 101 in the embodiment shown in FIG. 1.
  • the edge cache device searches for content corresponding to the content identifier from the locally cached content according to the content identifier.
  • step 102 in the embodiment shown in FIG.
  • the edge cache device forwards the content request message to the core cache device.
  • the edge cache device does not store the content identifier
  • the edge cache device forwards the content request message to the core cache device.
  • the core cache device acquires content corresponding to the content identifier according to the content identifier.
  • the core cache device After receiving the content request message, the core cache device first searches for the content identifier from the local cache content to confirm whether the content corresponding to the content identifier is stored in the core cache device; if yes, the content is acquired. If not, the core cache device forwards the content request message to the Internet to obtain content corresponding to the content identifier from the Internet.
  • the core cache device calculates a hash identifier of the content, and sends a response message including the hash identifier to the buffer control device and the cache control device.
  • Edge buffer device
  • the core cache device After the core cache device calculates the hash identifier of the content, the hash identifier is added to the response message, and the response message is sent to the edge cache device.
  • the data sent by the core buffer device to the edge buffer device passes through the charging monitoring device and the cache control device, and the response message is sent to the edge buffer device through the charging monitoring device and the cache control device in sequence.
  • the edge cache device searches for the hash identifier from the locally cached content according to the hash identifier.
  • the edge cache loading local cache content stores a hash identifier that is received at least partially from the core cache device and content corresponding to the hash identifier.
  • the edge cache device receives the hash identifier, the hash identifier is searched from the local cache content to confirm whether the content corresponding to the content identifier in the content request message is stored in the local cache content.
  • edge cache device stores the hash identifier, determine that the edge cache device stores content corresponding to the content identifier.
  • the edge cache device When the edge cache device stores the content corresponding to the content identifier, the edge cache device sends the content corresponding to the content identifier to the access network device, and adds the content request message. The content hits the identifier and forwards it to the core cache device;
  • step 103 in the embodiment shown in FIG. 1.
  • the core cache device sends a response message carrying the content corresponding to the content identifier to the cache control device via the charging monitoring device.
  • step 104 in the embodiment shown in FIG.
  • the cache control device discards content in the response message according to the content hit identifier.
  • step 105 in the embodiment shown in FIG. 1.
  • the edge cache device when the edge cache device does not store the content identifier in the content request message, the edge cache device sends the content request message to the core cache device to calculate the content corresponding to the content identifier in the content request message.
  • the hash identifier of the content since the hash identifier can uniquely identify the content, that is, the same content only corresponds to one hash identifier, and the same content can correspond to at least two content identifiers, thereby avoiding the content. Consistent but the content identifier stored in the edge cache device does not coincide with the content identifier in the content request message, and the edge cache device requests the core cache device to feed back the duplicate content.
  • the edge cache device accepts and stores the content request message from the access network device.
  • the content corresponding to the content identifier is searched from the local cache content according to the content identifier, and when the content identifier is not found, the content request message is forwarded to the core cache device, so that the core cache device calculates the content.
  • the hash is identified and sent to the edge caching device, which then looks up the content from the locally cached content based on the hash identifier of the content.
  • the edge cache device may not first search for the content from the locally cached content according to the content identifier, but directly forward the content request message to the core cache.
  • the device after the core cache device calculates the hash identifier of the content and sends the hash identifier to the edge cache device, the edge cache device searches for the content from the locally cached content according to the hash identifier of the content.
  • the edge cache device receives the hash identifier, the hash identifier is stored, and the hash identifier is associated with the content corresponding to the hash identifier, so that the next edge cache device can find the hash identifier according to the hash identifier.
  • the content corresponding to the hash identifier is not first search for the content from the locally cached content according to the content identifier, but directly forward the content request message to the core cache.
  • the edge cache device after the core cache device calculates the hash identifier of the content and sends the hash identifier to the edge cache device, the edge cache
  • the access network device When the user terminal needs to access related content of the Internet, the access network device sends a content request message to the edge cache device, where the content request message carries the content identifier.
  • the edge cache device receives and stores a content request message from the access network device, and searches for content corresponding to the content identifier from the locally cached content according to the content identifier.
  • the edge cache device when the edge cache device stores the content identifier, it is determined that the edge cache device stores content corresponding to the content identifier. If the edge cache device does not find the content identifier in the locally cached content, the edge cache device forwards the content request message to the core cache device. The core cache device acquires content corresponding to the content identifier according to the content identifier in the content request message.
  • the core cache device after receiving the content request message, the core cache device first searches for the content identifier from the local cache content to confirm whether the content corresponding to the content identifier is stored in the core cache device. If yes, the core cache device sends a response message carrying the content corresponding to the content identifier to the cache control device, where the response message further carries the content hit identifier, and the response message is sent to the cache control. The device will pass through the billing monitoring device.
  • the core cache device forwards the content request message to the Internet to request feedback to the Internet for content corresponding to the content identifier in the content request message. After the core cache device receives the feedback from the Internet, the core cache device stores the content identifier in the content request message and the content corresponding to the content identifier.
  • the core cache device After the core cache device calculates the hash identifier of the content, the hash identifier is added to the response message, and the response message is sent to the edge cache device.
  • the data sent by the core buffer device to the edge buffer device passes through the charging monitoring device and the cache control device, and the response message is sent to the edge buffer device through the charging monitoring device and the cache control device in sequence.
  • the edge cache loading local cache content stores a hash identifier that is received at least partially from the core cache device and content corresponding to the hash identifier.
  • the edge cache device receives the hash identifier, the hash identifier is searched from the local cache content to confirm whether the content corresponding to the content identifier in the content request message is stored in the local cache content.
  • the edge cache device stores the hash identifier, it is determined that the edge cache device stores content corresponding to the content identifier.
  • the edge cache device After determining that the edge cache device stores the content corresponding to the content identifier, the edge cache device sends the content corresponding to the content identifier to the access network device. In addition, the edge cache device further sets a bit of the TOS field in the IP packet header of the content request message to be 1 as a content hit identifier. The edge cache device forwards the content request message carrying the content hit identifier to the core cache device.
  • the core cache device sends a response message carrying the content corresponding to the content identifier to the cache control device via the charging monitoring device, wherein the response message further carries the content hit identifier.
  • the charging monitoring device monitors and charges the content corresponding to the content identifier carried in the response message.
  • the cache control device When the cache control device carries the content hit identifier in the received response message, it indicates that the edge cache device has sent the content corresponding to the content identifier in the content request message to the access network device. Therefore, in order to prevent the access network device from repeatedly receiving the content
  • the content in the request message identifies the content corresponding to the content, and the cache control device discards the content in the response message according to the content hit identifier.
  • the edge cache device If the edge cache device does not store the content identifier in the content request message or the hash identifier of the content corresponding to the content identifier, it is determined that the content corresponding to the content identifier is not stored in the edge cache device.
  • the edge cache device sets a bit of the TOS field in the IP packet header of the content request message to 0 as a content miss identifier.
  • the edge cache device transmits the content request message to the core cache device.
  • the core buffer device sends a response message carrying the content corresponding to the content identifier to the cache control device via the charging monitoring device, so that the charging monitoring device can charge and monitor the content.
  • the content message also carries the content miss identifier.
  • the cache control device sends the content corresponding to the content identifier in the response message to the edge cache device according to the content miss identifier carried in the response message.
  • the edge buffer device is internally The content and the content identifier storage of the content are also sent to the access network device.
  • the communication system 300 in the embodiment of the present invention includes:
  • the access network device 301 The access network device 301, the edge buffer device 302, the cache control device 303, the charging monitoring device 304, and the core cache device 305.
  • the edge cache device 302 is configured to receive and store a content request message from the access network device 301, where the content request message carries a content identifier.
  • the edge cache device 302 is further configured to search for content corresponding to the content identifier from the locally cached content.
  • the edge cache device 302 is further configured to: when determining that the edge cache device 302 stores content corresponding to the content identifier, send content corresponding to the content identifier to the access network device 301, and Adding a content hit identifier to the content request message and forwarding it to the core cache device 305;
  • the core cache device 305 is configured to send a response message carrying the content corresponding to the content identifier to the cache control device 303 via the charging monitoring device 304, where the response message carries the content hit identifier ;
  • the cache control device 303 is configured to discard the content in the response message according to the content hit identifier.
  • the edge cache device when the edge cache device locally stores content corresponding to the content identifier, the content corresponding to the content identifier is sent to the access network device, and content is also added to the content request message.
  • the core cache device may send the response message carrying the content corresponding to the content identifier to the cache control device via the billing monitoring device, so that the billing monitoring device can And the content of the response message is discarded according to the content hit identifier carried in the response message, so that the content of the response message is discarded according to the content hit identifier carried in the response message, and the repeated transmission is avoided.
  • the content can be discarded without the need for the charging monitoring device, but the cache control device is added to the communication system to perform the action, which can greatly reduce the modification of the existing device and reduce the transformation cost.
  • the edge cache device is further configured to: when the edge cache device does not store the content corresponding to the content identifier, send the content to the host after acquiring the content from the core cache device The access network device.
  • the edge cache device is specifically configured to: when the edge cache device does not store the content corresponding to the content identifier, add a content miss identifier to the content request message, and then Send to the core cache device.
  • the core cache device is further configured to send a response message carrying the content corresponding to the content identifier to the cache control device by using the charging monitoring device, where the response message carries the content miss identifier.
  • the cache control device is further configured to send the content to the access network device by using the content cache identifier according to the edge cache device.
  • the edge cache device may not add the content miss identifier to the content request message, but directly forwards it to the core cache device.
  • the core cache device transmits a response message carrying the content corresponding to the content identifier to the cache control device via the charging monitoring device.
  • the cache control device may send the response message to the access network device via the edge cache device.
  • the edge cache device is specifically configured to search for content corresponding to the content identifier from the locally cached content according to the content identifier, and when the edge cache device stores the content identifier, determine the location The edge cache device stores content corresponding to the content identifier.
  • the content corresponding to the content identifier in the two content request messages may be the same, but the two content identifiers are different.
  • the content identifier is an Http request
  • the Http request includes a static URL (Uniform Resource Locator) and a dynamic URL.
  • the content identifier is a dynamic URL
  • the dynamic URL stored in the edge cache device may not be the same as the dynamic URL in the content request message.
  • two static URLs that correspond to the same content may be different. In this way, it is possible for the edge cache device to request feedback to the core cache device for duplicate content, which in turn causes the edge cache device to repeatedly store the same content, wasting cache resources.
  • the edge cache device is further configured to: when the edge cache device does not store the content identifier, forward the content request message to the core cache device.
  • the core cache device is further configured to obtain a hash identifier corresponding to the content identifier according to the content identifier, calculate a hash identifier of the content, and sequentially pass the response message including the hash identifier
  • the fee monitoring device and the cache control device are sent to the edge buffer device.
  • the edge cache device is further configured to search the hash identifier from the local cache content according to the hash identifier, and when the edge cache device stores the hash identifier, determine that the edge cache device stores The content identifies a corresponding content.
  • the hash identifier can uniquely identify the content, that is, the same content only corresponds to one hash identifier, and the same content can correspond to at least two content identifiers, thereby avoiding the content being consistent but
  • the case where the content identifier stored in the edge cache device does not match the content identifier in the content request message causes the edge cache device to request the core cache device to feed back the duplicate content.
  • the edge cache device is specifically configured to: when receiving and storing the content request message from the access network device, first searching for content corresponding to the content identifier from the locally cached content according to the content identifier, where the content is not found.
  • the content request message is forwarded to the core cache device, so that the core cache device calculates the hash identifier of the content and sends the hash identifier to the edge cache device, and the edge cache device further caches the content locally according to the hash identifier of the content. Find the content in .
  • the edge cache device may not first search for the content from the locally cached content according to the content identifier, but directly forward the content request message to the core cache.
  • the device after the core cache device calculates the hash identifier of the content and sends the hash identifier to the edge cache device, the edge cache device searches for the content from the locally cached content according to the hash identifier of the content.
  • the edge cache device receives the hash identifier, the hash identifier is stored, and the hash identifier is associated with the content corresponding to the hash identifier, so that the next edge cache device can find the hash identifier according to the hash identifier.
  • the content corresponding to the hash identifier is not first search for the content from the locally cached content according to the content identifier, but directly forward the content request message to the core cache.
  • the edge cache device after the core cache device calculates the hash identifier of the content and sends the hash identifier to the edge cache device, the edge cache
  • the access network device When the user terminal needs to access related content of the Internet, the access network device sends a content request message to the edge cache device, where the content request message carries the content identifier.
  • the edge cache device receives and stores a content request message from the access network device, and searches for content corresponding to the content identifier from the locally cached content according to the content identifier.
  • the edge cache device when the edge cache device stores the content identifier, it is determined that the edge cache device stores content corresponding to the content identifier. If the edge cache device does not find the content identifier in the locally cached content, the edge cache device forwards the content request message to the core cache device. The core cache device acquires content corresponding to the content identifier according to the content identifier in the content request message.
  • the core cache device after receiving the content request message, the core cache device first searches for the content identifier from the local cache content to confirm whether the content corresponding to the content identifier is stored in the core cache device. If yes, the core cache device sends a response message carrying the content corresponding to the content identifier to the cache control device, where the response message further carries the content hit identifier, and the response message is sent to the cache control. The device will pass through the billing monitoring device.
  • the core cache device forwards the content request message to the Internet to invite to the Internet.
  • the content corresponding to the content identifier in the content request message is fed back.
  • the core cache device stores the content identifier in the content request message and the content corresponding to the content identifier.
  • the core cache device After the core cache device calculates the hash identifier of the content, the hash identifier is added to the response message, and the response message is sent to the edge cache device.
  • the data sent by the core buffer device to the edge buffer device passes through the charging monitoring device and the cache control device, and the response message is sent to the edge buffer device through the charging monitoring device and the cache control device in sequence.
  • the edge cache loading local cache content stores a hash identifier that is received at least partially from the core cache device and content corresponding to the hash identifier.
  • the edge cache device receives the hash identifier, the hash identifier is searched from the local cache content to confirm whether the content corresponding to the content identifier in the content request message is stored in the local cache content.
  • the edge cache device stores the hash identifier, it is determined that the edge cache device stores content corresponding to the content identifier.
  • the edge cache device After determining that the edge cache device stores the content corresponding to the content identifier, the edge cache device sends the content corresponding to the content identifier to the access network device. In addition, the edge cache device further sets a bit of the TOS field in the IP packet header of the content request message to be 1 as a content hit identifier. The edge cache device forwards the content request message carrying the content hit identifier to the core cache device.
  • the core cache device sends a response message carrying the content corresponding to the content identifier to the cache control device via the charging monitoring device, wherein the response message further carries the content hit identifier.
  • the charging monitoring device monitors and charges the content corresponding to the content identifier carried in the response message.
  • the cache control device When the cache control device carries the content hit identifier in the received response message, it indicates that the edge cache device has sent the content corresponding to the content identifier in the content request message to the access network device. Therefore, in order to prevent the access network device from repeatedly receiving the content
  • the content in the request message identifies the content corresponding to the content, and the cache control device discards the content in the response message according to the content hit identifier.
  • the edge cache device If the edge cache device does not store the content identifier in the content request message or the hash identifier of the content corresponding to the content identifier, it is determined that the content corresponding to the content identifier is not stored in the edge cache device.
  • the edge cache device sets a bit of the TOS field in the IP packet header of the content request message to 0 as a content miss identifier.
  • the edge cache device transmits the content request message to the core cache device.
  • the core buffer device sends a response message carrying the content corresponding to the content identifier to the cache control device via the charging monitoring device, so that the charging monitoring device can charge and monitor the content.
  • the content message also carries the content miss identifier.
  • the cache control device sends the content corresponding to the content identifier in the response message to the edge cache device according to the content miss identifier carried in the response message.
  • the edge cache device stores the content and the content identifier of the content, and also sends the content to the access network device.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Accounting & Taxation (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明实施例公开了一种缓存内容命中方法和通信系统,用于保证计费监听装置对用户所访问的内容进行监听和计费。本发明实施例方法包括:边缘缓存装置接收存储来自接入网设备的携带内容标识的内容请求消息;边缘缓存装置从本地缓存内容中查找与内容标识对应的内容,当确定存储有与内容标识对应的内容时,向接入网设备发送该内容;边缘缓存装置在内容请求消息中添加内容命中标识后转发给核心缓存装置;核心缓存装置将携带有该内容的响应消息经由计费监听装置发送给缓存控制装置,响应消息中携带内容命中标识;缓存控制装置根据内容命中标识将响应消息中的内容丢弃。本发明实施例能够保证计费监听装置对用户所访问的内容进行监听和计费。

Description

一种缓存内容命中方法和通信系统
本申请要求于2014年08月12日提交中国专利局、申请号为201410394832.6、发明名称为“缓存内容命中方法和通信系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及移动通信领域,尤其涉及一种缓存内容命中方法和通信系统。
背景技术
现有网络架构中,互联网和无线接入网之间设置有计费监听设备,用户所要访问的内容从互联网发送至计费监听装置,再由计费监听装置发送至无线接入网,进而发送至用户。这样,能够保证计费监听装置能够监测到用户所访问的互联网内容,以根据该内容进行计费。
为了提高用户的访问体验,节省内容重复传输而导致的网络设备投资,一般在计费监听装置和互联网之间设有互联网缓存装置,用于对用户对互联网重复访问的内容进行缓存。当互联网缓存装置中存储有用户所要访问的互联网内容时,互联网缓存装置将该内容发送至计费监听装置,然后再由计费监听装置发送至无线接入网。这样,无需为相同的内容重复向互联网请求,以缩短内容访问时延。
进一步的,为节省无线接入网和计费监听装置之间的回程线路传输带宽,一般的解决方法是在基站侧部署无线接入网缓存,来对用户访问的重复内容进行缓存。若用户所访问的内容在该无线接入网缓存中有存储时,该无线接入网直接将该部分内容反馈给用户;若该无线接入网缓存中没有存储时,再向互联网缓存装置进行请求。
然而,由于该部分重复内容在用户访问时直接由无线接入网缓存返回给用户,而没有经过计费监听装置,导致计费监听装置对该用户的流量计费错误,影响运营商流量收入,且避过了对这部分内容的合法监听。
发明内容
本发明实施例提供了缓存内容命中方法和通信系统,能够在实现节省无线接入网和计费监听装置之间的回程线路传输带宽的同时,保证计费监听装置对用户所访问的内容进行监听和计费。
本发明实施例第一方面提供一种缓存内容命中方法,包括:
边缘缓存装置接收并存储来自接入网设备的内容请求消息,所述内容请求消息携带内容标识;
所述边缘缓存装置从本地缓存内容中查找与所述内容标识对应的内容;
当确定所述边缘缓存装置存储有与所述内容标识对应的内容时,向所述接入网设备发送与所述内容标识对应的内容;所述边缘缓存装置在所述内容请求消息中添加内容命中标识后转发给核心缓存装置;
所述核心缓存装置将携带有与所述内容标识对应的内容的响应消息经由计费监听装置发送给缓存控制装置,所述响应消息中携带所述内容命中标识;
所述缓存控制装置根据所述内容命中标识将所述响应消息中的内容丢弃。
结合本发明实施例的第一方面,本发明实施例的第一方面的第一种实现方式中,所述确定边缘缓存装置存储有与所述内容标识对应的内容包括:
所述边缘缓存装置根据所述内容标识从本地缓存内容中查找与所述内容标识对应的内容;
当所述边缘缓存装置存储有所述内容标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。
结合本发明实施例的第一方面,本发明实施例的第一方面的第二种实现方式中,所述确定边缘缓存装置存储有与所述内容标识对应的内容包括:
所述边缘缓存装置将所述内容请求消息转发给所述核心缓存装置;
所述核心缓存装置根据所述内容标识获取与所述内容标识对应的内容;
所述核心缓存装置计算所述内容的哈希(Hash)标识,将包括所述哈希标识的响应消息依次经由所述计费监听装置与所述缓存控制装置发送给所述边缘缓存装置;
所述边缘缓存装置根据所述哈希标识从本地缓存内容中查找所述哈希标识对应的内容;
当所述边缘缓存装置存储有所述哈希标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。
结合本发明实施例的第一方面,本发明实施例的第一方面的第三种实现方式中,所述方法还包括:
当所述边缘缓存装置未存储与所述内容标识对应的内容时,所述边缘缓存装置从核心缓存装置获取所述内容后将所述内容发送给所述接入网设备。
结合本发明实施例的第一方面的第三种实现方式,本发明实施例的第一方面的第四种实现方式中,所述当所述边缘缓存装置未存储与所述内容标识对应的内容时,所述边缘缓存装置从核心缓存装置获取所述内容后将所述内容发送给所述接入网设备包括:
当所述边缘缓存装置未存储与所述内容标识对应的内容时,所述边缘缓存装置在所述内容请求消息中添加内容未命中标识后转发给所述核心缓存装置;
所述核心缓存装置将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置发送给所述缓存控制装置,所述响应消息中携带所述内容未命中标识;
所述缓存控制装置根据所述内容未命中标识,将所述内容经所述边缘缓存装置发送给所述接入网设备。
结合本发明实施例的第一方面的第三种实现方式,本发明实施例的第一方面的第五种实现方式中,所述当所述边缘缓存装置未存储与所述内容标识对应的内容时,所述边缘缓存装置从核心缓存装置获取所述内容后将所述内容响应给所述接入网设备包括:
当所述边缘缓存装置未存储与所述内容标识对应的内容时,所述边缘缓存装置将所述内容请求消息转发给所述核心缓存装置;
所述核心缓存装置将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置发送给所述缓存控制装置;
所述缓存控制装置将所述响应消息经由所述边缘缓存装置发送给所述接入网设备。
本发明实施例第二方面提供一种通信系统,包括:
接入网设备、边缘缓存装置、缓存控制装置、计费监听装置和核心缓存装置;
所述边缘缓存装置用于接收并存储来自接入网设备的内容请求消息,所述内容请求消息携带内容标识;
所述边缘缓存装置还用于从本地缓存内容中查找与所述内容标识对应的内容;
所述边缘缓存装置还用于当确定所述边缘缓存装置存储有与所述内容标识对应的内容时,向所述接入网设备发送与所述内容标识对应的内容,以及在所述内容请求消息中添加内容命中标识后转发给核心缓存装置;
所述核心缓存装置用于将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置发送给所述缓存控制装置,所述响应消息中携带所述内容命中标识;
所述缓存控制装置用于根据所述内容命中标识将所述响应消息中的内容丢弃。
结合本发明实施例的第二方面,本发明实施例的第二方面的第一种实现方式中,所述边缘缓存装置具体用于根据所述内容标识从本地缓存内容中查找与所述内容标识对应的内容,当所述边缘缓存装置存储有所述内容标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。
结合本发明实施例的第二方面,本发明实施例的第二方面的第二种实现方式中,所述边缘缓存装置还用于将所述内容请求消息转发给所述核心缓存装置;
所述核心缓存装置还用于根据所述内容标识获取与所述内容标识对应的内容;
所述核心缓存装置还用于计算所述内容的哈希(Hash)标识,将包括所述哈希标识的响应消息依次经由所述计费监听装置与所述缓存控制装置发送给所述边缘缓存装置;
所述边缘缓存装置还用于根据所述哈希标识从本地缓存内容中查找所述哈希标识;
所述边缘缓存装置还用于当所述边缘缓存装置存储有所述哈希标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。
结合本发明实施例的第二方面,本发明实施例的第二方面的第三种实现方式中,所述边缘缓存装置还用于当所述边缘缓存装置未存储与所述内容标识对应的内容时,从核心缓存装置获取所述内容后将所述内容发送给所述接入网设备。
结合本发明实施例的第二方面的第三种实现方式,本发明实施例的第二方面的第四种实现方式中,所述边缘缓存装置具体用于当所述边缘缓存装置未存储与所述内容标识对应的内容时,在所述内容请求消息中添加内容未命中标识后转发给所述核心缓存装置;
所述核心缓存装置还用于将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置发送给所述缓存控制装置,所述响应消息中携带所述内容未命中标识;
所述缓存控制装置还用于根据所述内容未命中标识,将所述内容经所述边缘缓存装置发送给所述接入网设备。
结合本发明实施例的第二方面的第三种实现方式,本发明实施例的第二方面的第五种实现方式中,所述边缘缓存装置具体用于当所述边缘缓存装置未存储与所述内容标识对应的内容时,将所述内容请求消息转发给所述核心缓存装置;
所述核心缓存装置具体用于将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置发送给所述缓存控制装置;
所述缓存控制装置具体用于将所述响应消息经由所述边缘缓存装置发送给所述接入网设备。
从以上技术方案可以看出,本发明实施例具有以下优点:
本发明中,当所述边缘缓存装置本地存储有与所述内容标识对应的内容时,向所述接入网设备发送与所述内容标识对应的内容,还在所述内容请求消息中添加内容命中标识后转发给核心缓存装置;这样,核心缓存装置可以将携带有与所述内容标识对应的内容的响应消息经由计费监听装置发送给缓存控制装置,以使得计费监听装置能够对该内容标识对应的内容进行监听和计费;而由于边缘缓存装置已经将该部分相关内容反馈给用户,因此缓存控制装置可以根据响应消息中携带的内容命中标识将该响应消息的内容丢弃,避免重复发送给用户,而且,这样可以无需计费监听装置来丢弃内容,而是在通信系统中增加缓存控制装置来执行该动作,能够很大程度地降低对现有装置的改造,降低改造成本。
附图说明
图1为本发明的缓存内容命中方法的一个实施例的流程图;
图2为本发明的缓存内容命中方法的另一个实施例的流程图;
图3为本发明的通信系统的一个实施例的结构示意图;
图4为本发明的通信系统的一个组网图。
具体实施方式
本发明实施例提供了缓存内容命中方法和通信系统,能够在实现节省无线接入网和计费监听装置之间的回程线路传输带宽的同时,保证计费监听装置对用户所访问的内容进行监听和计费。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所 描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、系统、产品或设备固有的其它步骤或单元。
为方便了解本发明,下面对本发明中的通信系统的架构进行简单说明。请参阅图4,图4为本发明的通信系统的架构图。通信系统400包括接入网设备401、边缘缓存装置402、缓存控制装置403、计费监听装置404和核心缓存装置405。实际运用中,该接入网设备401可以是基站、无线网络控制器(Radio Network Controller,RNC)或者其他接入网设备等等,用于将来自用户终端的请求消息转发至骨干网。边缘缓存装置402可以是RAN Cache Edge,核心缓存装置405可以是Core Cache,该两者都是缓存设备,用于对内容互联网内容进行缓存。缓存控制装置403可以是路由转发设备,用于决定是否将计费监听装置404的消息转发至边缘缓存装置402。计费监听装置404可以是PCEF设备和GGSN设备,或者PGW设备和SGW设备等等,用于对用户终端请求的内容进行计费和合法监听。
用户终端在向互联网406请求响应内容时,来自用户终端的内容请求消息先发送至接入网设备,由接入网设备转发至边缘缓存装置。若边缘缓存装置中存储有该内容请求消息所请求的内容,则边缘缓存装置直接将该内容响应给接入网设备,再由接入网设备转发给用户终端。若边缘缓存装置中没有存储该内容请求消息所请求的内容,则边缘缓存装置将该内容请求消息转发至核心缓存装置。
若核心缓存装置中该存储有该内容请求消息所请求的内容,则将该内容发送至计费监听装置;若没存储,则核心缓存装置向互联网发送内容请求消息,并接收来自互联网的内容响应,再将该内容发送至计费监听装置。计费监听装置将该内容转发至边缘缓存装置。边缘缓存装置将该内容存储,并转发至接入网设别,由接入网设备转发至用户终端。
下面对本发明的缓存内容命中方法进行详细描述。
请参阅图1,本发明的一个实施例中缓存内容命中方法包括:
101、边缘缓存装置接收并存储来自接入网设备的内容请求消息;
本实施例中,接入网设备可以是基站(例如NodeB)、无线网络控制器(Radio Network Controller,RNC)或者其他接入网设备,其中该基站可以是2G无线通信系统、3G无线通信系统、LTE无线通信系统或者其他通信系统中的基站,在此不作限制。
接入网设备接收内容请求消息,其中该内容请求消息携带有内容标识。具体举例来说,该内容请求消息可以是Http请求,例如URL(Uniform Resource Locator,统一资源定位符)。当然,实际运用中该内容请求消息可以是其他类型的,在此不作限制。
102、所述边缘缓存装置从本地缓存内容中查找与所述内容标识对应的内容;
由于内容标识对应的内容较大,一般边缘缓存装置不会直接去查找本地缓存内容中是否存储有该内容,而是通过其他方式来查找该内容标识对应的内容。例如,边缘缓存装置内存储有以往接收到的部分内容请求消息中的内容标识以及该内容标识对应的内容,该内容标识和所对应的内容在本地缓存内容中是关联起来的。边缘缓存装置在每一次接受到来自接入网设备的内容请求消息时,边缘缓存装置根据该内容请求消息中的内容标识从本地缓存内容中查找所述内容标识,也即通过查找边缘缓存装置中是否存储有该内容标识来确定是否存储有该内容。
当然,实际运用中,边缘缓存装置也可以通过其他方法来从本地缓存内容中查找与该内容标识对应的内容,在此不作限制。
103、当确定所述边缘缓存装置存储有与所述内容标识对应的内容时,所述边缘缓存装置向所述接入网设备发送所述内容标识对应的内容,以及在所述内容请求消息中添加内容命中标识后转发给核心缓存装置;
在边缘缓存装置根据内容标识来查找与该内容标识对应的内容的情况下,当所述边缘缓存装置存储有所述内容标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。当然,若根据其他方法来查找与该内容标识对应的内容的情况下,则根据其他对应的方法来确定该边缘缓存装置存储有该内容。
边缘缓存装置将该内容标识对应的内容发送至接入网设备,以便该接入网设备能够将该相关内容反馈给用户终端。这样,由于接入网设备请求的内容能够直接由边缘缓存装置反馈,能够节省无线接入网和计费监听装置之间的回程 线路传输带宽,并且大大缩短用户访问内容的时延。优选的,边缘缓存装置部署在基站侧,能够进一步缩短用户访问内容的时延。
另外,边缘缓存装置还在内容消息请求中添加内容命中标识,以表示该边缘缓存装置已经命中内容请求消息所请求的内容并发送该内容至接入网设备。添加内容命中标识有多种方法,具体举例来说,可以利用内容请求消息的IP报文头中的TOS字段作为标识。当内容请求消息命中后,边缘缓存装置将该TOS字段中的一个bit设置为1,作为内容命中标识。当然,实际运用中也可以采用其他方法来添加内容命中标识,在此不作限制。
边缘缓存装置在所述内容请求消息中添加内容命中标识后,将该内容请求消息转发给核心缓存装置。
104、所述核心缓存装置将携带有与所述内容标识对应的内容的响应消息经由计费监听装置发送给缓存控制装置;
核心缓存装置接收到内容请求消息后,首先从本地缓存内容中查找所述内容标识,以确认该核心缓存装置内是否存储有该内容标识对应的内容。
若有,则核心缓存装置将携带有与所述内容标识对应的内容的响应消息发送给缓存控制装置,其中该响应消息中还携带有所述内容命中标识,且该响应消息在发送给缓存控制装置时会经过计费监听装置。
若没有,则核心缓存装置将该内容请求消息转发至互联网,以向互联网请求反馈该内容请求消息中的内容标识对应的内容。在核心缓存装置接收到来自互联网的反馈后,核心缓存装置对内容请求消息中的内容标识和该内容标识对应的内容进行存储,还将携带有与该内容标识对应的内容的响应消息经由计费监听装置发送给缓存控制装置,其中该响应消息中还携带有所述内容命中标识。
计费监听装置接收到来自核心缓存装置的响应消息时,对该响应消息所携带的所述内容标识对应的内容进行监听和计费。
105、所述缓存控制装置根据所述内容命中标识将所述响应消息中的内容丢弃。
缓存控制装置在接收到响应消息中携带有内容命中标识时,表明边缘缓存装置已经将内容请求消息中内容标识对应的内容发送给接入网设备,因此,为避免接入网设备重复接收到内容请求消息中内容标识对应的内容,缓存控制装置根据该内容命中标识将所述响应消息中的内容丢弃。
本实施例中,当所述边缘缓存装置本地存储有与所述内容标识对应的内容 时,向所述接入网设备发送与所述内容标识对应的内容,还在所述内容请求消息中添加内容命中标识后转发给核心缓存装置;这样,核心缓存装置可以将携带有与所述内容标识对应的内容的响应消息经由计费监听装置发送给缓存控制装置,以使得计费监听装置能够对该内容标识对应的内容进行监听和计费;而由于边缘缓存装置已经将该部分相关内容反馈给用户,因此缓存控制装置可以根据响应消息中携带的内容命中标识将该响应消息的内容丢弃,避免重复发送给用户,而且这样可以无需计费监听装置来丢弃内容,而是在通信系统中增加缓存控制装置来执行该动作,能够很大程度地降低对现有装置的改造,降低改造成本。
优选的,本发明中的缓存内容命中方法优选还包括:
106、当所述边缘缓存装置未存储与所述内容标识对应的内容时,所述边缘缓存装置从核心缓存装置获取所述内容后将所述内容发送给所述接入网设备。
具体的,当边缘缓存装置未存储与内容标识对应的内容时,边缘缓存装置在该内容请求消息中添加内容未命中标识后转发给核心缓存装置。添加内容未命中标识有多种方法,具体举例来说,可以利用内容请求消息的IP报文头中的TOS字段作为标识。当内容请求消息未命中时,边缘缓存装置将该TOS字段的一个bit设置为0,作为内容未命中标识。当然,实际运用中也可以采用其他方法来添加内容未命中标识,在此不作限制。
核心缓存装置将携带有与所述内容标识对应的内容的响应消息经计费监听装置发送给缓存控制装置,这样,计费监听装置可以对该内容进行计费和监听。所述响应消息中还携带所述内容未命中标识。
缓存控制装置根据响应消息中所携带的内容未命中标识,将响应消息中的与所述内容标识对应的内容发送给所述边缘缓存装置。该边缘缓存装置对该内容以及该内容的内容标识存储,还将该内容发送给所述接入网设备。
当然,上面描述仅为对当所述边缘缓存装置未存储与所述内容标识对应的内容时,所述边缘缓存装置从核心缓存装置获取所述内容后将所述内容发送给所述接入网设备的其中一种具体方法,并不作限制。
实际运用中,当边缘缓存装置未存储与内容标识对应的内容时,边缘缓存装置也可以不在该内容请求消息中添加内容未命中标识,而是直接转发给核心缓存装置。核心缓存装置将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置发送给所述缓存控制装置。缓存控制装置在该响应消息内未 检测到有内容命中标识的存在时,即可将所述响应消息经由所述边缘缓存装置发送给所述接入网设备。
实际运用中,会出现两个内容请求消息中的内容标识对应的内容相同,但该两个内容标识不同的情况。例如,在内容标识为Http请求时,该Http请求包括静态URL(Uniform Resource Locator,统一资源定位符)和动态URL两种情况。在内容标识为动态URL的情况下,即使在边缘缓存装置存储有该动态URL对应的内容,边缘缓存装置内存储的动态URL也有可能与内容请求消息中的动态URL不相同。甚至,两个对应一样内容的静态URL也有可能不一样。这样,会导致边缘缓存装置有可能向核心缓存装置请求反馈重复的内容,进而导致边缘缓存装置重复存储相同的内容,浪费缓存资源。实际运用中,有多种方法能够解决该问题,下面对本发明实施例中对缓存内容命中方法进行描述。请参阅图2,本发明的另一个实施例中缓存内容命中方法包括:
201、边缘缓存装置接收并存储来自接入网设备的内容请求消息;
详细说明请参见图1所示实施例中步骤101的说明。
202、所述边缘缓存装置根据所述内容标识从本地缓存内容中查找与所述内容标识对应的内容;
详细说明请参见图1所示实施例中步骤102的说明。
203、当所述边缘缓存装置未存储有所述内容标识时,所述边缘缓存装置将所述内容请求消息转发给所述核心缓存装置;
当所述边缘缓存装置未存储有所述内容标识时,有两种可能情况,一种是该边缘缓存装置中存储有该内容标识所对应的内容,但该边缘缓存装置中存储的与该内容对应的内容标识与所接收到的内容请求消息中的内容标识不一样;另一种情况是边缘缓存装置中并未存储有该内容标识所对应的内容。为分清是哪种情况,边缘缓存装置将该内容该请求消息转发给核心缓存装置。
204、所述核心缓存装置根据所述内容标识获取与所述内容标识对应的内容;
核心缓存装置接收到内容请求消息后,首先从本地缓存内容中查找所述内容标识,以确认该核心缓存装置内是否存储有该内容标识对应的内容;若有,则获取该内容。若没有,则核心缓存装置将该内容请求消息转发至互联网,以从互联网获取该内容标识对应的内容。
205、所述核心缓存装置计算所述内容的哈希(Hash)标识,将包括所述哈希标识的响应消息依次经由所述计费监听装置与所述缓存控制装置发送给所述 边缘缓存装置;
核心缓存装置计算该内容的哈希(Hash)标识后,将该哈希标识加入响应消息中,并将该响应消息发送至边缘缓存装置。由于在通信系统中,核心缓存装置发往边缘缓存装置的数据都会经过计费监听装置和缓存控制装置,因此该响应消息依次经由计费监听装置和缓存控制装置发送给边缘缓存装置。
206、所述边缘缓存装置根据所述哈希标识从本地缓存内容中查找所述哈希标识;
边缘缓存装本地缓存内容中存储有以往接收到的至少部分来自核心缓存装置的哈希标识以及该哈希标识所对应的内容。在边缘缓存装置接收到哈希标识时,从本地缓存内容中查找该哈希标识,以确认本地缓存内容中是否存储有内容请求消息中的内容标识所对应的内容。
207、当所述边缘缓存装置存储有所述哈希标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容;
208、当所述边缘缓存装置存储有与所述内容标识对应的内容时,所述边缘缓存装置向所述接入网设备发送所述内容标识对应的内容,以及在所述内容请求消息中添加内容命中标识后转发给核心缓存装置;
详细说明请参见图1所示实施例中步骤103的说明。
209、所述核心缓存装置将携带有与所述内容标识对应的内容的响应消息经由计费监听装置发送给缓存控制装置;
详细说明请参见图1所示实施例中步骤104的说明。
2010、所述缓存控制装置根据所述内容命中标识将所述响应消息中的内容丢弃。
详细说明请参见图1所示实施例中步骤105的说明。
本实施例中,在边缘缓存装置未存储有内容请求消息中的内容标识时,边缘缓存装置通过将该内容请求消息发送至核心缓存装置,以根据内容请求消息中的内容标识对应的内容计算出该内容的哈希(Hash)标识;由于哈希标识能够唯一标识该内容,也即同样的内容只会对应一个哈希标识,而不像同样的内容可以对应至少两个内容标识,避免了内容一致但边缘缓存装置内存储的内容标识与该内容请求消息中的内容标识不一致而导致的边缘缓存装置向核心缓存装置请求反馈重复的内容的情况。
本实施例中,边缘缓存装置在接受并存储来自接入网设备的内容请求消息 时,首先根据内容标识从本地缓存内容中查找与该内容标识对应的内容,在查找不到该内容标识时,才将该内容请求消息转发给核心缓存装置,来让核心缓存装置计算该内容的哈希标识并发送给边缘缓存装置,边缘缓存装置再根据该内容的哈希标识来从本地缓存内容中查找该内容。
实际运用中,边缘缓存装置在接受并存储来自接入网设备的内容请求消息时,也可以不是首先根据内容标识从本地缓存内容中查找该内容,而是直接将该内容请求消息转发给核心缓存装置,在核心缓存装置计算该内容的哈希标识并发送给边缘缓存装置后,边缘缓存装置才根据该内容的哈希标识来从本地缓存内容中查找该内容。边缘缓存装置每一次接收到哈希标识,都存储该哈希标识,并将该哈希标识和与该哈希标识对应的内容进行关联,以便下一次边缘缓存装置能够根据该哈希标识查找到与该哈希标识对应的内容。
为便于理解,下面以一个实际应用场景对本发明实施例的缓存内容命中方法进行描述。
用户终端需要访问互联网的相关内容时,接入网设备向边缘缓存装置发送内容请求消息,该内容请求消息携带有内容标识。边缘缓存装置接收并存储来自接入网设备的内容请求消息,并根据所述内容标识从本地缓存内容中查找与所述内容标识对应的内容。
具体的,当所述边缘缓存装置存储有所述内容标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。若所述边缘缓存装置在本地缓存内容中查找不到所述内容标识,则边缘缓存装置将所述内容请求消息转发给所述核心缓存装置。核心缓存装置根据所述内容请求消息中的内容标识获取与所述内容标识对应的内容。
具体的,核心缓存装置接收到内容请求消息后,首先从本地缓存内容中查找所述内容标识,以确认该核心缓存装置内是否存储有该内容标识对应的内容。若有,则核心缓存装置将携带有与所述内容标识对应的内容的响应消息发送给缓存控制装置,其中该响应消息中还携带有所述内容命中标识,且该响应消息在发送给缓存控制装置时会经过计费监听装置。
若没有,则核心缓存装置将该内容请求消息转发至互联网,以向互联网请求反馈该内容请求消息中的内容标识对应的内容。在核心缓存装置接收到来自互联网的反馈后,核心缓存装置对内容请求消息中的内容标识和该内容标识对应的内容进行存储。
核心缓存装置计算该内容的哈希(Hash)标识后,将该哈希标识加入响应消息中,并将该响应消息发送至边缘缓存装置。由于在通信系统中,核心缓存装置发往边缘缓存装置的数据都会经过计费监听装置和缓存控制装置,因此该响应消息依次经由计费监听装置和缓存控制装置发送给边缘缓存装置。
边缘缓存装本地缓存内容中存储有以往接收到的至少部分来自核心缓存装置的哈希标识以及该哈希标识所对应的内容。在边缘缓存装置接收到哈希标识时,从本地缓存内容中查找该哈希标识,以确认本地缓存内容中是否存储有内容请求消息中的内容标识所对应的内容。当所述边缘缓存装置存储有所述哈希标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。
确定边缘缓存装置存储有与内容标识对应的内容之后,边缘缓存装置向所述接入网设备发送所述内容标识对应的内容。另外,该边缘缓存装置还设置该内容请求消息的IP报文头中的TOS字段的一个bit为1,作为内容命中标识。边缘缓存装置将该携带有内容命中标识的内容请求消息转发给核心缓存装置。
核心缓存装置将携带有与该内容标识对应的内容的响应消息经由计费监听装置发送给缓存控制装置,其中该响应消息中还携带有所述内容命中标识。
计费监听装置接收到来自核心缓存装置的响应消息时,对该响应消息所携带的所述内容标识对应的内容进行监听和计费。
缓存控制装置在接收到响应消息中携带有内容命中标识时,表明边缘缓存装置已经将内容请求消息中内容标识对应的内容发送给接入网设备,因此,为避免接入网设备重复接收到内容请求消息中内容标识对应的内容,缓存控制装置根据该内容命中标识将所述响应消息中的内容丢弃。
若所述边缘缓存装置既未存储有内容请求消息中的内容标识也未存储有该内容标识对应的内容的哈希标识,则确定该边缘缓存装置中未存储有该内容标识对应的内容。边缘缓存装置设置该内容请求消息的IP报文头中的TOS字段的一个bit为0,作为内容未命中标识。边缘缓存装置向所述核心缓存装置发送所述内容请求消息。
核心缓存装置将携带有与所述内容标识对应的内容的响应消息经计费监听装置发送给缓存控制装置,这样,计费监听装置可以对该内容进行计费和监听。所述响应消息中还携带所述内容未命中标识。
缓存控制装置根据响应消息中所携带的内容未命中标识,将响应消息中的与所述内容标识对应的内容发送给所述边缘缓存装置。该边缘缓存装置对该内 容以及该内容的内容标识存储,还将该内容发送给所述接入网设备。
上面对本发明实施例中的缓存内容命中方法进行了描述,下面对本发明实施例中的通信系统进行描述,请参阅图3,本发明实施例中通信系统300包括:
接入网设备301、边缘缓存装置302、缓存控制装置303、计费监听装置304和核心缓存装置305。
所述边缘缓存装置302用于接收并存储来自接入网设备301的内容请求消息,所述内容请求消息携带内容标识;
所述边缘缓存装置302还用于从本地缓存内容中查找与所述内容标识对应的内容;
所述边缘缓存装置302还用于当确定所述边缘缓存装置302存储有与所述内容标识对应的内容时,向所述接入网设备301发送与所述内容标识对应的内容,以及在所述内容请求消息中添加内容命中标识后转发给核心缓存装置305;
所述核心缓存装置305用于将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置304发送给所述缓存控制装置303,所述响应消息中携带所述内容命中标识;
所述缓存控制装置303用于根据所述内容命中标识将所述响应消息中的内容丢弃。
本发明中,当所述边缘缓存装置本地存储有与所述内容标识对应的内容时,向所述接入网设备发送与所述内容标识对应的内容,还在所述内容请求消息中添加内容命中标识后转发给核心缓存装置;这样,核心缓存装置可以将携带有与所述内容标识对应的内容的响应消息经由计费监听装置发送给缓存控制装置,以使得计费监听装置能够对该内容标识对应的内容进行监听和计费;而由于边缘缓存装置已经将该部分相关内容反馈给用户,因此缓存控制装置可以根据响应消息中携带的内容命中标识将该响应消息的内容丢弃,避免重复发送给用户,而且,这样可以无需计费监听装置来丢弃内容,而是在通信系统中增加缓存控制装置来执行该动作,能够很大程度地降低对现有装置的改造,降低改造成本。
优选的,本实施例中,所述边缘缓存装置还用于当所述边缘缓存装置未存储与所述内容标识对应的内容时,从核心缓存装置获取所述内容后将所述内容发送给所述接入网设备。
具体举例来说,所述边缘缓存装置具体用于当所述边缘缓存装置未存储与所述内容标识对应的内容时,在所述内容请求消息中添加内容未命中标识后转 发给所述核心缓存装置。所述核心缓存装置还用于将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置发送给所述缓存控制装置,所述响应消息中携带所述内容未命中标识。所述缓存控制装置还用于根据所述内容未命中标识,将所述内容经所述边缘缓存装置发送给所述接入网设备。
或者,当边缘缓存装置未存储与内容标识对应的内容时,边缘缓存装置也可以不在该内容请求消息中添加内容未命中标识,而是直接转发给核心缓存装置。核心缓存装置将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置发送给所述缓存控制装置。缓存控制装置在该响应消息内未检测到有内容命中标识的存在时,即可将所述响应消息经由所述边缘缓存装置发送给所述接入网设备。
优选的,本实施例中,边缘缓存装置具体用于根据所述内容标识从本地缓存内容中查找与所述内容标识对应的内容,当所述边缘缓存装置存储有所述内容标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。
实际运用中,会出现两个内容请求消息中的内容标识对应的内容相同,但该两个内容标识不同的情况。例如,在内容标识为Http请求时,该Http请求包括静态URL(Uniform Resource Locator,统一资源定位符)和动态URL两种情况。在内容标识为动态URL的情况下,即使在边缘缓存装置存储有该动态URL对应的内容,边缘缓存装置内存储的动态URL也有可能与内容请求消息中的动态URL不相同。甚至,两个对应一样内容的静态URL也有可能不一样。这样,会导致边缘缓存装置有可能向核心缓存装置请求反馈重复的内容,进而导致边缘缓存装置重复存储相同的内容,浪费缓存资源。
因此,进一步,优选的,所述边缘缓存装置还用于当所述边缘缓存装置未存储有所述内容标识时,将所述内容请求消息转发给所述核心缓存装置。
所述核心缓存装置还用于根据所述内容标识获取与所述内容标识对应的内容,计算所述内容的哈希(Hash)标识,将包括所述哈希标识的响应消息依次经由所述计费监听装置与所述缓存控制装置发送给所述边缘缓存装置。
所述边缘缓存装置还用于根据所述哈希标识从本地缓存内容中查找所述哈希标识,当所述边缘缓存装置存储有所述哈希标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。
这样,由于哈希标识能够唯一标识该内容,也即同样的内容只会对应一个哈希标识,而不像同样的内容可以对应至少两个内容标识,避免了内容一致但 边缘缓存装置内存储的内容标识与该内容请求消息中的内容标识不一致而导致的边缘缓存装置向核心缓存装置请求反馈重复的内容的情况。
本实施例中,边缘缓存装置具体用于在接受并存储来自接入网设备的内容请求消息时,首先根据内容标识从本地缓存内容中查找与该内容标识对应的内容,在查找不到该内容标识时,才将该内容请求消息转发给核心缓存装置,来让核心缓存装置计算该内容的哈希标识并发送给边缘缓存装置,边缘缓存装置再根据该内容的哈希标识来从本地缓存内容中查找该内容。
实际运用中,边缘缓存装置在接受并存储来自接入网设备的内容请求消息时,也可以不是首先根据内容标识从本地缓存内容中查找该内容,而是直接将该内容请求消息转发给核心缓存装置,在核心缓存装置计算该内容的哈希标识并发送给边缘缓存装置后,边缘缓存装置才根据该内容的哈希标识来从本地缓存内容中查找该内容。边缘缓存装置每一次接收到哈希标识,都存储该哈希标识,并将该哈希标识和与该哈希标识对应的内容进行关联,以便下一次边缘缓存装置能够根据该哈希标识查找到与该哈希标识对应的内容。
为便于理解,下面以一个实际应用场景对本发明实施例的通信系统进行描述。
用户终端需要访问互联网的相关内容时,接入网设备向边缘缓存装置发送内容请求消息,该内容请求消息携带有内容标识。边缘缓存装置接收并存储来自接入网设备的内容请求消息,并根据所述内容标识从本地缓存内容中查找与所述内容标识对应的内容。
具体的,当所述边缘缓存装置存储有所述内容标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。若所述边缘缓存装置在本地缓存内容中查找不到所述内容标识,则边缘缓存装置将所述内容请求消息转发给所述核心缓存装置。核心缓存装置根据所述内容请求消息中的内容标识获取与所述内容标识对应的内容。
具体的,核心缓存装置接收到内容请求消息后,首先从本地缓存内容中查找所述内容标识,以确认该核心缓存装置内是否存储有该内容标识对应的内容。若有,则核心缓存装置将携带有与所述内容标识对应的内容的响应消息发送给缓存控制装置,其中该响应消息中还携带有所述内容命中标识,且该响应消息在发送给缓存控制装置时会经过计费监听装置。
若没有,则核心缓存装置将该内容请求消息转发至互联网,以向互联网请 求反馈该内容请求消息中的内容标识对应的内容。在核心缓存装置接收到来自互联网的反馈后,核心缓存装置对内容请求消息中的内容标识和该内容标识对应的内容进行存储。
核心缓存装置计算该内容的哈希(Hash)标识后,将该哈希标识加入响应消息中,并将该响应消息发送至边缘缓存装置。由于在通信系统中,核心缓存装置发往边缘缓存装置的数据都会经过计费监听装置和缓存控制装置,因此该响应消息依次经由计费监听装置和缓存控制装置发送给边缘缓存装置。
边缘缓存装本地缓存内容中存储有以往接收到的至少部分来自核心缓存装置的哈希标识以及该哈希标识所对应的内容。在边缘缓存装置接收到哈希标识时,从本地缓存内容中查找该哈希标识,以确认本地缓存内容中是否存储有内容请求消息中的内容标识所对应的内容。当所述边缘缓存装置存储有所述哈希标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。
确定边缘缓存装置存储有与内容标识对应的内容之后,边缘缓存装置向所述接入网设备发送所述内容标识对应的内容。另外,该边缘缓存装置还设置该内容请求消息的IP报文头中的TOS字段的一个bit为1,作为内容命中标识。边缘缓存装置将该携带有内容命中标识的内容请求消息转发给核心缓存装置。
核心缓存装置将携带有与该内容标识对应的内容的响应消息经由计费监听装置发送给缓存控制装置,其中该响应消息中还携带有所述内容命中标识。
计费监听装置接收到来自核心缓存装置的响应消息时,对该响应消息所携带的所述内容标识对应的内容进行监听和计费。
缓存控制装置在接收到响应消息中携带有内容命中标识时,表明边缘缓存装置已经将内容请求消息中内容标识对应的内容发送给接入网设备,因此,为避免接入网设备重复接收到内容请求消息中内容标识对应的内容,缓存控制装置根据该内容命中标识将所述响应消息中的内容丢弃。
若所述边缘缓存装置既未存储有内容请求消息中的内容标识也未存储有该内容标识对应的内容的哈希标识,则确定该边缘缓存装置中未存储有该内容标识对应的内容。边缘缓存装置设置该内容请求消息的IP报文头中的TOS字段的一个bit为0,作为内容未命中标识。边缘缓存装置向所述核心缓存装置发送所述内容请求消息。
核心缓存装置将携带有与所述内容标识对应的内容的响应消息经计费监听装置发送给缓存控制装置,这样,计费监听装置可以对该内容进行计费和监听。 所述响应消息中还携带所述内容未命中标识。
缓存控制装置根据响应消息中所携带的内容未命中标识,将响应消息中的与所述内容标识对应的内容发送给所述边缘缓存装置。该边缘缓存装置对该内容以及该内容的内容标识存储,还将该内容发送给所述接入网设备。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (12)

  1. 一种缓存内容命中方法,其特征在于,包括:
    边缘缓存装置接收来自接入网设备的内容请求消息,所述内容请求消息携带内容标识;
    所述边缘缓存装置从本地缓存内容中查找与所述内容标识对应的内容;
    当确定所述边缘缓存装置存储有与所述内容标识对应的内容时,向所述接入网设备发送与所述内容标识对应的内容;
    所述边缘缓存装置在所述内容请求消息中添加内容命中标识后转发给核心缓存装置;
    所述核心缓存装置将携带有与所述内容标识对应的内容的响应消息经由计费监听装置发送给缓存控制装置,所述响应消息中携带所述内容命中标识;
    所述缓存控制装置根据所述内容命中标识将所述响应消息中的内容丢弃。
  2. 如权利要求1所述的缓存内容命中方法,其特征在于,所述确定边缘缓存装置存储有与所述内容标识对应的内容包括:
    所述边缘缓存装置根据所述内容标识从本地缓存内容中查找与所述内容标识对应的内容;
    当所述边缘缓存装置存储有所述内容标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。
  3. 根据权利要求1所述的缓存内容命中方法,其特征在于,所述确定边缘缓存装置存储有与所述内容标识对应的内容包括:
    所述边缘缓存装置将所述内容请求消息转发给所述核心缓存装置;
    所述核心缓存装置根据所述内容标识获取与所述内容标识对应的内容;
    所述核心缓存装置计算所述内容的哈希(Hash)标识,将包括所述哈希标识的响应消息依次经由所述计费监听装置与所述缓存控制装置发送给所述边缘缓存装置;
    所述边缘缓存装置根据所述哈希标识从本地缓存内容中查找所述哈希标识对应的内容;
    当所述边缘缓存装置存储有所述哈希标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。
  4. 如权利要求1所述的缓存内容命中方法,其特征在于,所述方法还包括:
    当所述边缘缓存装置未存储与所述内容标识对应的内容时,所述边缘缓存 装置从核心缓存装置获取所述内容后将所述内容发送给所述接入网设备。
  5. 根据权利要求4所述的缓存内容命中方法,其特征在于,所述当所述边缘缓存装置未存储与所述内容标识对应的内容时,所述边缘缓存装置从核心缓存装置获取所述内容后将所述内容发送给所述接入网设备包括:
    当所述边缘缓存装置未存储与所述内容标识对应的内容时,所述边缘缓存装置在所述内容请求消息中添加内容未命中标识后转发给所述核心缓存装置;
    所述核心缓存装置将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置发送给所述缓存控制装置,所述响应消息中携带所述内容未命中标识;
    所述缓存控制装置根据所述内容未命中标识,将所述内容经所述边缘缓存装置发送给所述接入网设备。
  6. 如权利要求4所述的缓存内容命中方法,其特征在于,所述当所述边缘缓存装置未存储与所述内容标识对应的内容时,所述边缘缓存装置从核心缓存装置获取所述内容后将所述内容响应给所述接入网设备包括:
    当所述边缘缓存装置未存储与所述内容标识对应的内容时,所述边缘缓存装置将所述内容请求消息转发给所述核心缓存装置;
    所述核心缓存装置将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置发送给所述缓存控制装置;
    所述缓存控制装置将所述响应消息经由所述边缘缓存装置发送给所述接入网设备。
  7. 一种通信系统,其特征在于,包括:
    接入网设备、边缘缓存装置、缓存控制装置、计费监听装置和核心缓存装置;
    所述边缘缓存装置用于接收来自接入网设备的内容请求消息,所述内容请求消息携带内容标识;
    所述边缘缓存装置还用于从本地缓存内容中查找与所述内容标识对应的内容;
    所述边缘缓存装置还用于当确定所述边缘缓存装置存储有与所述内容标识对应的内容时,向所述接入网设备发送与所述内容标识对应的内容,以及在所述内容请求消息中添加内容命中标识后转发给核心缓存装置;
    所述核心缓存装置用于将携带有与所述内容标识对应的内容的响应消息经 由所述计费监听装置发送给所述缓存控制装置,所述响应消息中携带所述内容命中标识;
    所述缓存控制装置用于根据所述内容命中标识将所述响应消息中的内容丢弃。
  8. 根据权利要求7所述的通信系统,其特征在于,所述边缘缓存装置具体用于根据所述内容标识从本地缓存内容中查找与所述内容标识对应的内容,当所述边缘缓存装置存储有所述内容标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。
  9. 根据权利要求7所述的通信系统,其特征在于,
    所述边缘缓存装置还用于将所述内容请求消息转发给所述核心缓存装置;
    所述核心缓存装置还用于根据所述内容标识获取与所述内容标识对应的内容;
    所述核心缓存装置还用于计算所述内容的哈希(Hash)标识,将包括所述哈希标识的响应消息依次经由所述计费监听装置与所述缓存控制装置发送给所述边缘缓存装置;
    所述边缘缓存装置还用于根据所述哈希标识从本地缓存内容中查找所述哈希标识;
    所述边缘缓存装置还用于当所述边缘缓存装置存储有所述哈希标识时,确定所述边缘缓存装置存储有与所述内容标识对应的内容。
  10. 根据权利要求7所述的通信系统,其特征在于,所述边缘缓存装置还用于当所述边缘缓存装置未存储与所述内容标识对应的内容时,从核心缓存装置获取所述内容后将所述内容发送给所述接入网设备。
  11. 根据权利要求10所述的通信系统,其特征在于,
    所述边缘缓存装置具体用于当所述边缘缓存装置未存储与所述内容标识对应的内容时,在所述内容请求消息中添加内容未命中标识后转发给所述核心缓存装置;
    所述核心缓存装置还用于将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置发送给所述缓存控制装置,所述响应消息中携带所述内容未命中标识;
    所述缓存控制装置还用于根据所述内容未命中标识,将所述内容经所述边缘缓存装置发送给所述接入网设备。
  12. 根据权利要求10所述的通信系统,其特征在于,
    所述边缘缓存装置具体用于当所述边缘缓存装置未存储与所述内容标识对应的内容时,将所述内容请求消息转发给所述核心缓存装置;
    所述核心缓存装置具体用于将携带有与所述内容标识对应的内容的响应消息经由所述计费监听装置发送给所述缓存控制装置;
    所述缓存控制装置具体用于将所述响应消息经由所述边缘缓存装置发送给所述接入网设备。
PCT/CN2015/076774 2014-08-12 2015-04-16 一种缓存内容命中方法和通信系统 WO2016023384A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP15823485.6A EP3016356B1 (en) 2014-08-12 2015-04-16 Cache content hitting method and communication system
US15/430,055 US10306007B2 (en) 2014-08-12 2017-02-10 Cache content hit method and communications system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410394832.6A CN104168317B (zh) 2014-08-12 2014-08-12 缓存内容命中方法和通信系统
CN201410394832.6 2014-08-12

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/430,055 Continuation US10306007B2 (en) 2014-08-12 2017-02-10 Cache content hit method and communications system

Publications (1)

Publication Number Publication Date
WO2016023384A1 true WO2016023384A1 (zh) 2016-02-18

Family

ID=51911938

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076774 WO2016023384A1 (zh) 2014-08-12 2015-04-16 一种缓存内容命中方法和通信系统

Country Status (4)

Country Link
US (1) US10306007B2 (zh)
EP (1) EP3016356B1 (zh)
CN (1) CN104168317B (zh)
WO (1) WO2016023384A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418367A (zh) * 2019-06-14 2019-11-05 电子科技大学 一种5g前传网络混合边缘缓存低时延方法

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168317B (zh) 2014-08-12 2018-01-19 华为技术有限公司 缓存内容命中方法和通信系统
WO2016106608A1 (zh) * 2014-12-30 2016-07-07 华为技术有限公司 一种媒体资源传输设备及方法
WO2018090335A1 (zh) * 2016-11-18 2018-05-24 华为技术有限公司 一种缓存数据请求方法及相关设备
CN108696895B (zh) * 2017-04-07 2020-10-09 华为技术有限公司 资源获取方法、装置及系统
CN108984433B (zh) 2017-06-05 2023-11-03 华为技术有限公司 缓存数据控制方法及设备
CN110912769B (zh) * 2019-11-12 2021-08-10 中移(杭州)信息技术有限公司 Cdn缓存命中率统计方法、系统、网络设备及存储介质
US11451672B2 (en) * 2020-05-14 2022-09-20 Verizon Patent And Licensing Inc. Charging and policy interface for local breakout edge gateway
CN112822309B (zh) * 2021-04-19 2021-07-16 北京视界云天科技有限公司 域名解析方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616392A (zh) * 2009-06-26 2009-12-30 中兴通讯股份有限公司 一种增值业务提供系统和方法
US20130144994A1 (en) * 2010-08-16 2013-06-06 Zte Corporation Content Delivery Network and Method for Content Delivery
CN103166978A (zh) * 2011-12-08 2013-06-19 中兴通讯股份有限公司 数据获取方法及装置
CN104168317A (zh) * 2014-08-12 2014-11-26 华为技术有限公司 缓存内容命中方法和通信系统

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6553409B1 (en) * 1999-07-09 2003-04-22 Microsoft Corporation Background cache synchronization
US7900042B2 (en) * 2001-06-26 2011-03-01 Ncipher Corporation Limited Encrypted packet inspection
US8205035B2 (en) * 2009-06-22 2012-06-19 Citrix Systems, Inc. Systems and methods for integration between application firewall and caching
US9294895B2 (en) * 2010-10-22 2016-03-22 International Business Machines Corporation Caching at the wireless tower with remote charging services
KR101476068B1 (ko) * 2010-10-22 2014-12-30 인터내셔널 비지네스 머신즈 코포레이션 무선 접속망에서 원격 과금 서비스를 갖는 콘텐츠 캐싱
CN108156042B (zh) * 2011-04-12 2021-09-14 瑞典爱立信有限公司 提供与接入网络中缓存有关的信息到核心网的方法和装置
KR101330052B1 (ko) * 2012-06-01 2013-11-15 에스케이텔레콤 주식회사 적응형 컨텐츠 전송 방식을 지원하는 컨텐츠 캐싱 서비스 제공 방법 및 이를 위한 로컬 캐싱 장치
US8797905B2 (en) * 2012-08-09 2014-08-05 International Business Machines Corporation Lawful interception in a mobile data network with data offload at the basestation
US9137326B2 (en) * 2012-08-14 2015-09-15 Calix, Inc. Distributed cache system for optical networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616392A (zh) * 2009-06-26 2009-12-30 中兴通讯股份有限公司 一种增值业务提供系统和方法
US20130144994A1 (en) * 2010-08-16 2013-06-06 Zte Corporation Content Delivery Network and Method for Content Delivery
CN103166978A (zh) * 2011-12-08 2013-06-19 中兴通讯股份有限公司 数据获取方法及装置
CN104168317A (zh) * 2014-08-12 2014-11-26 华为技术有限公司 缓存内容命中方法和通信系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110418367A (zh) * 2019-06-14 2019-11-05 电子科技大学 一种5g前传网络混合边缘缓存低时延方法
CN110418367B (zh) * 2019-06-14 2021-05-14 电子科技大学 一种5g前传网络混合边缘缓存低时延方法

Also Published As

Publication number Publication date
EP3016356A1 (en) 2016-05-04
EP3016356B1 (en) 2018-11-14
CN104168317A (zh) 2014-11-26
US20170155734A1 (en) 2017-06-01
CN104168317B (zh) 2018-01-19
EP3016356A4 (en) 2016-10-19
US10306007B2 (en) 2019-05-28

Similar Documents

Publication Publication Date Title
WO2016023384A1 (zh) 一种缓存内容命中方法和通信系统
US9088612B2 (en) Systems and methods for providing link-performance information in socket-based communication devices
US10666759B2 (en) Communication method of node overhearing content in content centric network and node
US9883000B2 (en) Server-push service in heterogeneous network environment
US10182086B2 (en) Method and apparatus for transmitting streaming media data
JP6097411B2 (ja) データ送信方法、装置及びシステム
US10630530B2 (en) Cache method, cache edge server, cache core server, and cache system
WO2016082553A1 (zh) 一种移动网络内容分发的方法、装置及系统
US11122483B2 (en) Network standard switching method and apparatus, and device
WO2014183593A1 (zh) 一种服务公告消息的传输方法及设备
CN106686033A (zh) 一种缓存和服务内容的方法、装置和系统
US9544944B2 (en) Adaptive, personal localized cache control server
US10680922B2 (en) Communication control apparatus and communication control method
US20150341449A1 (en) Method for delivering content in communication network and apparatus therefor
WO2015085491A1 (zh) 一种流表的生成方法和装置
WO2014040279A1 (zh) 信息处理方法和负载均衡设备
US10321355B2 (en) Access node, mobility management network element, and paging message processing method
WO2016015441A1 (zh) 一种业务数据管理的方法、装置及系统
US20170238213A1 (en) Tcp connection establishment and handover
US9743322B2 (en) Method and apparatus for processing handover of terminal in mobile communication system
WO2018098761A1 (zh) 数据传输方法及设备
CN113692753B (zh) 网络装置和在网络装置中实现的搜索边缘服务的方法
WO2011110010A1 (zh) 内容发送方法、装置和通信系统
US20190095890A1 (en) Toll-free data management

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2015823485

Country of ref document: EP

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15823485

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE