(19)
(11) EP 3 070 888 A1

(12) EUROPEAN PATENT APPLICATION
published in accordance with Art. 153(4) EPC

(43) Date of publication:
21.09.2016 Bulletin 2016/38

(21) Application number: 13899226.8

(22) Date of filing: 09.12.2013
(51) International Patent Classification (IPC): 
H04L 12/70(2013.01)
(86) International application number:
PCT/CN2013/088891
(87) International publication number:
WO 2015/085467 (18.06.2015 Gazette 2015/24)
(84) Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR
Designated Extension States:
BA ME

(71) Applicant: Huawei Technologies Co., Ltd.
Longgang District Shenzhen, Guangdong 518129 (CN)

(72) Inventor:
  • WU, Wenfu
    Shenzhen Guangdong 518129 (CN)

(74) Representative: Epping - Hermann - Fischer 
Patentanwaltsgesellschaft mbH Schloßschmidstraße 5
80639 München
80639 München (DE)

   


(54) APPARATUS AND METHOD FOR CONTENT CACHE


(57) The present invention discloses an apparatus and method for content caching processing. A controller acquires content caching request information sent by a content server and identifier information of a service node having a content caching function, and constructs traffic forwarding policy information and traffic classification policy information according to the identifier information of the service node having a content caching function; and the controller sends the traffic classification policy information to a traffic classifier, and sends the traffic forwarding policy information to a switch, so as to perform a content caching operation. Therefore, diversified content can be cached to a service node, an Internet content response delay can be reduced, and user experience can be improved. In addition, a content caching service is opened up to an Internet content provider, so that a mobile operator can also charge the Internet content provider on such a basis.




Description

TECHNICAL FIELD



[0001] The present invention relates to the communications filed, and in particular, to an apparatus and a method for content caching.

BACKGROUND



[0002] In recent years, Internet applications grow at an unprecedented speed, and a mass of end user equipments (User Equipment, "UE" for short) send service requests, which therefore strains broadband resources. The service requests of the user equipments often cause a delay to a certain degree, and a slow response speed impairs user experience of the Internet applications. To resolve the foregoing problems, a researcher proposes a content caching technology. A mobile operator provides a medium between UE and an Internet content provider, so as to directly respond to a request of the user equipment as much as possible, reduce a response waiting time for the user equipment, and improve user experience. Generally, the mobile operator collects statistics about an amount of related content required by the UE, and caches, to a service node, related content that is in relatively high demand and that is on the Internet content provider. After the UE requests to access the related content, the service node may directly send the related content to the UE.

[0003] However, with diversification of user groups, content required by users becomes more complex and diversified, and different demands of current different user groups already cannot be satisfied by caching content to a service node only according to an amount of content in demand. How to cache diversified content to a service node is an urgent problem to resolve currently.

SUMMARY



[0004] Embodiments of the present invention provide an apparatus and method for content caching, which can resolve a content caching problem of diversified content.

[0005] According to a first aspect, an apparatus for content caching is provided, including: an acquiring module, configured to acquire content caching request information sent by a content server, and acquire identifier information of a service node having a content caching function according to the content caching request information; a processing module, configured to construct traffic forwarding policy information and traffic classification policy information according to the identifier information of the service node having a content caching function; and a sending module, configured to send the traffic classification policy information to a traffic classifier, so that the traffic classifier sends a content packet to a switch according to the traffic classification policy information; and send the traffic forwarding policy information to the switch, so that after receiving the content packet, the switch sends, according to the traffic forwarding policy information, the content packet to the service node having a content caching function to perform content caching.

[0006] With reference to the first aspect, in a first possible implementation manner, the processing module being configured to construct traffic forwarding policy information according to the identifier information of the service node having a content caching function includes: the processing module being configured to construct service chain forwarding table information that includes the identifier information of the service node having a content caching function; and the processing module being configured to construct the traffic forwarding policy information, where the traffic forwarding policy information includes the service chain forwarding table information.

[0007] With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the processing module is further configured to generate content caching processing information according to the content caching request information; and the service chain forwarding table information constructed by the processing module further includes the content caching processing information.

[0008] With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner, the content caching request information acquired by the acquiring module includes identifier information of the content server, or identifier information of the content server and a content identifier; the processing module is further configured to generate service traffic information according to the identifier information of the content server and address information of the service node having a content caching function; the traffic forwarding policy information constructed by the processing module includes the service chain forwarding table and the service traffic information, or the service chain forwarding table information, the service traffic information, and the content identifier; and a traffic classification policy constructed by the processing module includes the service traffic information, or the service traffic information and the content identifier.

[0009] With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the processing module is further configured to generate the service chain forwarding table identifier according to the service traffic information or the service traffic information and the content identifier; the traffic forwarding policy information constructed by the processing module includes the service chain forwarding table information and the service chain forwarding table identifier; and the traffic classification policy information constructed by the processing module includes the service traffic information and the service chain forwarding table identifier, or the service traffic information, the content identifier, and the service chain forwarding table identifier.

[0010] With reference to the first aspect, in a fifth possible implementation manner, the sending module is further configured to send the content caching request information to the service node having a content caching function, so that the service node constructs Hypertext Transfer Protocol HTTP acquiring information according to the content caching request information, and requests to acquire the content packet from the content server.

[0011] With reference to the first aspect, in a sixth possible implementation manner, the acquiring module being configured to acquire content caching request information sent by a content server specifically includes: the acquiring module is specifically configured to acquire the content caching request information directly sent by the content server; or acquire service chain information that is sent by the content server by using a service chain management system, where the service chain information includes the content caching request information.

[0012] According to a second aspect, another apparatus for content caching is provided, including: a receiving module, configured to receive a traffic classification policy sent by a controller, where the traffic classification policy information is constructed by the controller according to identifier information of a service node having a content caching function, and the receiving module is further configured to receive a content packet sent by a content server; and a processing module, configured to send, according to the traffic classification policy information, the content packet to a switch that is connected to the service node having a content caching function.

[0013] With reference to the second aspect, in a first possible implementation manner, the traffic classification policy information received by the receiving module includes service traffic information and a service chain forwarding table identifier, or includes service traffic information, a content identifier, and a service chain forwarding table identifier; and the processing module being configured to send, according to the traffic classification policy information, the content packet to a switch that is connected to the service node having a content caching function includes: the processing module being configured to acquire the service chain forwarding table identifier in the traffic classification policy information, encapsulate the service chain forwarding table identifier into a packet header of the content packet, and send the encapsulated content packet to the switch that is connected to the service node having a content caching function.

[0014] With reference to the second aspect, in a second possible implementation manner, the processing module is further configured to: before acquiring the service chain forwarding table identifier in the traffic classification policy information, acquire the service traffic information in the content packet and determine the traffic classification policy of the content packet according to the service traffic information; or the processing module is further configured to: before acquiring the service chain forwarding table identifier in the traffic classification policy information, acquire the service traffic information and the content identifier that are in the content packet, and determine the traffic classification policy information of the content packet according to the service traffic information and the content identifier.

[0015] According to a third aspect, an apparatus for content caching is provided, including: a receiving module, configured to receive traffic forwarding policy information sent by a controller, where the traffic forwarding policy information is constructed by the controller according to identifier information of a service node having a content caching function, and includes service chain forwarding table information, and the receiving module is further configured to receive a content packet sent by a traffic classifier; and a sending module, configured to send, according to the service chain forwarding table information in the traffic forwarding policy information, the content packet to the service node having a content caching function to perform content caching.

[0016] With reference to the third aspect, in a first possible implementation manner, the traffic forwarding policy information further includes a service chain forwarding table identifier; the content packet received by the receiving module includes the service chain forwarding table identifier that is encapsulated by the traffic classifier into a packet header of the content packet; and the apparatus further includes a processing module, where the processing module is configured to determine the traffic forwarding policy according to the service chain forwarding table identifier.

[0017] With reference to the third aspect, in a second possible implementation manner, the traffic forwarding policy information further includes service traffic information or service traffic information and a content identifier; and the apparatus further includes a processing module, where the processing module is configured to acquire the service traffic information in the content packet, and determine the traffic forwarding policy information of the content packet according to the service traffic information in the content packet; or
the processing module is configured to acquire the service traffic information and the content identifier that are in the content packet, and determine the traffic forwarding policy information of the content packet according to the service traffic information and the content identifier that are in the content packet.

[0018] According to a fourth aspect, another apparatus for content caching is provided, including: a construction module, configured to construct content caching request information; a sending module, configured to send the content caching request information to a controller to request to perform content caching; and a receiving module, configured to receive content packet request information to request to send a content packet, where the sending module is further configured to send the content packet to a traffic classifier, for content caching.

[0019] With reference to the fourth aspect, in a first possible implementation manner, the content caching request information constructed by the construction module includes identifier information of a content server, and is used to request to perform content caching for all content packets on the content server; or the content caching request information includes identifier information of a content server and a content identifier, and is used to request to perform content caching for a specific content packet on the content server.

[0020] With reference to the fourth aspect, in a second possible implementation manner, the sending module being configured to send the content caching request information specifically includes: the sending module being configured to directly send the content caching request information to the controller; or the sending module being configured to send the content caching request information to the controller by using a service chain management system.

[0021] With reference to the fourth aspect, in a third possible implementation manner, the receiving module being configured to receive content packet request information specifically includes: the receiving module being configured to receive HTTP acquiring information that is constructed by a service node having a content caching function, where source IP address information of the HTTP acquiring information is identifier information of the service node having a content caching function, and destination IP address information of the HTTP acquiring information is address information of the apparatus, and is used to request the content packet of a content server; and source IP address information of the content packet that is sent by the sending module to the traffic classifier is identifier information of the content server, and destination address information of the content packet is identifier information of the service node having a content caching function.

[0022] With reference to the fourth aspect, in a fourth possible implementation manner, the receiving module being configured to receive content packet request information specifically includes: the receiving module being configured to receive content caching response information sent by the controller or a service chain management system, where the content caching response information includes identifier information of a service node having a content caching function, and is used to request the content packet of a content server; and source IP address information of the content packet that is sent by the sending module to the traffic classifier is identifier information of the content server, and destination IP address information of the content packet is the identifier information of the service node having a content caching function.

[0023] According to a fifth aspect, a method for content caching is provided, including: receiving, by a controller, content caching request information sent by a content server; acquiring, by the controller according to the content caching request information, identifier information of a service node having a content caching function; constructing, by the controller, traffic forwarding policy information and traffic classification policy information according to the identifier information of the service node having a content caching function; sending, by the controller, the traffic classification policy information to a traffic classifier, so that the traffic classifier sends a content packet to a switch according to the traffic classification policy information; and sending, by the controller, the traffic forwarding policy information to the switch, so that after receiving the content packet, the switch sends, according to the traffic forwarding policy information, the content packet to the service node having a content caching function to perform content caching.

[0024] With reference to the fifth aspect, in a first possible implementation manner, the constructing, by the controller, traffic forwarding policy information according to the identifier information of the service node having a content caching function includes: constructing, by the controller, service chain forwarding table information that includes the identifier information of the service node having a content caching function; and constructing, by the controller, the traffic forwarding policy information including the service chain forwarding table information.

[0025] With reference to the first possible implementation manner of the fifth aspect, in a second possible implementation manner, before the constructing, by the controller, service chain forwarding table information, the method further includes: generating, by the controller, content caching processing information according to a content caching request, where the service chain forwarding table information constructed by the controller further includes the content caching processing information.

[0026] With reference to the first possible implementation manner of the fifth aspect, in a third possible implementation manner, the content caching request information includes identifier information of the content server, or identifier information of the content server and a content identifier; and before the constructing, by the controller, the traffic classification policy information and the traffic forwarding policy information including the service chain forwarding table information, the method further includes: generating, by the controller, service traffic information according to the identifier information of the content server and address information of the service node having a content caching function, where the traffic forwarding policy information constructed by the controller includes the service chain forwarding table and the service traffic information, or the service chain forwarding table information, the service traffic information, and the content identifier; and a traffic classification policy constructed by the controller includes the service traffic information, or the service traffic information and the content identifier.

[0027] With reference to the third possible implementation manner of the fifth aspect, in a fourth possible implementation manner, the method further includes: generating, by the controller, the service chain forwarding table identifier according to the service traffic information, or the service traffic chain information and the content identifier, where the traffic forwarding policy information constructed by the controller includes the service chain forwarding table information and the service chain forwarding table identifier; and the traffic classification policy information constructed by the controller includes the service traffic information and the service chain forwarding table identifier, or the service traffic information, the content identifier, and the service chain forwarding table identifier.

[0028] With reference to the fifth aspect, in a sixth possible implementation manner, the method further includes:

sending, by the controller, the content caching request information to the service node having a content caching function, so that the service node constructs HTTP acquiring information according to the content caching request information, and requests to acquire the content packet from the content server.



[0029] With reference to the fifth aspect, in a seventh possible implementation manner, the receiving, by a controller, content caching request information sent by a content server includes: receiving, by the controller, the content caching request information directly sent by the content server; or receiving the content caching request information that is sent by the content server by using a service chain management system.

[0030] According to a sixth aspect, another method for content caching is provided, including: receiving, by a traffic classifier, traffic classification policy information sent by a controller, where the traffic classification policy information is constructed by the controller according to identifier information of a service node having a content caching function; receiving, by the traffic classifier, a content packet sent by a content server; and sending, by the traffic classifier according to the traffic classification policy information, the content packet to a switch that is connected to the service node having a content caching function.

[0031] With reference to the sixth aspect, in a first possible implementation manner, the traffic classification policy information received by the traffic classifier includes service traffic information and a service chain forwarding table identifier, or includes service traffic information, a content identifier, and a service chain forwarding table identifier; and the sending, by the traffic classifier according to the traffic classification policy information, the content packet to a switch that is connected to the service node having a content caching function includes: acquiring, by the traffic classifier, the service chain forwarding table identifier in the traffic classification policy information; encapsulating, by the traffic classifier, the service chain forwarding table identifier into a packet header of the content packet; and sending, by the traffic classifier, the encapsulated content packet to the switch that is connected to the service node having a content caching function.

[0032] With reference to the first possible implementation manner of the sixth aspect, in a second possible implementation manner, before the acquiring, by the traffic classifier, the service chain forwarding table identifier in the traffic classification policy information, the method includes: acquiring, by the traffic classifier, the service traffic information in the content packet; and determining, by the traffic classifier, a traffic classification policy of the content packet according to the service traffic information; or acquiring, by the traffic classifier, the service traffic information and the content identifier that are in the content packet, and determining, by the traffic classifier, the traffic classification policy information of the content packet according to the service traffic information and the content identifier.

[0033] According to a seventh aspect, another method for content caching is provided, including: receiving, by a switch, traffic forwarding policy information sent by a controller, where the traffic classification policy information is constructed by the controller according to identifier information of a service node having a content caching function, and includes service chain forwarding table information; receiving, by the switch, a content packet sent by a traffic classifier; and sending, by the switch according to the service chain forwarding table information, the content packet to the service node having a content caching function to perform content caching.

[0034] With reference to the seventh aspect, in a first possible implementation manner, the traffic forwarding policy information further includes a service chain forwarding table identifier; the content packet received by the switch includes the service chain forwarding table identifier that is encapsulated by the traffic classifier into a packet header of the content packet; and the method further includes: determining, by the switch, the traffic forwarding policy according to the service chain forwarding table identifier.

[0035] With reference to the seventh aspect, in a second possible implementation manner, the traffic forwarding policy information further includes service traffic information or service traffic information and a content identifier; and the method further includes: acquiring, by the switch, the service traffic information in the content packet; and determining, by the switch, the traffic forwarding policy information of the content packet according to the service traffic information in the content packet; or acquiring, by the switch, the service traffic information and the content identifier that are in the content packet, and determining, by the switch, the traffic forwarding policy information of the content packet according to the service traffic information and the content identifier that are in the content packet.

[0036] According to an eighth aspect, another method for content caching is provided, including: constructing, by a content server, content caching request information; sending, by the content server, the content caching request information to a controller to request to perform content caching; receiving, by the content server, content packet request information to request to send a content packet; and sending, by the content server, the content packet to a traffic classifier, for content caching.

[0037] With reference to the eighth aspect, in a first possible implementation manner, the content caching request information constructed by the content server specifically includes identifier information of the content server, or identifier information of the content server and a content identifier.

[0038] With reference to the eighth aspect, in a second possible implementation manner, the sending, by the content server, the content caching request information to a controller includes: directly sending, by the content server, the content caching request information to the controller; or sending, by the content server, the content caching request information to the controller by using a service chain management system.

[0039] With reference to the eighth aspect, in a third possible implementation manner, the receiving, by the content server, content packet request information includes: receiving, by the content server, HTTP acquiring information that is constructed by a service node having a content caching function, where source IP address information of the HTTP acquiring information is identifier information of the service node having a content caching function, and destination IP address information of the HTTP acquiring information is address information of the apparatus, and is used to request the content packet from the content server; and source IP address information of the content packet that is sent by the content server to the traffic classifier is identifier information of the content server, and destination address information of the content packet is the identifier information of the service node having a content caching function.

[0040] With reference to the eighth aspect, in a fourth possible implementation manner, the receiving, by the content server, content packet request information includes: receiving, by the content server, content caching response information sent by the controller or a service chain management system, where source IP address information of the content caching response information is identifier information of a service node having a content caching function, and destination IP address information of the content caching response information is address information of the apparatus, and is used to request the content packet from the content server; and source IP address information of the content packet that is sent by the content server to the traffic classifier is identifier information of the content server, and destination IP address information of the content packet is the identifier information of the service node having a content caching function.

[0041] Based on the foregoing technical solutions, in the apparatus and method for content caching that are provided in the embodiments of the present invention, content caching request information sent by a content server is received, a traffic forwarding policy and a traffic classification policy are constructed, and a content packet on the content server is cached to a service node having a content caching function, so that diversified content can be cached to a service node, an Internet content response delay can be reduced, and user experience can be improved.

BRIEF DESCRIPTION OF DRAWINGS



[0042] To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly describes the accompanying drawings required for describing the embodiments of the present invention or the prior art. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.

FIG. 1 shows a schematic diagram of a network architecture on which an embodiment of the present invention is based;

FIG. 2 shows a schematic block diagram of an apparatus for content caching according to an embodiment of the present invention;

FIG. 3 shows a schematic block diagram of another apparatus for content caching according to an embodiment of the present invention;

FIG. 4 shows a schematic block diagram of another apparatus for content caching according to an embodiment of the present invention;

FIG. 5 shows a schematic block diagram of another apparatus for content caching according to an embodiment of the present invention;

FIG. 6 shows a schematic flowchart of a method for content caching according to an embodiment of the present invention;

FIG. 7 shows a schematic flowchart of another method for content caching according to an embodiment of the present invention;

FIG. 8 shows a schematic flowchart of another method for content caching according to an embodiment of the present invention;

FIG. 9 shows a schematic flowchart of another method for content caching according to an embodiment of the present invention;

FIG. 10 shows a signaling interworking diagram of a method for content caching according to an embodiment of the present invention;

FIG. 11 shows a signaling interworking diagram of another method for content caching according to an embodiment of the present invention;

FIG. 12 shows a signaling interworking diagram of another method for content caching according to an embodiment of the present invention; and

FIG. 13 shows a signaling interworking diagram of another method for content caching according to an embodiment of the present invention.


DESCRIPTION OF EMBODIMENTS



[0043] The following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are a part rather than all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0044] It should be understood that, the technical solutions in the embodiments of the present invention may be applied to various communications systems, such as the Global System for Mobile Communications (Global System of Mobile communication, "GSM" for short), a Code Division Multiple Access (Code Division Multiple Access, "CDMA" for short) system, a Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, "WCDMA" for short) system, a general packet radio service (General Packet Radio Service, "GPRS" for short), a Long Term Evolution (Long Term Evolution, "LTE" for short) system, an LTE frequency division duplex (Frequency Division Duplex, "FDD" for short) system, an LTE time division duplex (Time Division Duplex, "TDD" for short), the Universal Mobile Telecommunications System (Universal Mobile Telecommunication System, "UMTS" for short), and a Worldwide Interoperability for Microwave Access (Worldwide Interoperability for Microwave Access, "WiMAX" for short) communications system.

[0045] FIG. 1 shows a schematic diagram of a network architecture on which an embodiments of the present invention is based. It should be understood that the network architecture shown in FIG. 1 is an application architecture for this embodiment of the present invention, but this embodiment of the present invention is not limited thereto.

[0046] FIG. 1 shows the schematic diagram of the network architecture including a content server, a traffic classifier, a switch, a policy and charging rules function (Policy and Charging Rule Function, "PCRF" for short) entity, a controller, and a service node. The controller is mainly configured to control service chain processing of a service flow by constructing a policy. The traffic classifier is a logical network element, which may be integrated into a gateway device, or may be an independent device, and is mainly used to detect a content packet. The switch is mainly configured to perform routing processing on a content packet. The content server is a server at which a content resource of an Internet content provider is located. The service node is mainly used to perform service processing on a content packet, and a same service node may have multiple functions such as content caching and video optimization, which are not limited in the present invention.

[0047] FIG. 2 shows a schematic block diagram of an apparatus for content caching according to an embodiment of the present invention. The apparatus for content caching may be a controller, which is not limited in the present invention.

[0048] As shown in FIG. 2, the apparatus 200 for content caching provided in this embodiment of the present invention includes:

an acquiring module 201, configured to acquire content caching request information sent by a content server, and acquire identifier information of a service node having a content caching function according to the content caching request information, where

the identifier information of the service node may include address information of the service node; for other embodiments of the present invention, refer to this embodiment of the present invention, and details are not described herein;

a processing module 202, configured to construct traffic forwarding policy information and traffic classification policy information according to the identifier information of the service node having a content caching function, where

the processing module 202 is specifically configured to construct service chain forwarding table information that includes the identifier information of the service node having a content caching function, and is configured to construct the traffic forwarding policy information, where the traffic forwarding policy information includes the service chain forwarding table information, and the service chain forwarding table information may be used to indicate, after a switch receives a content packet, a next destination of the content packet to the switch; and

a sending module 203, configured to send the traffic classification policy information to a traffic classifier, so that the traffic classifier sends the content packet to the switch according to the traffic classification policy information; and send the traffic forwarding policy information to the switch, so that after receiving the content packet, the switch sends, according to the traffic forwarding policy information, the content packet to the service node having a content caching function to perform content caching.



[0049] Therefore, based on the apparatus for content caching provided in this embodiment of the present invention, content caching is performed for related content according to a content request of a content provider, so that diversified content can be cached to a service node, thereby reducing a content response delay and improving user experience.

[0050] Further, with the rapid development of Internet applications, Internet content providers, for example, some online video content providers such as YouTube and Youku, expect to use a content caching technology to reduce a service response delay, thereby improving user experience and attracting more user groups. A mobile operator opens up a content caching service to an Internet content provider, and may charge the content provider on such a basis, thereby increasing an income of the mobile operator. Therefore, based on the technical solution provided in this embodiment of the present invention, a problem of how to open up the content caching service to the content provider is resolved, so that the content provider can send a content caching request to request to perform a content caching service, and the mobile operator can open up the content caching service to the Internet content provider and may charge the content provider on such a basis, thereby increasing an income of the mobile operator.

[0051] In another embodiment of the present invention, the processing module 202 is specifically configured to construct the service chain forwarding table information that includes the identifier information of the service node having a content caching function; in addition, optionally, the processing module 202 is further configured to generate content caching processing information according to the content caching request information; and the service chain forwarding table information constructed by the processing module 202 further includes the content caching processing information. An objective of generating the content caching processing information by the processing module 202 is that when the service node having a content caching processing function further includes another function, for example, video optimization, when sending the content packet to the service node according to the service chain forwarding table information, the switch sends the content packet to the service node to perform content caching.

[0052] Specifically, the content caching request information acquired by the acquiring module 201 includes identifier information of the content server, or identifier information of the content server and a content identifier. When the content server initiates a content caching request, and when content for which content caching is requested is entire content on the content server, the content caching request information includes the identifier information of the content server, where the identifier information of the content server may be address information, a fully qualified domain name (Fully Qualified Domain Name), or the like of the content server, and for the identifier information of the content server in other embodiments of the present invention, refer to the identifier information of the content server in this embodiment of the present invention. When content for which the content server initiates the content caching request is specific content on the content server, for example, a video, the content of the content caching request further includes the content identifier, where the content identifier is used to identify the specific content on the content server, and may be a uniform resource locator (Uniform Resource Locator, "URL" for short) or a uniform resource identifier (Uniform Resource Identifier, "URI" for short). That is, the content server may request diversified and different content to be cached. The processing module 202 is further configured to generate service traffic information according to the identifier information of the content server and the address information of the service node having a content caching function; where the traffic forwarding policy information constructed by the processing module 202 includes the service chain forwarding table and the service traffic information, or the service chain forwarding table information, the service traffic information, and the content identifier; and a traffic classification policy constructed by the processing module 202 includes the service chain forwarding table and the service traffic information, or the service chain forwarding table information, the service traffic information, and the content identifier. When the content server initiates a content caching request, and when content for which content caching is requested is the entire content on the content server, the content caching request information includes the identifier information of the content server. When content for which the content server initiates the content caching request is specific content on the content server, for example, a video, the content of the content caching request further includes the content identifier, where the content identifier is used to identify the specific content on the content server, and may be a URL or a URI.

[0053] In still another embodiment of the present invention, the processing module 202 is configured to construct the service chain forwarding table information that includes the identifier information of the service node having a content caching function, and is configured to generate the service traffic information according to the identifier information of the content server and the address information of the service node having a content caching function. In addition, the processing module 202 is further configured to generate the service chain forwarding table identifier according to the service traffic information or the service traffic information and the content identifier, where the traffic forwarding policy information constructed by the processing module 202 includes the service chain forwarding table information and the service chain forwarding table identifier; and the traffic classification policy information constructed by the processing module 202 includes the service chain forwarding table, the service traffic information, and the service chain forwarding table identifier, or the service chain forwarding table information, the service traffic information, the content identifier, and the service chain forwarding table identifier.

[0054] Optionally, the sending module 203 is further configured to send the content caching request information to the service node having a content caching function, so that the service node constructs Hypertext Transfer Protocol (Hypertext transfer protocol, "HTTP" for short) acquiring information according to the content caching request information, and requests to acquire the content packet from the content server. The service node may construct the HTTP acquiring information according to the identifier information of the content server and the content identifier that are in the content caching request information, where the HTTP acquiring information includes the content identifier, a source IP address of the HTTP acquiring information is the identifier information of the service node having a content caching function, and a destination IP address of the HTTP acquiring information is the identifier information of the content server. The service node sends the HTTP acquiring information to the content server, and the content server sends the content packet of the content identifier to the traffic classifier.

[0055] That an acquiring module 201 is configured to acquire content caching request information sent by a content server, and acquire identifier information of a service node having a content caching function specifically includes: the acquiring module 201 is specifically configured to acquire the content caching request information directly sent by the content server; or acquire service chain information that is sent by the content server by using a service chain management system, where the service chain information includes the content caching request information. The content server may directly send the content caching request information to a controller, or send the content caching request information to the service chain management system, and the service chain management system generates the service chain information according to the content caching request information, where the service chain information includes the content caching request information and content caching processing information. In actual deployment, the service chain management system may be implemented in the controller, or may be implemented in a network element with an open-up capability, or may be implemented by means of independent deployment, which is not limited in the present invention, and a name of the service chain management system is not limited either.

[0056] FIG. 3 shows a schematic block diagram of another apparatus for content caching according to an embodiment of the present invention. The apparatus may be a traffic classifier, which is not limited in this embodiment of the present invention. The apparatus provided in this embodiment of the present invention may be used with the apparatus shown in FIG. 2.

[0057] As shown in FIG. 3, the apparatus 300 for content caching provided in this embodiment of the present invention includes:

a receiving module 301, configured to receive a traffic classification policy sent by a controller, where

the traffic classification policy information is constructed by the controller according to identifier information of a service node having a content caching function, and

the receiving module 301 is further configured to receive a content packet sent by a content server; and

a processing module 302, configured to send, according to the traffic classification policy information, the content packet to a switch that is connected to the service node having a content caching function.



[0058] In S302, the processing module 302 is configured to send, according to the traffic classification policy information, the user packet to the switch that is connected to the service node having a content caching function, so that the switch sends the user data packet to the service node having a content caching function according to traffic forwarding policy information that is constructed by the controller according to the identifier information of the service node having a content caching function.

[0059] The traffic classification policy information may include service traffic information and a service chain forwarding table identifier, or include service traffic information, a content identifier, and a service chain forwarding table identifier; and that a processing module 302 is configured to send, according to the traffic classification policy information, the content packet to a switch that is connected to the service node having a content caching function includes: the processing module 302 is configured to acquire the service chain forwarding table identifier in the traffic classification policy information, encapsulate the service chain forwarding table identifier into a packet header of the content packet, and send the encapsulated content packet to the switch that is connected to the service node having a content caching function.

[0060] Further, the processing module 302 is further configured to: before acquiring the service chain forwarding table identifier in the traffic classification policy information, acquire the service traffic information in the content packet and determine the traffic classification policy of the content packet according to the service traffic information; or the processing module 302 is further configured to: before acquiring the service chain forwarding table identifier in the traffic classification policy information, acquire the service traffic information and the content identifier that are in the content packet, and determine the traffic classification policy information of the content packet according to the service traffic information and the content identifier.

[0061] Therefore, based on the apparatus for content caching provided in this embodiment of the present invention, a content packet may be sent, according to traffic forwarding policy information that is sent by a controller and that is generated by the controller according to identifier information of a service node having a content caching function, to a switch that is connected to the service node having a content caching function, so that the content packet can be sent by the switch to the service node having a content caching function, ensuring that content caching processing for a content packet sent by a content server can be performed. Therefore, a problem of caching, to the service node, diversified content for which a content server requests to perform content caching is resolved, a response delay of related content is reduced, and user experience is improved.

[0062] FIG. 4 shows a schematic block diagram of another apparatus for content caching according to an embodiment of the present invention. The apparatus may be a switch, which is not limited in this embodiment of the present invention. The apparatus provided in this embodiment of the present invention may be used with the apparatuses shown in FIG. 2 and FIG. 3.

[0063] As shown in FIG. 4, another apparatus 400 for content caching provided in this embodiment of the present invention includes:

a receiving module 401, configured to receive traffic forwarding policy information sent by a controller, where

the traffic forwarding policy information is constructed by the controller according to identifier information of a service node having a content caching function, and includes service chain forwarding table information,

the receiving module 401 is further configured to receive a content packet sent by a traffic classifier, and

the traffic classifier sends the user data packet to a switch according to traffic classification policy information sent by the controller, where the traffic classification policy information is constructed by the controller according to the identifier information of the service node having a content caching function; and

a sending module 402, configured to send, according to the service chain forwarding table information in the traffic forwarding policy information, the content packet to the service node having a content caching function to perform content caching.



[0064] In another embodiment of the present invention, the traffic forwarding policy information not only includes the service chain forwarding table information, but also includes a service chain forwarding table identifier. Before this, the traffic classifier encapsulates the service chain forwarding table identifier in the traffic classification policy information into the content packet, and sends the encapsulated content packet to the apparatus. A processing module in the apparatus is configured to determine the traffic forwarding policy information of the content packet according to the service chain forwarding table identifier in the content packet. The sending module 402 in the apparatus is configured to send, according to the service chain forwarding table information in the traffic forwarding policy information, the content packet to the service node having a content caching function to perform content caching. In this case, the apparatus processes a case in which the traffic forwarding policy information includes the service chain forwarding table identifier.

[0065] In still another embodiment of the present invention, the traffic forwarding policy information not only includes the service chain forwarding table information, but also includes service traffic information or service traffic information and a content identifier. The apparatus includes a processing module, where the processing module is configured to acquire the service traffic information in the content packet, and determine the traffic forwarding policy information of the content packet according to the service traffic information in the content packet; or the processing module is configured to acquire the service traffic information and the content identifier that are in the content packet, and determine the traffic forwarding policy information of the content packet according to the service traffic information and the content identifier that are in the content packet.

[0066] Therefore, based on the apparatus for content caching provided in this embodiment of the present invention, the apparatus receives traffic forwarding policy information that is sent by a controller and that is constructed according to identifier information of a service node having a content caching function, and sends, according to the traffic forwarding policy information, a content packet to the service node having a content caching function to perform content caching, implementing content caching for a content packet sent by a content server. Therefore, a problem of caching, to the service node, diversified content requested by the content server is resolved, a response delay of related content is reduced, and user experience is improved. In addition, a content caching service is opened up to an Internet content provider, so that a mobile operator may also charge the content provider based on the content caching service opened up to the content provider, thereby increasing an income of the mobile operator.

[0067] FIG. 5 shows a schematic block diagram of another apparatus for content caching according to an embodiment of the present invention. The apparatus provided in this embodiment of the present invention may be a content server, but the present invention is not limited thereto. The apparatus provided in this embodiment of the present invention may be used with the apparatus provided in FIG. 2.

[0068] As shown in FIG. 5, another apparatus 500 for content caching provided in this embodiment of the present invention includes:

a construction module 501, configured to construct content caching request information;

a sending module 502, configured to send the content caching request information to a controller to request to perform content caching; and

a receiving module 503, configured to receive content packet request information to request to send a content packet, where

the sending module 502 is further configured to send the content packet to a traffic classifier, so that the traffic classifier sends, according to traffic classification policy information that is sent by the controller and that is constructed according to identifier information of a service node having a content caching function, the content packet to a switch that is connected to the service node having a content caching function.



[0069] The content caching request information includes identifier information of a content server, and is used to request to perform content caching for all content packets on the content server; or the content caching request information includes identifier information of a content server and a content identifier, and is used to request to perform content caching for a specific content packet on the content server. Based on this, an Internet content provider may request content caching to be performed for diversified and different content packets.

[0070] That a sending module 502 is configured to send the content caching request information specifically includes: the sending module 502 is configured to directly send the content caching request information to the controller; or the sending module 502 is configured to send the content caching request information to the controller by using a service chain management system.

[0071] That a receiving module 503 is configured to receive content packet request information specifically includes: the receiving module 503 is configured to receive HTTP acquiring information that is constructed by the service node having a content caching function, where source IP address information of the HTTP acquiring information is the identifier information of the service node having a content caching function, and destination IP address information of the HTTP acquiring information is address information of the apparatus, and is used to request the content packet of a content server; and the HTTP acquiring information is constructed by the service node having a content caching function, so that the service node sends the HTTP acquiring information to the content server to request the content server to send the content packet. Source IP address information of the content packet that is sent by the sending module 502 to the traffic classifier is address information of the content server, and destination address information of the content packet is the identifier information of the service node having a content caching function.

[0072] Alternatively, that a receiving module 503 is configured to receive content packet request information specifically includes: the receiving module 503 is configured to receive content caching response information sent by the controller or a service chain management system, where source IP address information of the content caching response information is the identifier information of the service node having a content caching function, and destination IP address information of the content caching response information is address information of the apparatus, and is used to request the content packet from the content server; and source IP address information of the content packet that is sent by the sending module 502 to the traffic classifier is address information of the content server, and destination IP address information of the content packet is the identifier information of the service node having a content caching function.

[0073] Therefore, based on the apparatus for content caching provided in this embodiment of the present invention, content caching request information is sent to the controller to request to perform content caching, and a related content packet is sent to the traffic classifier for a content caching operation, so that the content server can initiate content caching request information to request to perform content caching. Therefore, a problem of caching, to the service node, diversified content requested by a content server is resolved, a response delay of related content is reduced, user experience is improved, and a problem of opening up a content caching service to a content provider is resolved.

[0074] A person skilled in the art should understand that illustrative logical blocks listed in the apparatuses that are provided in the embodiments of the present invention and that are shown in FIG. 2, FIG. 3, FIG. 4, and FIG. 5 may be implemented by electronic hardware, computer software, or a combination thereof. To clearly present interchangeability (interchangeability) between hardware and software, functions of the illustrative logical blocks are already generally described by using the illustrative components (illustrative components) and steps. Whether such functions are implemented by hardware or software depends on a particular application and a design requirement of an entire system. The person skilled in the art may implement the function of each particular application by using various methods, but it should not be considered that the implementation goes beyond the protection scope of the present invention. The illustrative logical blocks, modules, and circuits in the apparatuses that are provided in the embodiments of the present invention and that are shown in FIG. 2, FIG. 3, FIG. 4, and FIG. 5 may be implemented or may operate the described functions by using design of a general purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or another programmable logical device, discrete gate or transistor logical device, discrete hardware component, or any combination thereof. The general purpose processor may be a microprocessor. Optionally, the general purpose processor may also be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented by using a combination of computing apparatuses, for example, a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.

[0075] Further, a system for content caching is provided in another embodiment of the present invention. The system includes the apparatus 200 shown in FIG. 2, the apparatus 300 shown in FIG. 3, the apparatus 400 shown in FIG. 4, and the apparatus 500 shown in FIG. 5, where the apparatus 200 may be a controller, the apparatus 300 may be a traffic classifier, the apparatus 400 may be a switch, and the apparatus 500 may be a content server. Functions of the apparatuses in the system in this embodiment of the present invention may be implemented by using the apparatus 200 shown in FIG. 2, the apparatus 300 shown in FIG. 3, the apparatus 400 shown in FIG. 4, and the apparatus 500 shown in FIG. 5.

[0076] FIG. 6 shows a schematic flowchart of a method for content caching according to an embodiment of the present invention. The schematic flowchart of the method for content caching may be executed by a controller, but the present invention is not limited thereto.

[0077] As shown in FIG. 6, the method for content caching provided in this embodiment of the present invention includes the following steps:

[0078] S601: A controller receives content caching request information sent by a content server.

[0079] S602: The controller acquires identifier information of a service node having a content caching function according to the content caching request information.

[0080] In step S601, the controller receives the content caching request information, and according to the content caching request information, the controller is triggered to acquire the identifier information of the service node having a content caching function.

[0081] S603: The controller constructs traffic forwarding policy information and traffic classification policy information according to the identifier information of the service node having a content caching function.

[0082] Step S603 specifically includes: constructing, by the controller, service chain forwarding table information that includes the identifier information of the service node having a content caching function; and constructing, by the controller, the traffic forwarding policy information that includes the service chain forwarding table information.

[0083] S604: The controller sends the traffic classification policy information to a traffic classifier, so that the traffic classifier sends a content packet to a switch according to the traffic classification policy information.

[0084] S605: The controller sends the traffic forwarding policy information to the switch, so that after receiving the content packet, the switch sends, according to the traffic forwarding policy information, the content packet to the service node having a content caching function to perform content caching.

[0085] Therefore, based on the apparatus for content caching provided in this embodiment of the present invention, the controller acquires content caching request information provided by a content server and identifier information of a service node having a content caching function, constructs a traffic forwarding policy and a traffic classification policy, sends the traffic forwarding policy to a switch, and sends the traffic classification policy to a traffic classifier, so that when a content packet is sent to the traffic classifier, the traffic classifier may send the content packet to the switch according to the traffic classification policy; and the switch may send, according to the traffic forwarding policy, the content packet to the service node having a content caching function to perform content caching. Therefore, a problem of performing content caching for diversified content is resolved, and further, a problem of how to open up a content caching service to a content provider is resolved, ensuring that the content provider performs content caching by using the content caching service.

[0086] In another embodiment of the present invention, the controller constructs service chain forwarding table information that includes the identifier information of the service node having a content caching function; in addition, the controller further generates content caching processing information according to a content caching request, where the service chain forwarding table information constructed by the controller further includes the content caching processing information. An objective of generating the content caching processing information by the controller is that when the service node having a content caching processing function further includes another function, for example, video optimization, when sending the content packet to the service node according to the service chain forwarding table information, the switch sends the content packet to the service node to perform content caching.

[0087] In step S601, the content caching request information acquired by the controller includes identifier information of the content server, or identifier information of the content server and a content identifier; and before the constructing, by the controller, the traffic classification policy information and the traffic forwarding policy information including the service chain forwarding table information, the method further includes: generating, by the controller, service traffic information according to the identifier information of the content server and the identifier information of the service node having a content caching function, where in this case, the traffic forwarding policy information constructed by the controller includes the service chain forwarding table and the service traffic information, or the service chain forwarding table information, the service traffic information, and the content identifier; and a traffic classification policy constructed by the controller includes the service traffic information, or the service traffic information and the content identifier.

[0088] In still another embodiment of the present invention, the controller constructs service chain forwarding table information that includes the identifier information of the service node having a content caching function; in addition, the controller further generates the service chain forwarding table identifier according to the service traffic information, or the service traffic chain information and the content identifier, where the traffic forwarding policy information constructed by the controller includes the service chain forwarding table information and the service chain forwarding table identifier; and the traffic classification policy information constructed by the controller includes the service chain forwarding table, the service traffic information, and the service chain forwarding table identifier, or the service traffic information, the content identifier, and the service chain forwarding table identifier.

[0089] Optionally, the controller sends the content caching request information to the service node having a content caching function, so that the service node constructs HTTP acquiring information according to the content caching request information, and requests to acquire the content packet from the content server.

[0090] In step S601, the receiving, by a controller, content caching request information sent by a content server includes: receiving, by the controller, the content caching request information directly sent by the content server; or receiving the content caching request information that is sent by the content server by using a service chain management system.

[0091] FIG. 7 shows a schematic flowchart of another method for content caching according to an embodiment of the present invention. The method provided in this embodiment of the present invention may be performed by a traffic classifier, but the present invention is not limited thereto. For the method provided in this embodiment of the present invention, refer to the method for content caching shown in FIG. 6, and vice versa.

[0092] As shown in FIG. 7, the another method for content caching provided in this embodiment of the present invention includes the following steps:

[0093] S701: A traffic classifier receives traffic classification policy information sent by a controller.

[0094] The traffic classification policy information is constructed by the controller according to identifier information of a service node having a content caching function.

[0095] S702: The traffic classifier receives a content packet sent by a content server.

[0096] S703: The traffic classifier sends, according to the traffic classification policy information, the content packet to a switch that is connected to the service node having a content caching function.

[0097] After step S703, the switch may send the user data packet to the service node having a content caching function according to traffic forwarding policy information that is constructed by the controller according to the identifier information of the service node having a content caching function.

[0098] In step S701, the traffic classification policy information received by the traffic classifier includes service traffic information and a service chain forwarding table identifier, or includes service traffic information, a content identifier, and a service chain forwarding table identifier; and step S703 specifically includes: acquiring, by the traffic classifier, the service chain forwarding table identifier in the traffic classification policy information; encapsulating, by the traffic classifier, the service chain forwarding table identifier into a packet header of the content packet; and sending, by the traffic classifier, the encapsulated content packet to the switch that is connected to the service node having a content caching function.

[0099] Further, before the acquiring, by the traffic classifier, the service chain forwarding table identifier in the traffic classification policy information, the method includes: acquiring, by the traffic classifier, the service traffic information in the content packet; and determining, by the traffic classifier, the traffic classification policy of the content packet according to the service traffic information; or acquiring, by the traffic classifier, the service traffic information and the content identifier that are in the content packet, and determining, by the traffic classifier, the traffic classification policy information of the content packet according to the service traffic information and the content identifier.

[0100] Therefore, based on the method for content caching provided in this embodiment of the present invention, a traffic classifier may send, according to traffic forwarding policy information that is sent by a controller and that is generated by the controller according to identifier information of a service node having a content caching function, a content packet to a switch that is connected to the service node having a content caching function, so that the content packet may be sent by the switch to the service node having a content caching function, ensuring that content caching processing can be performed for a content packet sent by a content server. Therefore, a problem of how to provide a content caching service to a content provider is resolved.

[0101] FIG. 8 shows a schematic flowchart of another method for content caching according to an embodiment of the present invention. The method provided in this embodiment of the present invention may be performed by a switch, but the present invention is not limited thereto. For the other method for content caching provided in this embodiment of the present invention, refer to the method embodiments shown in FIG. 6 and FIG. 7, and vice versa.

[0102] As shown in FIG. 8, the schematic flowchart of the another method for content caching provided in this embodiment of the present invention includes the following steps:

[0103] S801: A switch receives traffic forwarding policy information sent by a controller.

[0104] The traffic classification policy information is constructed by the controller according to identifier information of a service node having a content caching function.

[0105] S802: The switch receives a content packet sent by a traffic classifier.

[0106] The traffic classifier sends the content packet to the switch according to traffic classification policy information, where the traffic classification policy information is constructed by the controller according to the identifier information of the service node having a content caching function.

[0107] S803: The switch sends, according to the service chain forwarding table information, the content packet to the service node having a content caching function to perform content caching.

[0108] In another embodiment of the present invention, in the traffic forwarding policy information, the traffic forwarding policy information not only includes the service chain forwarding table information, but also includes a service chain forwarding table identifier. Before this, the traffic classifier encapsulates the service chain forwarding table identifier in the traffic classification policy information into the content packet, and sends the encapsulated content packet to the switch; and the switch determines the traffic forwarding policy according to the service chain forwarding table identifier.

[0109] In still another embodiment of the present invention, the traffic forwarding policy information not only includes the service chain forwarding table information, but also includes service traffic information or service traffic information and a content identifier; and the method further includes: acquiring, by the switch, the service traffic information in the content packet; and determining, by the switch, the traffic forwarding policy information of the content packet according to the service traffic information in the content packet; or acquiring, by the switch, the service traffic information and the content identifier that are in the content packet, and determining, by the switch, the traffic forwarding policy information of the content packet according to the service traffic information and the content identifier that are in the content packet.

[0110] Therefore, based on the method for content caching provided in this embodiment of the present invention, the switch receives traffic forwarding policy information that is sent by a controller and that is constructed according to identifier information of a service node having a content caching function, and sends, according to the traffic forwarding policy information, a content packet to the service node having a content caching function to perform content caching, which implements content caching for a content packet sent by a content server.

[0111] FIG. 9 shows a schematic flowchart of another method for content caching according to an embodiment of the present invention. The method provided in this embodiment of the present invention may be performed by a content server, but the present invention is not limited thereto. For the method provided in this embodiment of the present invention, refer to the methods shown in FIG. 6 and FIG. 7, and vice versa.

[0112] As shown in FIG. 9, the another method for content caching provided in this embodiment of the present invention includes the following steps:

[0113] S901: A content server constructs content caching request information.

[0114] S902: The content server sends the content caching request information to a controller to request to perform content caching.

[0115] S903: The content server receives content packet request information to request to send a content packet.

[0116] S904: The content server sends the content packet to a traffic classifier, so that the traffic classifier sends, according to traffic classification policy information that is sent by the controller and that is constructed according to identifier information of a service node having a content caching function, the content packet to a switch that is connected to the service node having a content caching function.

[0117] The content caching request information includes identifier information of the content server, and is used to request to perform content caching for all content packets on the content server; or the content caching request information includes identifier information of a content server and a content identifier, and is used to request to perform content caching for a specific content packet on the content server. That is, the content server may request content caching to be performed for diversified and different content.

[0118] In step S902, the sending, by the content server, the content caching request information to a controller specifically includes: directly sending, by the content server, the content caching request information to the controller; or sending, by the content server, the content caching request information to the controller by using a service chain management system.

[0119] In step S903, the receiving, by the content server, content packet request information specifically includes: receiving, by the content server, HTTP acquiring information that is constructed by the service node having a content caching function, where source Internet Protocol IP address information of the HTTP acquiring information is the identifier information of the service node having a content caching function, and destination IP address information of the HTTP acquiring information is address information of the apparatus, and is used to request the content packet from the content server; and the HTTP acquiring information is constructed by the service node having a content caching function, so that the service node sends the HTTP acquiring information to the content server to request the content server to send the content packet. In step S904, source IP address information of the content packet sent by the content server is the identifier information of the content server, and destination address information of the content packet is the identifier information of the service node having a content caching function.

[0120] Alternatively, in step S903, the receiving, by the content server, content packet request information specifically includes: receiving, by the content server, content caching response information sent by the controller or a service chain management system, where source IP address information of the content caching response information is the identifier information of the service node having a content caching function, and destination IP address information of the content caching response information is address information of the apparatus, and is used to request the content packet from the content server. In step S904, source IP address information of the content packet sent by the content server is the identifier information of the content server, and destination address information of the content packet is the identifier information of the service node having a content caching function.

[0121] Therefore, based on the method for content caching provided in this embodiment of the present invention, the content server sends content caching request information to a controller to request to perform content caching, and sends related content packet to a traffic classifier, for a content caching operation, so that a content server can initiate content caching request information to request diversified and different content to be cached. Therefore, a response delay of content is reduced, user experience is improved, and further, a problem of opening up a content caching service to a content provider is resolved.

[0122] FIG. 10 shows a signaling interworking diagram of a method for content caching according to an embodiment of the present invention. This embodiment of the present invention is a specific embodiment of embodiments of the present invention that are shown in FIG. 6, FIG. 7, FIG. 8, and FIG. 9.

[0123] As shown in FIG. 10, the method for content caching provided in this embodiment of the present invention includes the following steps:

[0124] S1001: A content server sends content caching request information to a service chain management system.

[0125] The content caching request information includes identifier information of the content server, or identifier information of the content server and a content identifier.

[0126] When the content caching request information includes the identifier information of the content server, but does not include the content identifier, the content caching request information is used by the content server to request a content packet on the content server to be cached, where the identifier information of the content server includes an address, a fully qualified domain name, and port number information of the content server; or when the content caching request information includes address information of the content server and the content identifier, the content caching request information is used by the content server to request a specific content packet on the content server to be cached, where the content identifier may be a URL or a URI, and the content identifier may identify a specific content packet on the content server, where the content packet may be a video. That is, the content server may request content caching to be performed for different content packets.

[0127] Optionally, the content server may request content caching by using an application programming interface opened up by a mobile operator. For example, the content server may send the content caching request information by using an open-up platform, to send the content caching request information to the service chain management system, but the present invention is not limited thereto.

[0128] In actual network deployment, the service chain management system in this embodiment of the present invention is a logical network element, and may be implemented in a controller, or may be implemented in a network element with an open-up capability, or may be implemented by means of independent deployment, which is not limited in this embodiment of the present invention, and a name of the service chain management system name is not limited either.

[0129] S1002: The service chain management system generates a service chain according to the content caching request information, where the service chain includes the service chain information.

[0130] The service chain information includes content caching processing information, the content caching request information, or the like, where the content caching processing information is generated by the service chain management system according to the content caching request information.

[0131] S1003: The service chain management system sends the service chain information to a controller.

[0132] S1004: The controller acquires information, about a service node having a content caching function, in a network.

[0133] The controller learns, according to the service chain information, that content caching service chain processing needs to be performed, and accordingly, acquires the information about the service node having a content caching function.

[0134] The information about the service node includes identifier information of the service node, and a port number; and the identifier information of the service node includes address information of the service node.

[0135] S1005: The controller constructs information that is needed by traffic forwarding policy information and traffic classification policy information.

[0136] The controller constructs the traffic forwarding policy information and the traffic classification policy information according to the identifier information of the service node having a content caching function.

[0137] Specifically, the controller constructs service chain forwarding table information according to the identifier information of the service node having a content caching function, where the service chain forwarding table information includes the identifier information of the content caching node, or includes the identifier information of the content caching node and the content caching processing information. The controller generates service traffic information according to the address information and the port number of the content caching node, and address information, a port number, and a protocol type of the content server. The controller generates a service chain forwarding table identifier according to the service traffic information, or generates a service chain forwarding table identifier according to the service traffic information and the content identifier, where the service chain forwarding table identifier is used to identify the service chain forwarding table.

[0138] S1006: The controller sends the traffic forwarding policy information to a switch.

[0139] The controller constructs the traffic forwarding policy information.

[0140] The traffic forwarding policy information includes the service traffic information and the service chain forwarding table information, or includes the service traffic information, the service chain forwarding table information, and the content identifier, or includes the service chain forwarding table information and the service chain forwarding table identifier, and a name of the traffic forwarding policy information is not limited in this embodiment of the present invention.

[0141] S1007: The controller sends the traffic classification policy information to a traffic classifier.

[0142] The controller constructs the traffic classification policy information according to the service chain control information.

[0143] The traffic classification policy information includes the service traffic information, or includes the service traffic information and the content identifier. Optionally, the traffic classification policy information may also include the service chain forwarding table identifier.

[0144] Optionally, S1007 may include two cases: the controller may directly send the traffic classification policy information to the traffic classifier; or the controller sends the traffic classification policy information to a PCRF, and the PCRF sends the traffic classification policy information to the traffic classifier.

[0145] S1008: The controller sends content caching request information to the service node having a content caching function.

[0146] S1009: The service node having a content caching function constructs HTTP acquiring information.

[0147] The HTTP acquiring information includes the content identifier. Source IP address information of the HTTP acquiring information is the identifier information of the service node having a content caching function, and a destination IP address of the HTTP acquiring information is the identifier information of the content server. The HTTP acquiring information is used for the service node having a content caching function to acquire a content packet corresponding to the content identifier.

[0148] S1010: The service node having a content caching function sends the HTTP acquiring information to the switch.

[0149] S 1011: The switch sends the HTTP acquiring information to the content server.

[0150] S1012: The content server sends, according to a content identifier in the HTTP acquiring information, the content packet corresponding to the content identifier to the traffic classifier.

[0151] S1013: The traffic classifier sends the content packet to the switch according to the traffic classification policy.

[0152] If the traffic classification policy includes the service chain forwarding table identifier, the traffic classifier acquires the service chain forwarding table identifier, encapsulates the service chain forwarding table identifier to a packet header of the content data packet, and sends the encapsulated content packet to the switch.

[0153] A specific process of acquiring the service chain forwarding table identifier by the traffic classifier is as follows:

[0154] a. That the traffic classifier acquires service traffic information in the content packet, and acquires the service chain forwarding table identifier according to the service traffic information specifically includes: determining, by the traffic classifier, a traffic classification policy of the content packet according to whether the service traffic information in the received content packet is consistent with the service traffic information in the received traffic classification policy information, so as to acquire a service chain forwarding table identifier in the traffic classification policy.

[0155] b. That the traffic classifier acquires service traffic information and a content identifier that are in the content packet, and acquires the service chain forwarding table identifier according to the service traffic information specifically includes: determining, by the traffic classifier, a traffic classification policy of the content packet according to whether the service traffic information and the content identifier that are in the received content packet are consistent with the service traffic information and the content identifier that are in the received traffic classification policy information, so as to acquire a service chain forwarding table identifier in the traffic classification policy.

[0156] S1014: The switch sends the content packet to the service node having a content caching function.

[0157] The switch receives the content packet, and if the service chain forwarding table identifier is encapsulated in the content packet, the switch determines the traffic forwarding policy according to the service chain forwarding table identifier, and sends the content packet to the corresponding service node having a content caching function according to the service chain forwarding table information in the traffic forwarding policy.

[0158] a. If the service chain forwarding table identifier does not exist in the content packet, the switch parses the content packet, and acquires the service traffic information in the content packet. The switch determines traffic forwarding policy information of the content packet according to the service traffic information, and sends the content packet to the corresponding service node having a content caching function according to service chain forwarding table information in the traffic forwarding policy.

[0159] b. If the service chain forwarding table identifier does not exist in the content packet, the switch parses the content packet, and acquires the service traffic information and the content identifier that are in the content packet. The switch determines a traffic forwarding policy of the content packet according to the service traffic information and the content identifier that are in the content packet, and sends the content packet to the corresponding service node having a content caching function according to service chain forwarding table information in the traffic forwarding policy.

[0160] S1015: The service node having a content caching function receives the content packet, and performs content caching for the content packet.

[0161] The service node having a content caching function determines, according to a quintet of the content packet or a quintet and the content identifier, that the content packet is a content packet for which the content caching needs to be performed, and performs content caching for the content packet.

[0162] Therefore, based on the method for content caching provided in this embodiment of the present invention, a content server sends content caching request information to a controller by using a service chain management system; the controller acquires identifier information of a service node having a content caching function, constructs traffic forwarding policy information and traffic classification policy information according to the information of the service node having a content caching function, and sends the traffic classification policy information to a traffic classifier, so that after receiving a content packet, the traffic classifier sends the content packet to a switch according to the traffic classification policy information; the controller sends the traffic forwarding policy information to the switch, so that the switch sends the content packet to the service node having a content caching function according to the traffic forwarding policy information. A problem of opening up a content caching service to a content provider is resolved, and it is ensured that the content provider can initiate a content caching request to request to perform content caching.

[0163] FIG. 11 shows a signaling interworking diagram of another method for content caching according to an embodiment of the present invention. This embodiment of the present invention is a specific embodiment of the embodiments of the present invention that are shown in FIG. 6, FIG. 7, FIG. 8, and FIG. 9.

[0164] As shown in FIG. 11, the another method for content caching provided in this embodiment of the present invention includes the following steps:

[0165] S1101: A content server sends content caching request information to a controller.

[0166] This is the difference between this embodiment of the present invention and the embodiment, shown in FIG. 10, of the present invention. For the content caching request information, refer to specific content of the content caching request information shown in FIG. 10.

[0167] S1102: The controller acquires information, about a service node having a content caching function, in a network.

[0168] For this step, refer to step S1004 in FIG. 10.

[0169] S1103: The controller constructs information that is needed by traffic forwarding policy information and traffic classification policy information.

[0170] The controller generates content caching processing information according to the content caching request information. For other content of this step, refer to step S1005.

[0171] For step S1104 to step S1113, refer to step S1006 to step S1015 in the method shown in FIG. 10.

[0172] Therefore, based on the method for content caching provided in this embodiment of the present invention, a content server sends content caching request information to a controller; the controller acquires identifier information of a service node having a content caching function, constructs traffic forwarding policy information and traffic classification policy information according to the identifier information of the service node having a content caching function, and sends the traffic classification policy information to a traffic classifier, so that after receiving a content packet, the traffic classifier sends the content packet to a switch according to the traffic classification policy information; the controller sends the traffic forwarding policy information to the switch, so that the switch sends the content packet to the service node having a content caching function according to the traffic forwarding policy information. A problem of opening up a content caching service to a content provider is resolved, and it is ensured that the content provider can initiate a content caching request to request to perform content caching.

[0173] FIG. 12 shows a signaling interworking diagram of another method for content caching according to an embodiment of the present invention. This embodiment of the present invention is a specific embodiment of the embodiments of the present invention that are shown in FIG. 6, FIG. 7, FIG. 8, and FIG. 9.

[0174] As shown in FIG. 12, the another method for content caching provided in this embodiment of the present invention includes the following steps:

[0175] For step S1201 to step S1206, refer to step S1001 to step S1006 in the embodiment, shown in FIG. 10, of the present invention.

[0176] S1207: The controller sends content packet request information to the service chain management system.

[0177] The content packet request information is response information of service chain information, and the response information includes identifier information of the service node having a content caching function and the content caching request information, for requesting a content packet.

[0178] S1208: The service chain management system sends the content packet request information to the content server.

[0179] S1209: The content server sends a content packet to a traffic classifier.

[0180] The content server sends the content packet corresponding to the content caching request information to the traffic classifier. When the content caching request information includes identifier information of the content server, the content server sends all content packets on the content server to the traffic classifier; or when the content caching request information further includes a content identifier, the content server sends a specific content packet corresponding to the content identifier to the traffic classifier.

[0181] Source IP address information of the content packet is the identifier information of the content server, and destination address information of the content packet is the identifier information of the service node having a content caching function. When the sent content packet is a specific content packet, the content packet includes the content identifier.

[0182] S1210: The traffic classifier sends request information to the controller, to request the controller to send the corresponding traffic classification policy information to the traffic classifier.

[0183] The traffic classifier acquires service traffic information of the content packet or service traffic information and the content identifier. If the corresponding traffic classification policy information exists in the traffic classifier, go to step S1202.

[0184] If the corresponding traffic classification policy information does not exist in the traffic classifier, the traffic classifier sends the request information to the controller, where the request information includes the service traffic information of the content packet or the service traffic information and the content identifier, and requests to send the corresponding traffic classification policy information to the traffic classifier.

[0185] S1211: The controller sends the traffic classification policy information to the traffic classifier.

[0186] The traffic classification policy information includes service traffic information and service chain forwarding table information, or includes service traffic information, service chain forwarding table information, and a content identifier. Optionally, the traffic classification policy information may also include the service chain forwarding table identifier.

[0187] For step S1212 to step S1214, refer to step S1013 to step S1015 in the method for content caching provided in FIG. 10.

[0188] Therefore, based on the method for content caching provided in this embodiment of the present invention, a traffic classifier sends request information that includes service traffic information or service traffic information and a content identifier to a controller, to request the controller to send traffic classification policy information, so that a content packet is sent to a switch according to the traffic classification policy information; and the switch sends the content packet to a service node having a content caching function according to traffic forwarding policy information. A problem of opening up a content caching service to a content provider is resolved, and it is ensured that content caching processing is performed for a content packet for which a content server requests to perform content caching.

[0189] FIG. 13 shows a signaling interworking diagram of another method for content caching according to an embodiment of the present invention. This embodiment of the present invention is a specific embodiment of the embodiments of the present invention that are shown in FIG. 6, FIG. 7, FIG. 8, and FIG. 9.

[0190] As shown in FIG. 13, the another method for content caching provided in this embodiment of the present invention includes the following steps:

[0191] For step S1301 to step S1303, refer to step S1101 to step S1103 in the method embodiment shown in FIG. 11.

[0192] S1304: A controller sends traffic forwarding policy information to a switch.

[0193] S1305: The controller sends content packet request information to a content server.

[0194] The content packet request information is response information of content caching request information, and the response information includes identifier information of a service node having a content caching function and the content caching request information, for requesting a content packet.

[0195] For step S1306 to step S1311, refer to step S1209 to step S1214 in the method embodiment shown in FIG. 12.

[0196] Therefore, based on the method for content caching provided in this embodiment of the present invention, a controller receives content caching request information sent by a content server, constructs traffic forwarding policy information and traffic classification policy information, and sends the traffic classification policy information to a traffic classifier, so that after receiving a content packet, the traffic classifier sends the content packet to a switch according to the traffic classification policy information; and the controller sends the traffic forwarding policy information to the switch, so that the switch sends the content packet to the service node having a content caching function according to the traffic forwarding policy information. A problem of opening up a content caching service to a content provider is resolved, and it is ensured that the content provider can initiate a content caching request to request to perform content caching.

[0197] A person of ordinary skill in the art may be aware that, in combination with the examples described in the embodiments disclosed in this specification, method steps and units may be implemented by electronic hardware, computer software, or a combination thereof. To clearly describe the interchangeability between the hardware and the software, the foregoing has generally described steps and compositions of each embodiment according to functions. Whether the functions are performed by hardware or software depends on particular applications and design constraint conditions of the technical solutions. A person of ordinary skill in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of the present invention.

[0198] It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method embodiments, and details are not described herein again.

[0199] In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely exemplary. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in electronic, mechanical, or other forms.

[0200] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Apart or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present invention.

[0201] In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.

[0202] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the present invention essentially, or the part contributing to the prior art, or all or a part of the technical solutions may be implemented in the form of a software product. The software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or a part of the steps of the methods described in the embodiments of the present invention. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disc.

[0203] The foregoing descriptions are merely specific embodiments of the present invention, but are not intended to limit the protection scope of the present invention. Any modification or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.


Claims

1. An apparatus for content caching, comprising:

an acquiring module, configured to acquire content caching request information sent by a content server, and acquire identifier information of a service node having a content caching function according to the content caching request information;

a processing module, configured to construct traffic forwarding policy information and traffic classification policy information according to the identifier information of the service node having a content caching function; and

a sending module, configured to send the traffic classification policy information to a traffic classifier, so that the traffic classifier sends a content packet to a switch according to the traffic classification policy information; and send the traffic forwarding policy information to the switch, so that after receiving the content packet, the switch sends, according to the traffic forwarding policy information, the content packet to the service node having a content caching function to perform content caching.


 
2. The apparatus according to claim 1, wherein that the processing module is configured to construct traffic forwarding policy information according to the identifier information of the service node having a content caching function comprises:

the processing module is configured to construct service chain forwarding table information that comprises the identifier information of the service node having a content caching function; and

the processing module is configured to construct the traffic forwarding policy information, wherein the traffic forwarding policy information comprises the service chain forwarding table information.


 
3. The apparatus according to claim 2, wherein the processing module is further configured to generate content caching processing information according to the content caching request information; wherein
the service chain forwarding table information constructed by the processing module further comprises the content caching processing information.
 
4. The apparatus according to claim 2, wherein:

the content caching request information acquired by the acquiring module comprises identifier information of the content server, or identifier information of the content server and a content identifier;

the processing module is further configured to generate service traffic information according to the identifier information of the content server and address information of the service node having a content caching function; wherein

the traffic forwarding policy information constructed by the processing module comprises the service chain forwarding table and the service traffic information, or the service chain forwarding table information, the service traffic information, and the content identifier; and

a traffic classification policy constructed by the processing module comprises the service traffic information, or the service traffic information and the content identifier.


 
5. The apparatus according to claim 4, wherein the processing module is further configured to generate the service chain forwarding table identifier according to the service traffic information or the service traffic information and the content identifier;
the traffic forwarding policy information constructed by the processing module comprises the service chain forwarding table information and the service chain forwarding table identifier; and
the traffic classification policy information constructed by the processing module comprises the service traffic information and the service chain forwarding table identifier, or the service traffic information, the content identifier, and the service chain forwarding table identifier.
 
6. The apparatus according to claim 1, wherein the sending module is further configured to send the content caching request information to the service node having a content caching function, so that the service node constructs Hypertext Transfer Protocol HTTP acquiring information according to the content caching request information, and requests to acquire the content packet from the content server.
 
7. The apparatus according to claim 1, wherein that the acquiring module is configured to acquire content caching request information sent by a content server specifically comprises:

the acquiring module is specifically configured to acquire the content caching request information directly sent by the content server; or

acquire service chain information that is sent by the content server by using a service chain management system, wherein the service chain information comprises the content caching request information.


 
8. An apparatus for content caching, wherein the apparatus comprises:

a receiving module, configured to receive a traffic classification policy sent by a controller, wherein

the traffic classification policy information is constructed by the controller according to identifier information of a service node having a content caching function, and

the receiving module is further configured to receive a content packet sent by a content server; and

a processing module, configured to send, according to the traffic classification policy information, the content packet to a switch that is connected to the service node having a content caching function.


 
9. The apparatus according to claim 8, wherein the traffic classification policy information received by the receiving module comprises service traffic information and a service chain forwarding table identifier, or comprises service traffic information, a content identifier, and a service chain forwarding table identifier; and
that a processing module is configured to send, according to the traffic classification policy information, the content packet to a switch that is connected to the service node having a content caching function comprises:

the processing module is configured to acquire the service chain forwarding table identifier in the traffic classification policy information, encapsulate the service chain forwarding table identifier into a packet header of the content packet, and send the encapsulated content packet to the switch that is connected to the service node having a content caching function.


 
10. The method according to claim 9, wherein the processing module is further configured to: before acquiring the service chain forwarding table identifier in the traffic classification policy information, acquire the service traffic information in the content packet and determine the traffic classification policy of the content packet according to the service traffic information; or
the processing module is further configured to: before acquiring the service chain forwarding table identifier in the traffic classification policy information, acquire the service traffic information and the content identifier that are in the content packet, and determine the traffic classification policy information of the content packet according to the service traffic information and the content identifier.
 
11. An apparatus for content caching, wherein the apparatus comprises:

a receiving module, configured to receive traffic forwarding policy information sent by a controller, wherein

the traffic forwarding policy information is constructed by the controller according to identifier information of a service node having a content caching function, and comprises service chain forwarding table information, and

the receiving module is further configured to receive a content packet sent by a traffic classifier; and

a sending module, configured to send, according to the service chain forwarding table information in the traffic forwarding policy information, the content packet to the service node having a content caching function to perform content caching.


 
12. The apparatus according to claim 11, wherein the traffic forwarding policy information further comprises a service chain forwarding table identifier;
the content packet received by the receiving module comprises the service chain forwarding table identifier that is encapsulated by the traffic classifier into a packet header of the content packet; and
the apparatus further comprises a processing module, wherein the processing module is configured to determine the traffic forwarding policy according to the service chain forwarding table identifier.
 
13. The apparatus according to claim 11, wherein the traffic forwarding policy information further comprises service traffic information or service traffic information and a content identifier; and
the apparatus further comprises a processing module, wherein
the processing module is configured to acquire the service traffic information in the content packet, and determine the traffic forwarding policy information of the content packet according to the service traffic information in the content packet; or
the processing module is configured to acquire the service traffic information and the content identifier that are in the content packet, and determine the traffic forwarding policy information of the content packet according to the service traffic information and the content identifier that are in the content packet.
 
14. An apparatus for content caching, comprising:

a construction module, configured to construct content caching request information;

a sending module, configured to send the content caching request information to a controller to request to perform content caching; and

a receiving module, configured to receive content packet request information to request to send a content packet, wherein

the sending module is further configured to send the content packet to a traffic classifier, so that the traffic classifier sends, according to traffic classification policy information that is sent by the controller and that is constructed according to identifier information of a service node having a content caching function, the content packet to a switch that is connected to the service node having a content caching function.


 
15. The apparatus according to claim 14, wherein the content caching request information constructed by the construction module comprises identifier information of a content server, and is used to request to perform content caching for all content packets on the content server; or
the content caching request information comprises identifier information of a content server and a content identifier, and is used to request to perform content caching for a specific content packet on the content server.
 
16. The apparatus according to claim 14, wherein that a sending module is configured to send the content caching request information specifically comprises:

the sending module is configured to directly send the content caching request information to the controller; or

the sending module is configured to send the content caching request information to the controller by using a service chain management system.


 
17. The apparatus according to claim 14, wherein that a receiving module is configured to receive content packet request information specifically comprises:

the receiving module is configured to receive Hypertext Transfer Protocol HTTP acquiring information that is constructed by the service node having a content caching function, wherein

source Internet Protocol IP address information of the HTTP acquiring information is the identifier information of the service node having a content caching function, and destination IP address information of the HTTP acquiring information is address information of the apparatus, and is used to request the content packet of a content server; and

source IP address information of the content packet that is sent by the sending module to the traffic classifier is identifier information of the content server, and destination address information of the content packet is the identifier information of the service node having a content caching function.


 
18. The apparatus according to claim 14, wherein that a receiving module is configured to receive content packet request information specifically comprises:

the receiving module is configured to receive content caching response information sent by the controller or a service chain management system, wherein

the content caching response information comprises the identifier information of the service node having a content caching function, and is used to request the content packet of a content server; and

source IP address information of the content packet that is sent by the sending module to the traffic classifier is identifier information of the content server, and destination IP address information of the content packet is the identifier information of the service node having a content caching function.


 
19. A method for content caching, comprising:

receiving, by a controller, content caching request information sent by a content server;

acquiring, by the controller according to the content caching request information, identifier information of a service node having a content caching function;

constructing, by the controller, traffic forwarding policy information and traffic classification policy information according to the identifier information of the service node having a content caching function;

sending, by the controller, the traffic classification policy information to a traffic classifier, so that the traffic classifier sends a content packet to a switch according to the traffic classification policy information; and

sending, by the controller, the traffic forwarding policy information to the switch, so that after receiving the content packet, the switch sends, according to the traffic forwarding policy information, the content packet to the service node having a content caching function to perform content caching.


 
20. The method according to claim 19, wherein the constructing, by the controller, traffic forwarding policy information according to the identifier information of the service node having a content caching function comprises:

constructing, by the controller, service chain forwarding table information that comprises the identifier information of the service node having a content caching function; and

constructing, by the controller, the traffic forwarding policy information, wherein the traffic forwarding policy information comprises the service chain forwarding table information.


 
21. The method according to claim 20, before the constructing, by the controller, service chain forwarding table information, further comprising:

generating, by the controller, content caching processing information according to a content caching request, wherein

the service chain forwarding table information constructed by the controller further comprises the content caching processing information.


 
22. The method according to claim 20, wherein the content caching request information comprises identifier information of the content server, or identifier information of the content server and a content identifier; and
before the constructing, by the controller, the traffic classification policy information and the traffic forwarding policy information that comprises the service chain forwarding table information, the method further comprises:

generating, by the controller, service traffic information according to the identifier information of the content server and address information of the service node having a content caching function, wherein

the traffic forwarding policy information constructed by the controller comprises the service chain forwarding table and the service traffic information, or the service chain forwarding table information, the service traffic information, and the content identifier; and

a traffic classification policy constructed by the controller comprises the service traffic information, or the service traffic information and the content identifier.


 
23. The method according to claim 22, wherein the method further comprises:

generating, by the controller, the service chain forwarding table identifier according to the service traffic information, or the service traffic chain information and the content identifier, wherein

the traffic forwarding policy information constructed by the controller comprises the service chain forwarding table information and the service chain forwarding table identifier; and

the traffic classification policy information constructed by the controller comprises the service traffic information and the service chain forwarding table identifier, or the service traffic information, the content identifier, and the service chain forwarding table identifier.


 
24. The method according to claim 19, wherein the method further comprises:

sending, by the controller, the content caching request information to the service node having a content caching function, so that the service node constructs Hypertext Transfer Protocol HTTP acquiring information according to the content caching request information, and requests to acquire the content packet from the content server.


 
25. The method according to claim 19, wherein the receiving, by a controller, content caching request information sent by a content server comprises:

receiving, by the controller, the content caching request information directly sent by the content server; or

receiving the content caching request information that is sent by the content server by using a service chain management system.


 
26. A method for content caching, wherein the method comprises:

receiving, by a traffic classifier, traffic classification policy information sent by a controller, wherein

the traffic classification policy information is constructed by the controller according to identifier information of a service node having a content caching function;

receiving, by the traffic classifier, a content packet sent by a content server; and

sending, by the traffic classifier according to the traffic classification policy information, the content packet to a switch that is connected to the service node having a content caching function.


 
27. The method according to claim 26, wherein the traffic classification policy information received by the traffic classifier comprises service traffic information and a service chain forwarding table identifier, or comprises service traffic information, a content identifier, and a service chain forwarding table identifier; and
the sending, by the traffic classifier according to the traffic classification policy information, the content packet to a switch that is connected to the service node having a content caching function comprises:

acquiring, by the traffic classifier, the service chain forwarding table identifier in the traffic classification policy information;

encapsulating, by the traffic classifier, the service chain forwarding table identifier into a packet header of the content packet; and

sending, by the traffic classifier, the encapsulated content packet to the switch that is connected to the service node having a content caching function.


 
28. The method according to claim 27, before the acquiring, by the traffic classifier, the service chain forwarding table identifier in the traffic classification policy information, comprising:

acquiring, by the traffic classifier, the service traffic information in the content packet; and

determining, by the traffic classifier, the traffic classification policy of the content packet according to the service traffic information; or

acquiring, by the traffic classifier, the service traffic information and the content identifier that are in the content packet, and

determining, by the traffic classifier, the traffic classification policy information of the content packet according to the service traffic information and the content identifier.


 
29. A method for content caching, wherein the method comprises:

receiving, by a switch, traffic forwarding policy information sent by a controller, wherein

the traffic classification policy information is constructed by the controller according to identifier information of a service node having a content caching function, and comprises service chain forwarding table information;

receiving, by the switch, a content packet sent by a traffic classifier; and

sending, by the switch according to the service chain forwarding table information, the content packet to the service node having a content caching function to perform content caching.


 
30. The method according to claim 29, wherein the traffic forwarding policy information further comprises a service chain forwarding table identifier;
the content packet received by the switch comprises the service chain forwarding table identifier that is encapsulated by the traffic classifier into a packet header of the content packet; and
the method further comprises:

determining, by the switch, the traffic forwarding policy according to the service chain forwarding table identifier.


 
31. The method according to claim 29, wherein the traffic forwarding policy information further comprises service traffic information or service traffic information and a content identifier; and
the method further comprises:

acquiring, by the switch, the service traffic information in the content packet; and

determining, by the switch, the traffic forwarding policy information of the content packet according to the service traffic information in the content packet; or

acquiring, by the switch, the service traffic information and the content identifier that are in the content packet, and

determining, by the switch, the traffic forwarding policy information of the content packet according to the service traffic information and the content identifier that are in the content packet.


 
32. A method for content caching, comprising:

constructing, by a content server, content caching request information;

sending, by the content server, the content caching request information to a controller to request to perform content caching;

receiving, by the content server, content packet request information to request to send a content packet; and

sending, by the content server, the content packet to a traffic classifier, so that the traffic classifier sends, according to traffic classification policy information that is sent by the controller and that is constructed according to identifier information of a service node having a content caching function, the content packet to a switch that is connected to the service node having a content caching function.


 
33. The method according to claim 32, wherein the content caching request information constructed by the content server specifically comprises identifier information of the content server, or identifier information of the content server and a content identifier.
 
34. The method according to claim 32, wherein the sending, by the content server, the content caching request information to a controller comprises:

directly sending, by the content server, the content caching request information to the controller; or

sending, by the content server, the content caching request information to the controller by using a service chain management system.


 
35. The method according to claim 32, wherein the receiving, by the content server, content packet request information comprises:

receiving, by the content server, Hypertext Transfer Protocol HTTP acquiring information that is constructed by the service node having a content caching function, wherein

source Internet Protocol IP address information of the HTTP acquiring information is the identifier information of the service node having a content caching function, and destination IP address information of the HTTP acquiring information is address information of the apparatus, and is used to request the content packet from the content server; and

source IP address information of the content packet that is sent by the content server to the traffic classifier is identifier information of the content server, and destination address information of the content packet is the identifier information of the service node having a content caching function.


 
36. The method according to claim 32, wherein the receiving, by the content server, content packet request information comprises:

receiving, by the content server, content caching response information sent by the controller or a service chain management system, wherein

source IP address information of the content caching response information is the identifier information of the service node having a content caching function, and destination IP address information of the content caching response information is address information of the apparatus, and is used to request the content packet from the content server; and

source IP address information of the content packet that is sent by the content server to the traffic classifier is identifier information of the content server, and destination IP address information of the content packet is the identifier information of the service node having a content caching function.


 




Drawing




























Search report