WO2014166092A1 - 资源配置方法、交换机及控制器 - Google Patents

资源配置方法、交换机及控制器 Download PDF

Info

Publication number
WO2014166092A1
WO2014166092A1 PCT/CN2013/074086 CN2013074086W WO2014166092A1 WO 2014166092 A1 WO2014166092 A1 WO 2014166092A1 CN 2013074086 W CN2013074086 W CN 2013074086W WO 2014166092 A1 WO2014166092 A1 WO 2014166092A1
Authority
WO
WIPO (PCT)
Prior art keywords
content
switch
controller
information
heat
Prior art date
Application number
PCT/CN2013/074086
Other languages
English (en)
French (fr)
Inventor
周伟
唐朋成
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2013/074086 priority Critical patent/WO2014166092A1/zh
Priority to CN201380000376.6A priority patent/CN104303474B/zh
Publication of WO2014166092A1 publication Critical patent/WO2014166092A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a resource configuration method, a switch, and a controller. Background technique
  • the client obtains an Internet Protocol (IP) address of the content server where the content to be accessed is located through a Domain Name System (DNS) server, and passes the IP address through the IP address.
  • IP Internet Protocol
  • DNS Domain Name System
  • the content acquisition request is sent to the content server, and the content acquisition request is forwarded to the content server by the switch in the network, and finally the content server obtains the content to be accessed from the cache, and delivers the content to the client.
  • the SDN network uses the OpenFlow (OpenFlow) protocol to support open interfaces and multi-control switching.
  • OpenFlow OpenFlow
  • the SDN network separates the control plane of the network device from the data forwarding plane, so that network traffic can be flexibly controlled.
  • the function of the control plane is implemented by a controller (Controller), and is mainly responsible for delivering a traffic forwarding policy.
  • the function of the data forwarding plane is implemented by a switch (Switch, referred to as SW), and is mainly used for receiving a flow table sent by the controller, and according to The flow table operates on data packets.
  • SW switch
  • a controller is connected to each switch, and the switches are mutually connected to implement data packet forwarding.
  • the embodiments of the present invention provide a resource configuration method, a switch, and a controller, which are used to solve the problem that the cache resource configuration is unreasonable in the OpenFlow-based content storage network.
  • a method for resource configuration including: The switch locally manages the heat information of the first content;
  • the switch reports the heat information to the controller, so that the controller controls the cache distribution of the first content according to the heat information.
  • the heat value of the first content is increased.
  • the switch When the switch does not cache the first content, the switch forwards the content request access message to the controller;
  • the switch caches the first content according to the first indication information, and adds a hot combining first aspect of the first content.
  • the switch locally manages
  • the heat information of the first content includes:
  • the switch forwards the content request access message to the switch that caches the first content according to the second indication information, and increases a heat value of the first content.
  • the fourth possible implementation in the first aspect includes:
  • the switch acquires a first flow entry corresponding to the first content, where the first flow entry includes a heat value of the first content;
  • the switch increases a heat value of the first content in the first flow entry.
  • the switch locally manages hot information of the first content, including:
  • the switch adjusts the heat information of the first content according to the third indication information.
  • the switch reporting the heat information to the controller including:
  • the switch reporting the heat information to the controller including:
  • the switch When the second timer provided on the switch times out, the switch reports the heat information to the controller.
  • the method further includes: the switch is deleted according to the indication of the controller or according to the configured policy The heat information of the first content.
  • the second aspect provides a resource configuration method, including:
  • the controller acquires heat information of the first content saved on the plurality of switches in the network
  • the controller performs buffering configuration of the first content on the plurality of switches according to the heat information of the first content of the plurality of switches.
  • the controller that obtains the heat information of the first content saved on the multiple switches in the network includes:
  • the controller sends a message requesting to acquire the heat information of the first content to the plurality of switches, and receives the heat information of the first content returned by the multiple switches;
  • the controller receives the heat information of the first content reported by the plurality of switches to the controller according to a preset time period.
  • the method further includes:
  • the controller performs a cache configuration of the first content on the plurality of switches according to a sort result of the heat information of the first content.
  • the method further includes:
  • the controller performs a configuration of caching of the first content to the plurality of switches according to the normalized processing result.
  • the controller is configured according to Configuring, by the hot information of the first content of the multiple switches, the cache of the first content to the multiple switches, including: the controller according to the first content of the multiple switches The heat information determines one or more switches that need to cache the first content;
  • the controller sends a sixth indication information, which is used to indicate that the first content is cached.
  • the controller sends seventh indication information for indicating deletion of the cached first content and the first content.
  • Heat information or,
  • the controller sends eighth indication information, which is used to indicate that the hotness information of the first content is deleted.
  • the network interface is configured to connect to the controller through a network
  • the processor is configured to locally manage heat information of the first content
  • the transceiver is further configured to receive a content request access message
  • the processor is configured to increase a heat value of the first content when the content requested by the content request access message is the first content cached by the switch.
  • the processor is configured to cache the first content according to the first indication information, and increase a heat value of the first content.
  • the processor is specifically configured to forward the content request access message to the switch that caches the first content according to the second indication information, and increase a heat value of the first content.
  • the processor is specifically configured to acquire a first flow entry corresponding to the first content, where the first flow entry includes a heat value of the first content, and is added to the first flow entry. The heat value of the first content.
  • the transceiver is further configured to receive the third indication information that is sent by the controller;
  • the processor is specifically configured to adjust the heat information of the first content according to the third indication information.
  • the processor is specifically configured to be used for resetting The heat information of the first content, or the heat value of the first content is reduced.
  • the transceiver is specifically configured to receive the fourth indication information sent by the controller, and report the heat information to the controller according to the fourth indication information.
  • the transceiver is specifically configured to be used on the switch When the second timer expires, the heat information is reported to the controller.
  • the processor is further used according to the controller Instructing or deleting the heat information of the first content according to the configured policy.
  • a controller comprising: a network interface, a transceiver, and a processor, wherein
  • the network interface is configured to connect multiple switches through a network
  • the transceiver is configured to send, to the multiple switches, a packet requesting to obtain the heat information of the first content, and receive the packet The heat information of the first content returned by the plurality of switches, or the heat information of the first content reported by the plurality of switches to the controller according to a preset time period.
  • the processor is further configured to: Sorting the heat information of a content to obtain a sorting result of the heat information of the first content;
  • the processor is specifically configured to perform buffering configuration of the first content on the plurality of switches according to a ranking result of the heat information of the first content.
  • the processor Specifically, determining, according to the heat information of the first content of the multiple switches, one or more switches that need to cache the first content;
  • the transceiver is further configured to: if the first content is cached on the switch that needs to cache the first content, send the fifth indication information, to indicate that the first content is kept cached, or The first content is not cached on the switch that needs to cache the first content, and the sixth indication information is sent to indicate that the first content is cached.
  • a switch including:
  • a management unit configured to locally manage the heat information of the first content
  • a first management sub-unit configured to receive a content request access message, and when the content requested by the content request access message is the first content cached by the switch, increase a heat value of the first content
  • the management unit includes at least one sub-unit that increases a heat value of the first content, specifically Acquiring the first flow entry corresponding to the first content, where the first flow entry includes a heat value of the first content, and adding a heat value of the first content in the first flow entry.
  • a fifth management sub-unit configured to: when the first timer provided on the switch times out, if the content requesting the first content is not received during the timeout of the first timer, The heat information of the first content is adjusted.
  • the reporting unit includes at least one of the following subunits:
  • the first reporting subunit configured to receive the fourth indication information sent by the controller, and report the heat information to the controller according to the fourth indication information
  • a deleting unit configured to delete the heat information of the first content according to the indication of the controller or according to the configured policy.
  • a controller including:
  • An obtaining unit configured to acquire heat information of the first content saved on the multiple switches in the network
  • a configuration unit configured to perform, according to the heat information of the first content of the multiple switches, the multiple switches The cached configuration of the first content.
  • the acquiring unit includes at least one of the following subunits:
  • a first obtaining subunit configured to send, to the plurality of switches, a message requesting to obtain the heat information of the first content, and receive heat information of the first content returned by the multiple switches;
  • the controller further includes:
  • a sorting unit configured to sort the heat information of the first content of the plurality of switches, and obtain a sorting result of the heat information of the first content
  • the configuration unit is configured to perform buffering configuration of the first content on the plurality of switches according to a ranking result of the heat information of the first content.
  • the controller further includes:
  • a normalization unit configured to perform normalization processing on the heat information of the first content of the plurality of switches, to obtain a normalized processing result of the heat information of the first content
  • the configuration unit is specifically configured to perform buffering of the first content on the plurality of switches according to the normalization processing result.
  • the configuration unit includes:
  • a first determining subunit configured to determine, according to the hotness information of the first content of the multiple switches, one or more switches that need to cache the first content
  • the configuration unit includes:
  • a second determining subunit configured to determine, according to the heat information of the first content of the multiple switches, one or more switches that do not need to cache the first content
  • a second sending subunit configured to: if the first content is cached on the switch that does not need to cache the first content, send seventh indication information, where the first content and the cached content are deleted And the hot content information of the first content, or the first content is not cached on the switch that does not need to cache the first content, and the eighth indication information is sent to indicate that the hotness information of the first content is deleted.
  • the switch locally manages the heat information of the first content, and reports the heat information to the controller, and the controller obtains the heat information of the first content saved on the plurality of switches in the network, according to the multiple switches.
  • the heat information of the first content performs a cache configuration of the first content to the plurality of switches.
  • the embodiment of the present invention can apply the local management and reporting of the hotness information of the content through the switch in the network where the content is cached on the switch, so as to ensure that all access situations of the content can be recorded, and the accuracy of the hot information statistics is improved, and the accuracy is ensured.
  • the controller can perform resource configuration according to the reported heat information; and, because the controller can summarize the heat information recorded on the switch in the network, the controller can learn the true distribution of the cached content on the switch in the network, and accordingly Rationally configure the resources cached in the network to improve the rationality of resource allocation.
  • FIG. 1 is a schematic structural diagram of an SDN network according to an embodiment of the present invention.
  • FIG. 2A is a flowchart of an embodiment of a resource configuration method according to the present invention.
  • FIG. 3 is a flow chart of another embodiment of a resource configuration method according to the present invention.
  • FIG. 4 is a flow chart of another embodiment of a resource configuration method according to the present invention.
  • FIG. 5 is a block diagram of an embodiment of a switch of the present invention.
  • FIG. 8 is a block diagram of another embodiment of a controller of the present invention. detailed description
  • FIG. 1 is a schematic diagram of an SDN network architecture according to an embodiment of the present invention:
  • the network architecture shown in FIG. 1 includes: one controller and three switches, SW1, SW2, and SW3, and the controller and the switch are connected to each other.
  • the controller can be a controller based on the OpenFlow protocol, and each switch has a flow table, and the controller can uniformly query and manage the flow table on all switches.
  • a statistical field may be added to the flow table of the cached switch for recording the access condition of the cached content, thereby The controller can perform heat statistics based on the information of the statistical domain.
  • the fields included in the statistics field may be as shown in Table 1 below:
  • each ID corresponds to a Count; each Count is used to count the number of accesses to an access content; Mode indicates that the switch is currently working in cache mode (Cache_Mode) , or the switch is currently working in non-cache mode (nonCache_Mode); Action can include storing data to the cache (Add), reading data from the cache (Get), deleting the number from the cache According to (Delete).
  • FIG. 2A it is a flowchart of an embodiment of a resource configuration method according to the present invention. This embodiment describes a resource configuration process from a switch side:
  • Step 201 The switch locally manages the heat information of the first content.
  • the switch can locally manage the heat information of the first content in at least one of the following manners:
  • the switch may receive the content request access message, and when the content requested by the content request access message is the first content cached by the switch, increase the heat value of the first content;
  • the switch can receive the content request access message, where the content requested by the content request access message is the first content, and when the switch does not cache the first content, the switch forwards the content request.
  • Receiving a message to the controller receiving first indication information of the controller, buffering the first content according to the first indication information, and increasing a heat value of the first content;
  • the switch may receive a content request access message, where the content requested by the content request access message is the first content, and when the switch does not cache the first content, the switch forwards the The content requesting the access message to the controller, receiving the second indication information of the controller, forwarding the content request access message to the switch that caches the first content according to the second indication information, and Increasing a heat value of the first content;
  • the switch may receive the third indication information sent by the controller, and adjust the heat information of the first content according to the third indication information;
  • a fifth mode when the first timer set on the switch times out, if the switch does not receive the content requesting access request message of the first content during the first timer timing, the switch Adjusting the heat information of the first content;
  • the switch when the switch needs to adjust the heat information of the first content, the switch may reset the heat information of the first content, or reduce the first The heat value of the content.
  • Step 202 The switch reports the heat information to the controller, so that the controller controls the cache distribution of the first content according to the heat information.
  • the switch may report the heat information to the controller in any of the following manners: In a first manner, the switch may receive the fourth indication information sent by the controller, and report the information according to the fourth indication information. Describe heat information to the controller;
  • the switch can report the heat information to the controller.
  • the switch may also delete the heat information of the first content according to an indication of the controller or according to the configured policy.
  • the embodiment can apply the local management and reporting of the hotness information of the content through the switch in the network where the content is cached on the switch, so as to ensure that all access situations of the content can be recorded, and the heat information statistics are improved.
  • the accuracy ensures that the controller can perform resource configuration based on the reported heat information.
  • Step 211 The controller acquires heat information of the first content saved on the plurality of switches in the network.
  • the controller may send, to the multiple switches, a message requesting to obtain the heat information of the first content, and receive the heat information of the first content returned by the multiple switches; or, the controller The hotness information of the first content reported by the plurality of switches to the controller according to a preset time period may also be received.
  • Step 212 The controller performs buffering configuration of the first content on the plurality of switches according to the heat information of the first content of the plurality of switches.
  • the controller may configure the cache of the first content according to any one of the following manners: In a first manner, the controller may sort the heat information of the first content of the multiple switches to obtain a sorting result of the heat information of the first content, and performing, by the sorting result of the heat information of the first content, a cache configuration of the first content to the plurality of switches;
  • the controller may perform normalization processing on the heat information of the first content of the multiple switches, obtain a normalized processing result of the heat information of the first content, and according to the return As a result of the processing, the configuration of the cache of the first content is performed on the plurality of switches.
  • the controller may determine, according to the heat information of the first content of the multiple switches, And the switch that needs to cache the first content, if the first content is cached on the switch that needs to cache the first content, the controller sends a fifth indication information, which is used to indicate that the cache is kept. The first content, or if the first content is not cached on the switch that needs to cache the first content, the controller sends sixth indication information, which is used to indicate that the first content is cached;
  • the controller may determine, according to the heat information of the first content of the multiple switches, one or more switches that do not need to cache the first content, if the first content does not need to be cached
  • the first content is cached on the switch, and the controller sends seventh indication information, which is used to indicate that the cached first content and the hot content information of the first content are deleted, or if the cache does not need to be cached.
  • the first content is not cached on the switch of the first content, and the controller sends the eighth indication information to indicate that the hotness information of the first content is deleted.
  • Step 301 The switch receives the content request access message.
  • the content request access message may be sent to the switch.
  • the content may be identified by an IP address or a URL of the content.
  • the switch can Matching the information of the Action field in the statistics field of the flow entry (Get), obtaining the content to be accessed from the cache of the switch, and adding the number of accesses of the content to be accessed in the information of the Count field of the statistics field, Count value is increased by 1.
  • Step 304 The switch forwards the content request access message to the controller.
  • the switch may forward the content request access message to the controller. Specifically, when the switch does not match the flow entry corresponding to the content request access packet in the flow table, the switch may send a PACKETJN message to the controller to request a processing policy corresponding to the message, for example, obtaining from a switch. The content to be accessed.
  • Step 305 The controller determines whether there are other switches in the network that cache the content to be accessed. If yes, go to step 308; otherwise, go to step 306.
  • Step 306 The controller issues an item update message to the switch.
  • Step 307 The switch adds the heat information of the content to be accessed according to the table update message sent by the controller, and ends the current process.
  • the switch After receiving the entry update packet, the switch can perform the corresponding action according to the information carried in the packet. For example, in one case, a corresponding flow entry may be set for the content request access message, and the packet is forwarded according to the action in the flow entry; in another case, if the switch has a cache to be accessed If the aging time of the corresponding flow entry has expired, the switch also determines in step 302 that the content to be accessed is not cached, and the controller can obtain the cached content on all switches in the network, that is, the controller.
  • the device can be configured to cache the content to be accessed on the switch. Therefore, the switch can send the cached command to the switch, and the switch updates the packet according to the entry to set the corresponding flow for the content request access packet.
  • An entry, and the content to be accessed is obtained from the cache according to the action in the flow entry.
  • the switch increments the Count field value of the flow entry statistics field to record the information that the content is accessed.
  • Step 308 The controller sends a forwarding packet instruction to the switch, where the forwarding packet instruction includes an identifier of the target switch that caches the content to be accessed.
  • the controller determines that there is a switch in the network to cache the content to be accessed, the controller can determine a target switch from the switch, and send a forwarding packet instruction including the identifier of the target switch to the switch.
  • Step 309 The switch forwards the content request access message to the target switch according to the forwarding message command sent by the controller.
  • Step 311 The controller determines whether to perform de-redundancy processing on the switch in the network, and if yes, ends the current process; otherwise, returns to step 306.
  • the process returns to step 306, and the controller issues an item update message to the switch, and the switch adds the heat information of the content to be accessed according to the table update message sent by the controller. It is not described here; when the switch in the network has performed the past redundancy processing, the switch does not perform the increased heat information for the content to be accessed.
  • the embodiment can apply the local management and reporting of the hotness information of the content through the switch in the network where the content is cached on the switch, so as to ensure that all access situations of the content can be recorded, and the heat information statistics are improved.
  • the accuracy ensures that the controller can perform resource configuration based on the reported heat information.
  • the controller may send the information acquisition message to the multiple switches.
  • the information acquisition message may be specifically a GET_STAT message, and receive the heat information returned by the multiple switches according to the information.
  • the controller may receive the heat information reported by the multiple switches to the controller according to a preset time period. For example, a timer may be set on each switch. When the timing period arrives, the switch may send a PUT_STAT to the controller. The message, the PUT_STAT message carries the heat information.
  • Step 402 The controller obtains the heat information of the same content cached on different switches, and performs step 403 and step 407, respectively.
  • Step 403 The controller determines, according to the heat information of the same content, one or more first switches that need to cache the same content.
  • Step 404 Determine whether the same content is cached on the first switch. If yes, execute step 405; otherwise, perform step 406.
  • Step 405 The controller sends a fifth indication information to the first switch, to indicate that the first switch keeps buffering the same content, and ends the current process.
  • Step 406 The controller sends the sixth indication information to the first switch, to indicate that the first switch caches the same content, and ends the current process.
  • Step 407 The controller determines, according to the heat information of the same content, one or more second switches that do not need to cache the same content.
  • Step 409 The controller sends the seventh indication information to the second switch, to instruct the second switch to delete the cached content of the same content and the heat of the same content, and end the current process.
  • the second switch After the second switch deletes the cached content, the second switch can forward the content request access message after the second switch receives the content request access message again, and the second switch can forward the content request access message, and The heat information of the same content is no longer added. Therefore, by sending the seventh indication information, the controller implements reconfiguration of the cache resources on the switch in the network according to the heat information.
  • Step 410 The controller sends the eighth indication information to the second switch, to indicate that the second switch deletes the heat information of the same content, and ends the current process.
  • the controller may sort the heat information of the same content of the multiple switches to obtain the sorting result of the heat information of the first content, for example, the controller may use the heat information of the same content. Counting the number of accesses that the same content is accessed on different switches, and then determining at least one switch as the first switch that retains the same content in descending order of access times, and determining that the switch other than the first switch deletes the switch The second switch of the same content.
  • the local management and reporting of the hotness information of the content is performed by the switch, so that all the access situations of the content can be recorded, the accuracy of the hot information statistics is improved, and the controller can be reported according to the report.
  • Hot information for resource configuration; and, because the controller can The heat information recorded on the switch is summarized. Therefore, the controller can know the true distribution of the cached content on the switch in the network, and accordingly configure the resources cached in the network to improve the rationality of resource configuration.
  • the present invention also provides an embodiment of a switch and a controller.
  • FIG. 5 it is a block diagram of an embodiment of a switch according to the present invention:
  • the switch includes: a network interface 510, a processor 520, and a transceiver 530.
  • the network interface 510 is configured to connect to the controller through a network.
  • the processor 520 is configured to locally manage heat information of the first content
  • the transceiver 530 is configured to report the heat information to the controller through the network interface, so that the controller controls the cache distribution of the first content according to the heat information.
  • the transceiver 530 is further configured to receive a content request access message, where the processor 520 is specifically configured to: when the content requesting the access request, the content requested by the switch is the switch When the first content is cached, the heat value of the first content is increased.
  • the transceiver 530 is further configured to receive a content request access message, where the content requested by the content request access message is the first content, when the switch is not cached And the first content, the content request access message is forwarded to the controller, and the first indication information of the controller is received; the processor 520 is specifically configured to cache according to the first indication information The first content, and increasing a heat value of the first content.
  • the transceiver 530 is further configured to receive a content request access message, where the content requested by the content request access message is the first content, when the switch is not cached And the first content, forwarding the content request access message to the controller, and receiving the second indication information of the controller; the processor 520 is specifically configured to forward according to the second indication information The content requests an access message to a switch that caches the first content, and increases a heat value of the first content.
  • the transceiver 530 is further configured to receive third indication information that is sent by the controller, where the processor 520 is specifically configured to: according to the third indication information, The heat information of the first content is adjusted.
  • the processor 520 is specifically configured to: when the first timer configured on the switch times out, if the first timer timer component does not receive the request, The content of the first content requests an access message, and the heat information of the first content is adjusted.
  • the processor 520 is specifically configured to reset the heat information of the first content, or reduce the heat value of the first content.
  • the transceiver 530 is configured to receive the fourth indication information sent by the controller, and report the heat information to the controller according to the fourth indication information.
  • the transceiver 530 is specifically configured to report the heat information to the controller when a second timer configured on the switch times out.
  • the processor 520 is further configured to delete the heat information of the first content according to the indication of the controller or according to the configured policy.
  • FIG. 6 a block diagram of another embodiment of the switch of the present invention:
  • the switch includes: a management unit 610 and a reporting unit 620.
  • the management unit 610 is configured to locally manage the heat information of the first content.
  • the reporting unit 620 is configured to report the heat information managed by the management unit to the controller, so that the controller controls the buffer distribution of the first content according to the heat information.
  • a first management sub-unit configured to receive a content request access message, and when the content requested by the content request access message is the first content cached by the switch, increase a heat value of the first content
  • a third management subunit configured to receive a content request access message, where the content requested by the content request access message is the first content, and when the switch does not cache the first content, the switch forwards And the content requesting the access message to the controller, receiving the second indication information of the controller, and forwarding the content request access message to the switch that caches the first content according to the second indication information And increasing the heat value of the first content.
  • the any one of the foregoing subunits increases the heat value of the first content, specifically for acquiring the first a first flow entry corresponding to the content, wherein the first flow entry includes a heat value of the first content, and a heat value of the first content in the first flow entry is increased.
  • the management unit 610 may include at least one of the following subunits (not shown in FIG. 6):
  • a fourth management subunit configured to receive the third indication information sent by the controller, and adjust the heat information of the first content according to the third indication information
  • a fifth management sub-unit configured to: when the first timer provided on the switch times out, if the content requesting the first content is not received during the timeout of the first timer, The heat information of the first content is adjusted.
  • the reporting unit 620 may include at least one of the following subunits (not shown in FIG. 6):
  • the first reporting subunit configured to receive the fourth indication information sent by the controller, and report the heat information to the controller according to the fourth indication information
  • the second reporting subunit is configured to report the heat information to the controller when a second timer set on the switch times out.
  • the switch may further include: (not shown in FIG. 6): a deleting unit, configured to delete the heat information of the first content according to the indication of the controller or according to the configured policy .
  • a deleting unit configured to delete the heat information of the first content according to the indication of the controller or according to the configured policy .
  • the controller includes: a network interface 710, a transceiver 720, and a processor 730.
  • the network interface 710 is configured to connect multiple switches through a network.
  • the transceiver 720 is configured to obtain, by using the network interface 710, heat information of the first content saved on multiple switches in the network;
  • the processor 730 is configured to perform buffering configuration of the first content on the plurality of switches according to the heat information of the first content of the multiple switches.
  • the transceiver 720 is specifically configured to send, to the multiple switches, a message requesting to acquire the heat information of the first content, and receive the returned by the multiple switches.
  • the processor 730 is further configured to: sort the heat information of the first content of the multiple switches, and obtain a sorting result of the heat information of the first content;
  • the processor 730 is specifically configured to perform buffering configuration of the first content on the plurality of switches according to a ranking result of the heat information of the first content.
  • the processor 730 is further configured to perform normalization processing on the heat information of the first content of the multiple switches to obtain the heat information of the first content.
  • the processor 730 is configured to perform buffering of the first content on the plurality of switches according to the normalized processing result.
  • the processor 730 is specifically configured to: determine, according to the heat information of the first content of the multiple switches, one or more switches that need to cache the first content;
  • the transceiver 720 is further configured to: if the first content is cached on the switch that needs to cache the first content, send the fifth indication information, to indicate that the first content is kept cached, or The first content is not cached on the switch that needs to cache the first content, and the sixth indication information is sent to indicate that the first content is cached.
  • the controller includes: an acquisition unit 810 and a configuration unit 820.
  • the obtaining unit 810 may include at least one of the following subunits (not shown in FIG. 8):
  • a first obtaining subunit configured to send, to the plurality of switches, a message requesting to obtain the heat information of the first content, and receive heat information of the first content returned by the multiple switches;
  • the second obtaining sub-unit is configured to receive the heat information of the first content that is reported by the multiple switches according to a preset time period.
  • the controller may further include (not shown in FIG. 8): a sorting unit, configured to sort heat information of the first content of the plurality of switches, to obtain Sorting result of the heat information of the first content;
  • the configuration unit 820 is specifically configured to perform buffering configuration of the first content on the plurality of switches according to a ranking result of the heat information of the first content.
  • the controller may further include (not shown in FIG. 8): a normalization unit, configured to return heat information of the first content of the multiple switches a normalization process, obtaining a normalized processing result of the heat information of the first content;
  • the configuration unit 820 is specifically configured to perform buffering of the first content on the plurality of switches according to the normalization processing result.
  • the configuration unit 820 may include: (not shown in FIG. 8): a first determining subunit, configured to determine, according to the heat information of the first content of the multiple switches One or more switches that need to cache the first content;
  • a first sending subunit configured to: if the first content is cached on the switch that needs to cache the first content, send the fifth indication information, to indicate that the first content is cached, or The first content is not cached on the switch that needs to cache the first content, and the sixth indication information is sent to indicate that the first content is cached.
  • the configuration unit 820 may include (not shown in FIG. 8): a second determining subunit, configured to determine, according to the heat information of the first content of the multiple switches One or more switches that do not need to cache the first content;
  • a second sending subunit configured to: if the first content is cached on the switch that does not need to cache the first content, send seventh indication information, where the first content and the cached content are deleted And the hot content information of the first content, or the first content is not cached on the switch that does not need to cache the first content, and the eighth indication information is sent to indicate that the hotness information of the first content is deleted.
  • the switch locally manages the heat information of the first content, and reports the heat information to the controller, and the controller obtains the heat information of the first content saved on the plurality of switches in the network, according to the multiple switches.
  • the heat information of the first content performs a cache configuration of the first content to the plurality of switches.
  • the embodiment of the present invention can apply the local management and reporting of the hotness information of the content through the switch in the network where the content is cached on the switch, so as to ensure that all access situations of the content can be recorded, and the accuracy of the hot information statistics is improved, and the accuracy is ensured.
  • the controller can perform resource configuration according to the reported heat information;
  • the controller can summarize the heat information recorded on the switch in the network, so that the controller can know the true distribution of the cached content on the switch in the network, and accordingly configure the resources cached in the network to improve resources. Rationality of the configuration.
  • the techniques in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a storage medium such as a ROM/RAM. , a disk, an optical disk, etc., including instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
  • a computer device which may be a personal computer, server, or network device, etc.

Abstract

资源配置方法、交换机及控制器,该资源配置方法包括:交换机本地管理第一内容的热度信息;所述交换机将所述热度信息上报至控制器,以便于所述控制器根据所述热度信息对所述第一内容的缓存分布进行控制。本发明实施例可以应用交换机上缓存有内容的网络中,通过交换机进行内容的热度信息的本地管理和上报,从而保证该内容的所有访问情况都可以被记录,提高热度信息统计的准确性,保证控制器可以根据上报的热度信息进行资源配置;并且,由于可以通过控制器对网络中交换机上记录的热度信息进行汇总,因此可以由控制器获知网络中交换机上缓存内容的真实分布,并据此对网络中缓存的资源进行合理配置,以此提高资源配置的合理性。

Description

资源配置方法、 交换机及控制器
技术领域 本发明涉及网络通信技术领域, 特别涉及资源配置方法、 交换机及控制器。 背景技术
现有内容分发网络 (Content Distributed Network, CDN) 中, 客户端通过域名系 统(Domain Name System, DNS)服务器获得待访问内容所在内容服务器的互联网协 议 (Internet Protocol, IP) 地址, 并通过该 IP地址向内容服务器发送内容获取请求, 该内容获取请求经过网络中交换机的转发,最终传输到内容服务器, 内容服务器从缓 存中获取待访问的内容, 并将该内容下发给客户端。
随着互联网规模的扩大, 软件定义网络 (Software Defined Network, SDN)应运 而生, SDN网络采用 OpenFlow (开放流)协议,支持开放接口和多控制的交换。 SDN 网络将网络设备的控制平面与数据转发平面进行分离,从而可以对网络流量进行灵活 控制。其中控制平面的功能由控制器(Controller)实现,主要负责下发流量转发策略; 数据转发平面的功能由交换机 (Switch, 简称 SW) 实现, 主要用于接收控制器下发 的流表, 并根据该流表对数据报文进行操作。 通常在一个 SDN网络中, 控制器与每 个交换机相连, 交换机之间通过相互连接实现数据报文的转发。
在基于 SDN网络实现内容分发时, 由于网络中交换机可以具有缓存空间, 可以 缓存内容, 因此可以利用交换机缓存待访问内容, 以提高内容访问的速度, 并节省网 络传输资源。当某个交换机在转发客户端发送的内容获取请求过程中, 如果确认该交 换机上缓存有该内容获取请求待访问的内容时, 可以直接向客户端返回该内容的响 应, 而不必由内容服务器提供待访问的内容。在上述情况下, 如何合理配置缓存资源 是丞待解决的问题。 发明内容
本发明实施例提供了资源配置方法、交换机及控制器,用以解决在基于 OpenFlow 的内容存储网络中, 缓存资源配置不合理的问题。
为了解决上述技术问题, 本发明实施例公开了如下技术方案:
第一方面, 提供一种资源配置的方法, 包括: 交换机本地管理第一内容的热度信息;
所述交换机将所述热度信息上报至控制器,以便于所述控制器根据所述热度信息 对所述第一内容的缓存分布进行控制。
结合第一方面,在第一方面的第一种可能的实现方式中,所述交换机本地管理所 述第一内容的热度信息, 包括:
所述交换机接收内容请求访问报文;
当所述内容请求访问报文所请求的内容为所述交换机缓存的第一内容时,增加所 述第一内容的热度值。
结合第一方面,在第一方面的第二种可能的实现方式中,所述交换机本地管理所 述第一内容的热度信息, 包括:
所述交换机接收内容请求访问报文,所述内容请求访问报文所请求的内容为所述 第一内容;
当所述交换机未缓存所述第一内容时,所述交换机转发所述内容请求访问报文至 所述控制器;
所述交换机接收所述控制器的第一指示信息;
所述交换机根据所述第一指示信息缓存所述第一内容,并增加所述第一内容的热 结合第一方面,在第一方面的第三种可能的实现方式中,所述交换机本地管理所 述第一内容的热度信息, 包括:
所述交换机接收内容请求访问报文,所述内容请求访问报文所请求的内容为所述 第一内容;
当所述交换机未缓存所述第一内容时,所述交换机转发所述内容请求访问报文至 所述控制器;
所述交换机接收所述控制器的第二指示信息;
所述交换机根据所述第二指示信息转发所述内容请求访问报文至缓存有所述第 一内容的交换机, 并增加所述第一内容的热度值。
结合第一方面的第一种可能的实现方式, 或第一方面的第二种可能的实现方式, 或第一方面的第三种可能的实现方式,在第一方面的第四种可能的实现方式中,所述 增加所述第一内容的热度值, 包括:
所述交换机获取所述第一内容对应的第一流表项,其中所述第一流表项包括所述 第一内容的热度值; 所述交换机增加所述第一流表项中所述第一内容的热度值。
结合第一方面,在第一方面的第五种可能的实现方式中,所述交换机本地管理第 一内容的热度信息, 包括:
所述交换机接收所述控制器发送的第三指示信息;
所述交换机根据所述第三指示信息对所述第一内容的热度信息进行调整。
结合第一方面,在第一方面的第六种可能的实现方式中,所述交换机本地管理第 一内容的热度信息, 包括:
当所述交换机上设有的第一定时器超时时,若所述交换机在所述第一定时器计时 期间未收到请求所述第一内容的内容请求访问报文,所述交换机对所述第一内容的热 度信息进行调整。
结合第一方面的第五种可能的实现方式, 或第一方面的第六种可能的实现方式, 在第一方面的第七种可能的实现方式中, 所述对所述第一内容的热度信息进行调整, 包括:
重置所述第一内容的热度信息; 或者,
减少所述第一内容的热度值。
结合第一方面, 或第一方面的第一种可能的实现方式, 或第一方面的第二种可能 的实现方式, 或第一方面的第三种可能的实现方式, 或第一方面的第四种可能的实现 方式, 或第一方面的第五种可能的实现方式, 或第一方面的第六种可能的实现方式, 或第一方面的第七种可能的实现方式,在第一方面的第八种可能的实现方式中,所述 交换机将所述热度信息上报至控制器, 包括:
所述交换机接收所述控制器发送的第四指示信息;
所述交换机根据所述第四指示信息上报所述热度信息至所述控制器。
结合第一方面, 或第一方面的第一种可能的实现方式, 或第一方面的第二种可能 的实现方式, 或第一方面的第三种可能的实现方式, 或第一方面的第四种可能的实现 方式, 或第一方面的第五种可能的实现方式, 或第一方面的第六种可能的实现方式, 或第一方面的第七种可能的实现方式,在第一方面的第九种可能的实现方式中,所述 交换机将所述热度信息上报至控制器, 包括:
当所述交换机上设有的第二定时器超时时,所述交换机上报所述热度信息至所述 控制器。
结合第一方面, 或第一方面的第一种可能的实现方式, 或第一方面的第二种可能 的实现方式, 或第一方面的第三种可能的实现方式, 或第一方面的第四种可能的实现 方式, 或第一方面的第五种可能的实现方式, 或第一方面的第六种可能的实现方式, 或第一方面的第七种可能的实现方式, 或第一方面的第八种可能的实现方式, 或第一 方面的第九种可能的实现方式, 在第一方面的第十种可能的实现方式中, 还包括: 所述交换机根据所述控制器的指示或者根据配置的策略删除所述第一内容的热 度信息。
第二方面, 提供一种资源配置方法, 包括:
控制器获取网络中多个交换机上保存的第一内容的热度信息;
所述控制器根据所述多个交换机的所述第一内容的热度信息对所述多个交换机 进行所述第一内容的缓存的配置。
结合第二方面,在第二方面的第一种可能的实现方式中,所述控制器获取网络中 多个交换机上保存的第一内容的热度信息, 包括:
所述控制器向所述多个交换机发送请求获取所述第一内容的热度信息的报文,并 接收所述多个交换机返回的所述第一内容的热度信息; 或者,
所述控制器接收所述多个交换机按照预设的时间周期向所述控制器上报的所述 第一内容的热度信息。
结合第二方面, 或第二方面的第一种可能的实现方式,在第二方面的第二种可能 的实现方式中, 还包括:
所述控制器对所述多个交换机的所述第一内容的热度信息进行排序,获得所述第 一内容的热度信息的排序结果;
所述控制器根据所述多个交换机的所述第一内容的热度信息对所述多个交换机 进行所述第一内容的缓存的配置, 包括:
所述控制器根据所述第一内容的热度信息的排序结果对所述多个交换机进行所 述第一内容的缓存的配置。
结合第二方面, 或第二方面的第一种可能的实现方式,在第二方面的第三种可能 的实现方式中, 还包括:
所述控制器对所述多个交换机的所述第一内容的热度信息进行归一化处理,获得 所述第一内容的热度信息的归一化处理结果;
所述控制器根据所述多个交换机的所述第一内容的热度信息对所述多个交换机 进行所述第一内容的缓存的配置, 包括:
所述控制器根据所述归一化处理结果对所述多个交换机进行所述第一内容的缓 存的配置。 结合第二方面, 或第二方面的第一种可能的实现方式, 或第二方面的第二种可能 的实现方式,在第二方面的第三种可能的实现方式中,所述控制器根据所述多个交换 机的所述第一内容的热度信息对所述多个交换机进行所述第一内容的缓存的配置,包 括:所述控制器根据所述多个交换机的所述第一内容的热度信息确定一个或多个需缓 存所述第一内容的交换机;
若所述需缓存所述第一内容的交换机上已缓存所述第一内容,所述控制器发送第 五指示信息, 用于指示保持缓存所述第一内容; 或者,
若所述需缓存所述第一内容的交换机上未缓存所述第一内容,所述控制器发送第 六指示信息, 用于指示缓存所述第一内容。
结合第二方面, 或第二方面的第一种可能的实现方式, 或第二方面的第二种可能 的实现方式,在第二方面的第四种可能的实现方式中,所述控制器根据所述多个交换 机的所述第一内容的热度信息对所述多个交换机进行所述第一内容的缓存的配置,包 括:所述控制器根据所述多个交换机的所述第一内容的热度信息确定一个或多个无需 缓存所述第一内容的交换机;
若所述无需缓存所述第一内容的交换机上已缓存所述第一内容,所述控制器发送 第七指示信息,用于指示删除已缓存的所述第一内容和所述第一内容的热度信息; 或 者,
若所述无需缓存所述第一内容的交换机上未缓存所述第一内容,所述控制器发送 第八指示信息, 用于指示删除所述第一内容的热度信息。
第三方面, 提供一种交换机, 所述交换机包括: 网络接口、 处理器和收发器, 其 中,
所述网络接口, 用于通过网络连接控制器;
所述处理器, 用于本地管理第一内容的热度信息;
所述收发器,用于通过所述网络接口将所述热度信息上报至控制器, 以便于所述 控制器根据所述热度信息对所述第一内容的缓存分布进行控制。
结合第三方面, 在第三方面的第一种可能的实现方式中, 所述收发器, 还用于接 收内容请求访问报文;
所述处理器,具体用于当所述内容请求访问报文所请求的内容为所述交换机缓存 的第一内容时, 增加所述第一内容的热度值。
结合第三方面, 在第三方面的第二种可能的实现方式中, 所述收发器, 还用于接 收内容请求访问报文,所述内容请求访问报文所请求的内容为所述第一内容, 当所述 交换机未缓存所述第一内容时,转发所述内容请求访问报文至所述控制器, 并接收所 述控制器的第一指示信息;
所述处理器, 具体用于根据所述第一指示信息缓存所述第一内容, 并增加所述第 一内容的热度值。
结合第三方面, 在第三方面的第三种可能的实现方式中, 所述收发器, 还用于接 收内容请求访问报文,所述内容请求访问报文所请求的内容为所述第一内容, 当所述 交换机未缓存所述第一内容时,转发所述内容请求访问报文至所述控制器, 并接收所 述控制器的第二指示信息;
所述处理器,具体用于根据所述第二指示信息转发所述内容请求访问报文至缓存 有所述第一内容的交换机, 并增加所述第一内容的热度值。
结合第三方面的第一种可能的实现方式, 或第三方面的第二种可能的实现方式, 或第三方面的第三种可能的实现方式,在第三方面的第四种可能的实现方式中,所述 处理器, 具体用于获取所述第一内容对应的第一流表项,其中所述第一流表项包括所 述第一内容的热度值, 并增加所述第一流表项中所述第一内容的热度值。
结合第三方面, 在第三方面的第五种可能的实现方式中, 所述收发器, 还用于接 收所述控制器发送的第三指示信息;
所述处理器,具体用于根据所述第三指示信息对所述第一内容的热度信息进行调 整。
结合第三方面, 在第三方面的第六种可能的实现方式中, 所述处理器, 具体用于 当所述交换机上设有的第一定时器超时时,若在所述第一定时器计时器件未收到请求 所述第一内容的内容请求访问报文, 对所述第一内容的热度信息进行调整。
结合第三方面的第五种可能的实现方式, 或第三方面的第六种可能的实现方式, 在第三方面的第七种可能的实现方式中,所述处理器, 具体用于重置所述第一内容的 热度信息, 或者, 减少所述第一内容的热度值。
结合第三方面, 或第三方面的第一种可能的实现方式, 或第三方面的第二种可能 的实现方式, 或第三方面的第三种可能的实现方式, 或第三方面的第四种可能的实现 方式, 或第三方面的第五种可能的实现方式, 或第三方面的第六种可能的实现方式, 或第三方面的第七种可能的实现方式,在第三方面的第八种可能的实现方式中,所述 收发器, 具体用于接收所述控制器发送的第四指示信息, 并根据所述第四指示信息上 报所述热度信息至所述控制器。
结合第三方面, 或第三方面的第一种可能的实现方式, 或第三方面的第二种可能 的实现方式, 或第三方面的第三种可能的实现方式, 或第三方面的第四种可能的实现 方式, 或第三方面的第五种可能的实现方式, 或第三方面的第六种可能的实现方式, 或第三方面的第七种可能的实现方式,在第三方面的第九种可能的实现方式中,所述 收发器, 具体用于当所述交换机上设有的第二定时器超时时, 上报所述热度信息至所 述控制器。
结合第三方面, 或第三方面的第一种可能的实现方式, 或第三方面的第二种可能 的实现方式, 或第三方面的第三种可能的实现方式, 或第三方面的第四种可能的实现 方式, 或第三方面的第五种可能的实现方式, 或第三方面的第六种可能的实现方式, 或第三方面的第七种可能的实现方式, 或第三方面的第八种可能的实现方式, 或第三 方面的第九种可能的实现方式,在第三方面的第十种可能的实现方式中,所述处理器, 还用于根据所述控制器的指示或者根据配置的策略删除所述第一内容的热度信息。
第四方面, 提供一种控制器, 所述控制器包括: 网络接口、 收发器和处理器, 其 中,
所述网络接口, 用于通过网络连接多个交换机;
所述收发器,用于通过所述网络接口获取网络中多个交换机上保存的第一内容的 热度信息;
所处处理器,用于根据所述多个交换机的所述第一内容的热度信息对所述多个交 换机进行所述第一内容的缓存的配置。
结合第四方面, 在第四方面的第一种可能的实现方式中, 所述收发器, 具体用于 向所述多个交换机发送请求获取所述第一内容的热度信息的报文,并接收所述多个交 换机返回的所述第一内容的热度信息,或者接收所述多个交换机按照预设的时间周期 向所述控制器上报的所述第一内容的热度信息。
结合第四方面, 或第四方面的第一种可能的实现方式,在第四方面的第二种可能 的实现方式中,所述处理器,还用于对所述多个交换机的所述第一内容的热度信息进 行排序, 获得所述第一内容的热度信息的排序结果;
所述处理器,具体用于根据所述第一内容的热度信息的排序结果对所述多个交换 机进行所述第一内容的缓存的配置。
结合第四方面, 或第四方面的第一种可能的实现方式,在第四方面的第三种可能 的实现方式中,所述处理器,还用于对所述多个交换机的所述第一内容的热度信息进 行归一化处理, 获得所述第一内容的热度信息的归一化处理结果;
所述处理器,具体用于根据所述归一化处理结果对所述多个交换机进行所述第一 内容的缓存的配置。
结合第四方面, 或第四方面的第一种可能的实现方式, 或第四方面的第二种可能 的实现方式, 在第四方面的第三种可能的实现方式中, 所述处理器, 具体用于根据所 述多个交换机的所述第一内容的热度信息确定一个或多个需缓存所述第一内容的交 换机;
所述收发器, 还用于若所述需缓存所述第一内容的交换机上已缓存所述第一内 容, 发送第五指示信息, 用于指示保持缓存所述第一内容, 或者若所述需缓存所述第 一内容的交换机上未缓存所述第一内容, 发送第六指示信息,用于指示缓存所述第一 内容。
结合第四方面, 或第四方面的第一种可能的实现方式, 或第四方面的第二种可能 的实现方式, 在第四方面的第四种可能的实现方式中, 所述处理器, 具体用于根据所 述多个交换机的所述第一内容的热度信息确定一个或多个无需缓存所述第一内容的 交换机;
所述收发器,还用于若所述无需缓存所述第一内容的交换机上已缓存所述第一内 容, 发送第七指示信息,用于指示删除已缓存的所述第一内容和所述第一内容的热度 信息, 或者, 若所述无需缓存所述第一内容的交换机上未缓存所述第一内容, 发送第 八指示信息, 用于指示删除所述第一内容的热度信息。
第五方面, 提供一种交换机, 包括:
管理单元, 用于本地管理第一内容的热度信息;
上报单元,用于将所述管理单元管理的热度信息上报至控制器, 以便于所述控制 器根据所述热度信息对所述第一内容的缓存分布进行控制。
结合第五方面,在第五方面的第一种可能的实现方式中,所述管理单元包括至少 一个下述子单元:
第一管理子单元,用于接收内容请求访问报文, 当所述内容请求访问报文所请求 的内容为所述交换机缓存的第一内容时, 增加所述第一内容的热度值;
第二管理子单元,用于接收内容请求访问报文,所述内容请求访问报文所请求的 内容为所述第一内容, 当所述交换机未缓存所述第一内容时,所述交换机转发所述内 容请求访问报文至所述控制器,接收所述控制器的第一指示信息, 并根据所述第一指 示信息缓存所述第一内容, 并增加所述第一内容的热度值;
第三管理子单元,用于接收内容请求访问报文,所述内容请求访问报文所请求的 内容为所述第一内容, 当所述交换机未缓存所述第一内容时,所述交换机转发所述内 容请求访问报文至所述控制器,接收所述控制器的第二指示信息, 并根据所述第二指 示信息转发所述内容请求访问报文至缓存有所述第一内容的交换机,并增加所述第一 内容的热度值。
结合第五方面的第一种可能的实现方式, 在第五方面的第二种可能的实现方式 中,所述管理单元包括的至少一个子单元在增加所述第一内容的热度值, 具体用于获 取所述第一内容对应的第一流表项, 其中所述第一流表项包括所述第一内容的热度 值, 增加所述第一流表项中所述第一内容的热度值。
结合第五方面,在第五方面的第三种可能的实现方式中,所述管理单元包括至少 一个下述子单元:
第四管理子单元,用于接收所述控制器发送的第三指示信息, 并根据所述第三指 示信息对所述第一内容的热度信息进行调整;
第五管理子单元,用于当所述交换机上设有的第一定时器超时时,若在所述第一 定时器计时期间未收到请求所述第一内容的内容请求访问报文,对所述第一内容的热 度信息进行调整。
结合第五方面的第三种可能的实现方式, 在第五方面的第四种可能的实现方式 中, 所述管理单元包括的至少一个子单元在对所述第一内容的热度信息进行调整时, 具体用于重置所述第一内容的热度信息, 或者减少所述第一内容的热度值。
结合第五方面, 或第五方面的第一种可能的实现方式, 或第五方面的第二种可能 的实现方式, 或第五方面的第三种可能的实现方式, 或第五方面的第四种可能的实现 方式,在第五方面的第五种可能的实现方式中,所述上报单元包括至少一个下述子单 元:
第一上报子单元,用于接收所述控制器发送的第四指示信息后,根据所述第四指 示信息上报所述热度信息至所述控制器;
第二上报子单元,用于当所述交换机上设有的第二定时器超时时, 上报所述热度 信息至所述控制器。
结合第五方面, 或第五方面的第一种可能的实现方式, 或第五方面的第二种可能 的实现方式, 或第五方面的第三种可能的实现方式, 或第五方面的第四种可能的实现 方式,或第五方面的第五种可能的实现方式,在第五方面的第六种可能的实现方式中, 还包括:
删除单元,用于根据所述控制器的指示或者根据配置的策略删除所述第一内容的 热度信息。 第六方面, 提供一种控制器, 包括:
获取单元, 用于获取网络中多个交换机上保存的第一内容的热度信息; 配置单元,用于根据所述多个交换机的所述第一内容的热度信息对所述多个交换 机进行所述第一内容的缓存的配置。
结合第六方面,在第六方面的第一种可能的实现方式中,所述获取单元包括至少 一个下述子单元:
第一获取子单元,用于向所述多个交换机发送请求获取所述第一内容的热度信息 的报文, 并接收所述多个交换机返回的所述第一内容的热度信息;
第二获取子单元,用于接收所述多个交换机按照预设的时间周期上报的所述第一 内容的热度信息。
结合第六方面, 或第六方面的第一种可能的实现方式,在第六方面的第二种可能 的实现方式中, 所述控制器还包括:
排序单元,用于对所述多个交换机的所述第一内容的热度信息进行排序, 获得所 述第一内容的热度信息的排序结果;
所述配置单元,具体用于根据所述第一内容的热度信息的排序结果对所述多个交 换机进行所述第一内容的缓存的配置。
结合第六方面, 或第六方面的第一种可能的实现方式,在第六方面的第三种可能 的实现方式中, 所述控制器还包括:
归一化单元, 用于对所述多个交换机的所述第一内容的热度信息进行归一化处 理, 获得所述第一内容的热度信息的归一化处理结果;
所述配置单元,具体用于根据所述归一化处理结果对所述多个交换机进行所述第 一内容的缓存的配置。
结合第六方面的第一种可能的实现方式, 或第六方面的第二种可能的实现方式, 或第六方面的第三种可能的实现方式,在第六方面的第四种可能的实现方式中,所述 配置单元包括:
第一确定子单元,用于根据所述多个交换机的所述第一内容的热度信息确定一个 或多个需缓存所述第一内容的交换机;
第一发送子单元,用于若所述需缓存所述第一内容的交换机上已缓存所述第一内 容, 发送第五指示信息, 用于指示保持缓存所述第一内容, 或者, 若所述需缓存所述 第一内容的交换机上未缓存所述第一内容, 发送第六指示信息,用于指示缓存所述第 一内容。 结合第六方面的第一种可能的实现方式, 或第六方面的第二种可能的实现方式, 或第六方面的第三种可能的实现方式,在第六方面的第五种可能的实现方式中,所述 配置单元包括:
第二确定子单元,用于根据所述多个交换机的所述第一内容的热度信息确定一个 或多个无需缓存所述第一内容的交换机;
第二发送子单元,用于若所述无需缓存所述第一内容的交换机上已缓存所述第一 内容, 发送第七指示信息,用于指示删除已缓存的所述第一内容和所述第一内容的热 度信息, 或者, 若所述无需缓存所述第一内容的交换机上未缓存所述第一内容, 发送 第八指示信息, 用于指示删除所述第一内容的热度信息。
本发明实施例中, 交换机本地管理第一内容的热度信息, 并将热度信息上报至控 制器,控制器获取网络中多个交换机上保存的第一内容的热度信息后,根据所述多个 交换机的所述第一内容的热度信息对所述多个交换机进行所述第一内容的缓存的配 置。本发明实施例可以应用交换机上缓存有内容的网络中,通过交换机进行内容的热 度信息的本地管理和上报, 从而保证该内容的所有访问情况都可以被记录,提高热度 信息统计的准确性, 保证控制器可以根据上报的热度信息进行资源配置; 并且, 由于 可以通过控制器对网络中交换机上记录的热度信息进行汇总,因此可以由控制器获知 网络中交换机上缓存内容的真实分布, 并据此对网络中缓存的资源进行合理配置, 以 此提高资源配置的合理性。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现 有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅 是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前 提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例 SDN网络架构示意图;
图 2A为本发明资源配置方法的一个实施例流程图;
图 2B为本发明资源配置方法的另一个实施例流程图;
图 3为本发明资源配置方法的另一个实施例流程图;
图 4为本发明资源配置方法的另一个实施例流程图;
图 5为本发明交换机的一个实施例框图;
图 6为本发明交换机的另一个实施例框图; 图 7为本发明控制器的一个实施例框图;
图 8为本发明控制器的另一个实施例框图。 具体实施方式
本发明如下实施例提供了资源配置方法、交换机及控制器。本发明实施例通过网 络中交换机记录热度统计信息, 并由控制器获取所有交换机的热度统计信息, 从而对 网络中的交换机进行有效的资源配置。
为了使本技术领域的人员更好地理解本发明实施例中的技术方案,并使本发明实 施例的上述目的、特征和优点能够更加明显易懂, 下面结合附图对本发明实施例中技 术方案作进一步详细的说明。
参见图 1, 为本发明实施例 SDN网络架构示意图:
作为一种示例, 图 1示出的网络架构中包括: 一个控制器和三个交换机, 分别为 SW1、SW2和 SW3,控制器和交换机之间相互连接。其中,控制器可以为基于 OpenFlow 协议的控制器, 每个交换机上都设置有流表,控制器可以统一对所有交换机上的流表 进行查询和管理。
在 SDN网络中, 交换机在传输每条数据流时, 都需要从控制器获得转发规则, 并将转发规则作为一个表项存储在流表中,即交换机所存储流表的每个表项可以标识 一条数据流。通常当交换机传输某个数据流的首报文时, 由于没有与此数据流匹配的 流表, 因此交换机会将该首报文上报给控制器, 以便向控制器请求该数据流的转发规 贝!」。 现有技术中, 上述流表的内容主要包括匹配域、 计数器和动作集。
本发明实施例中,为了在进行热度信息统计时获得交换机上缓存的内容的访问情 况,可以在具有缓存的交换机的流表中增加统计域,用于对缓存内容的访问情况进行 记录, 从而使得控制器可以根据统计域的信息进行热度统计。本发明实施例中, 统计 域包含的字段可以如下表 1所示:
表 1
Figure imgf000014_0001
上表 1中, 每个 ID (Identity, 标识) 对应一个 Count (计数器); 每个 Count用 于对某个访问内容的访问次数进行统计; Mode (模式) 表示交换机当前工作在缓存 模式 (Cache_Mode), 或者交换机当前工作在非缓存模式 (nonCache_Mode); Action (动作) 可以包括存储数据到缓存 (Add), 从缓存读取数据 (Get), 从缓存删除数 据 ( Delete )。 参见图 2A, 为本发明资源配置方法的一个实施例流程图, 该实施例从交换机侧 描述了资源配置过程:
步骤 201 : 交换机本地管理第一内容的热度信息。
可选的, 交换机可以按照下述至少一种方式对第一内容的热度信息进行本地管 理:
第一种方式, 交换机可以接收内容请求访问报文, 当所述内容请求访问报文所请 求的内容为所述交换机缓存的第一内容时, 增加所述第一内容的热度值;
第二种方式, 交换机可以接收内容请求访问报文, 该内容请求访问报文所请求的 内容为第一内容, 当所述交换机未缓存所述第一内容时,所述交换机转发所述内容请 求访问报文至所述控制器,接收所述控制器的第一指示信息,根据所述第一指示信息 缓存所述第一内容, 并增加所述第一内容的热度值;
第三种方式, 交换机可以接收内容请求访问报文,所述内容请求访问报文所请求 的内容为所述第一内容, 当所述交换机未缓存所述第一内容时,所述交换机转发所述 内容请求访问报文至所述控制器,接收所述控制器的第二指示信息,根据所述第二指 示信息转发所述内容请求访问报文至缓存有所述第一内容的交换机,并增加所述第一 内容的热度值;
第四种方式, 交换机可以接收所述控制器发送的第三指示信息, 并根据所述第三 指示信息对所述第一内容的热度信息进行调整;
第五种方式, 当交换机上设有的第一定时器超时时,若所述交换机在所述第一定 时器计时期间未收到请求所述第一内容的内容请求访问报文,所述交换机可以对所述 第一内容的热度信息进行调整;
上述第一种至第三种可选的实现方式中, 当交换机需要增加第一内容的热度值 时,所述交换机可以获取所述第一内容对应的第一流表项,其中所述第一流表项包括 所述第一内容的热度值, 并增加所述第一流表项中所述第一内容的热度值。 具体的, 所述第一流表项中包含统计域,所述交换机可以在所述统计域的计数字段的信息中增 加所述第一内容的访问次数。
上述第四种和第五种可选的实现方式中,当交换机需要对第一内容的热度信息进 行调整时,所述交换机可以重置所述第一内容的热度信息, 或者减少所述第一内容的 热度值。 步骤 202: 交换机将热度信息上报至控制器, 以便于控制器根据该热度信息对第 一内容的缓存分布进行控制。
可选的, 交换机可以采用任意一种下述方式将热度信息上报至控制器: 第一种方式, 交换机可以接收所述控制器发送的第四指示信息, 并根据所述第四 指示信息上报所述热度信息至所述控制器;
第二种方式, 当交换机上设有的第二定时器超时时, 交换机可以上报所述热度信 息至所述控制器。
进一步,交换机也可以根据控制器的指示或者根据配置的策略删除所述第一内容 的热度信息。
由上述实施例可见, 该实施例可以应用交换机上缓存有内容的网络中,通过交换 机进行内容的热度信息的本地管理和上报,从而保证该内容的所有访问情况都可以被 记录,提高热度信息统计的准确性,保证控制器可以根据上报的热度信息进行资源配 置。 参见图 2B, 为本发明资源配置方法的另一个实施例流程图, 该实施例从控制器 侧描述了资源配置过程:
步骤 211 : 控制器获取网络中多个交换机上保存的第一内容的热度信息。
可选的,控制器可以向所述多个交换机发送请求获取所述第一内容的热度信息的 报文, 并接收所述多个交换机返回的所述第一内容的热度信息; 或者, 控制器也可以 接收所述多个交换机按照预设的时间周期向所述控制器上报的所述第一内容的热度 信息。
步骤 212: 控制器根据多个交换机的第一内容的热度信息对多个交换机进行第一 内容的缓存的配置。
可选的, 控制器可以按照任意一种下述方式对第一内容的缓存进行配置: 第一种方式, 控制器可以对所述多个交换机的所述第一内容的热度信息进行排 序, 获得所述第一内容的热度信息的排序结果, 并根据所述第一内容的热度信息的排 序结果对所述多个交换机进行所述第一内容的缓存的配置;
第二种方式,控制器可以对所述多个交换机的所述第一内容的热度信息进行归一 化处理, 获得所述第一内容的热度信息的归一化处理结果, 并根据所述归一化处理结 果对所述多个交换机进行所述第一内容的缓存的配置。
第三种方式,控制器可以根据所述多个交换机的所述第一内容的热度信息确定一 个或多个需缓存所述第一内容的交换机,若所述需缓存所述第一内容的交换机上已缓 存所述第一内容, 所述控制器发送第五指示信息, 用于指示保持缓存所述第一内容, 或者若所述需缓存所述第一内容的交换机上未缓存所述第一内容,所述控制器发送第 六指示信息, 用于指示缓存所述第一内容;
第四种方式,所述控制器可以根据所述多个交换机的所述第一内容的热度信息确 定一个或多个无需缓存所述第一内容的交换机,若所述无需缓存所述第一内容的交换 机上已缓存所述第一内容,所述控制器发送第七指示信息,用于指示删除已缓存的所 述第一内容和所述第一内容的热度信息,或者若所述无需缓存所述第一内容的交换机 上未缓存所述第一内容,所述控制器发送第八指示信息,用于指示删除所述第一内容 的热度信息。
由上述实施例可见,由于该实施例可以通过控制器对网络中交换机上记录的热度 信息进行汇总, 因此可以由控制器获知网络中交换机上缓存内容的真实分布, 并据此 对网络中缓存的资源进行合理配置, 以此提高资源配置的合理性。 参见图 3, 为本发明资源配置方法的另一个实施例流程图, 该实施例通过交换机 与控制器之间的交互详细示出了对热度信息进行处理的过程:
步骤 301 : 交换机接收内容请求访问报文。
本实施例中, 当与交换机相连的主机设备需要访问网络中的内容时,可以向该交 换机发送内容请求访问报文。 本发明实施例中, 内容可以由内容的 IP地址或者 URL 进行标识。
步骤 302: 判断交换机上是否缓存有该内容请求访问报文待访问的内容, 若是, 则执行步骤 303 ; 否则, 执行步骤 304。
交换机接收到内容请求访问报文后,可以从保存的流表中匹配该内容请求访问报 文对应的流表项, 并根据该流表项中的转发规则对该内容请求访问报文进行转发。本 实施例中,交换机可以从所匹配流表项的统计域的 Mode字段中判断该交换机上是否 缓存有待访问的内容, 当 Mode字段中信息为 Cache_Mode时, 表示该交换机中缓存 有待访问的内容, 当 Mode字段中信息为 nonCache_Mode时, 表示该交换机中未缓 存待访问的内容。
步骤 303 : 交换机增加待访问的内容的热度信息, 结束当前流程。
当交换机上缓存有内容请求访问报文待访问的内容时,如果所匹配流表项的统计 域的 Count字段有信息, 表示该待请求的内容已经被访问过, 因此交换机可以根据所 匹配流表项的统计域中的 Action字段的信息 (Get), 从交换机的缓存中获取该待访 问的内容, 并在统计域的 Count 字段的信息中增加该待访问的内容的访问次数, 将 Count值加 1。
步骤 304: 交换机将该内容请求访问报文转发至控制器。
当交换机上未缓存内容请求访问报文待访问的内容时,交换机可以将该内容请求 访问报文转发到控制器。具体的, 当交换机在流表中未匹配到该内容请求访问报文对 应的流表项时,可以向控制器发送 PACKETJN消息,以请求该消息对应的处理策略, 例如, 从某个交换机中获取待访问的内容。
步骤 305: 控制器判断网络中是否有其它交换机缓存有待访问的内容, 若是, 则 执行步骤 308; 否则, 执行步骤 306。
由于本实施例中,控制器与网络中的所有交换机连接, 因此控制器可以通过与这 些交换机之间的交互, 同步更新所保存每个交换机的流表项, 从而根据这些流表项可 以获得网络中交换机上所缓存内容的信息。
步骤 306: 控制器向交换机下发表项更新报文。
当控制器确定网络中没有交换机缓存有待访问的内容时,则控制器可以向交换机 下发表项更新报文, 例如可以具体为 MODIFY消息, 或者 CREATE消息等。
步骤 307: 交换机根据控制器下发的表项更新报文增加待访问的内容的热度信 息, 结束当前流程。
交换机接收到表项更新报文后, 可以根据该报文中携带的信息执行相应的动作。 例如, 一种情况下, 可以为内容请求访问报文设置对应的流表项, 并根据流表项中的 动作对该报文进行转发; 在另一种情况下, 如果该交换机上缓存有待访问的内容, 但 是对应的流表项的老化时间已到,则交换机在步骤 302中也会判断未缓存待访问的内 容, 而控制器由于可以获得网络中所有交换机上缓存内容的情况, 即控制器可以获知 该交换机上缓存有待访问的内容, 因此在向交换机发送的表项更新报文中,可以携带 获取缓存的指令,交换机根据该表项更新报文为该内容请求访问报文设置对应的流表 项, 并根据该流表项中的动作从缓存中获取待访问的内容。交换机在执行完流表项中 的动作后, 将流表项统计域的 Count字段值加 1, 以记录内容被访问的信息。
步骤 308: 控制器向交换机下发转发报文指令, 转发报文指令中包含缓存有待访 问的内容的目标交换机的标识。
当控制器确定网络中有交换机缓存待访问的内容时,则控制器可以从中确定一个 目标交换机, 并向交换机下发包含该目标交换机的标识的转发报文指令。 步骤 309: 交换机根据控制器下发的转发报文指令, 向该目标交换机转发内容请 求访问报文。
步骤 310: 目标交换机根据内容请求访问报文增加待访问的内容的热度信息。 目标交换机增加待访问的内容的热度信息的过程与步骤 303中的描述一致,在此 不再赘述。
步骤 311 : 控制器判断是否对网络中交换机执行去冗余处理, 若是, 则结束当前 流程; 否则, 返回步骤 306。
当网络中交换机未执行去冗余过程, 则返回步骤 306, 控制器向交换机下发表项 更新报文, 并由交换机根据控制器下发的表项更新报文增加待访问的内容的热度信 息, 在此不再赘述; 当网络中交换机已执行过去冗余处理, 则该交换机对待访问的内 容不执行增加热度信息。
由上述实施例可见, 该实施例可以应用交换机上缓存有内容的网络中,通过交换 机进行内容的热度信息的本地管理和上报,从而保证该内容的所有访问情况都可以被 记录,提高热度信息统计的准确性,保证控制器可以根据上报的热度信息进行资源配 置。 参见图 4, 为本发明资源配置方法的另一个实施例流程图, 该实施例通过交换机 与控制器之间的交互详细示出了资源配置的过程:
步骤 401 : 控制器获取网络中多个交换机上保存的热度信息, 每个交换机上保存 的热度信息为交换机上缓存的内容被访问的信息。
本实施例中, 控制器可以向多个交换机发送信息获取报文, 例如, 该信息获取报 文可以具体为 GET_STAT消息, 并接收所述多个交换机根据所述信息获取报文返回 的热度信息;或者控制器可以接收所述多个交换机按照预设的时间周期向所述控制器 上报的热度信息, 例如, 每个交换机上可以设置定时器, 当定时周期到达时, 交换机 可以向控制器发送 PUT_STAT消息, 该 PUT_STAT消息中携带热度信息。
步骤 402: 控制器获取不同交换机上缓存的同一内容的热度信息, 分别执行步骤 403和步骤 407。
步骤 403: 控制器根据该同一内容的热度信息确定一个或多个需缓存该同一内容 的第一交换机。
步骤 404: 判断第一交换机上是否缓存该同一内容, 若是, 则执行步骤 405 ; 否 贝 U, 执行步骤 406。 步骤 405 : 控制器向第一交换机发送第五指示信息, 用于指示第一交换机保持缓 存该同一内容, 结束当前流程。
步骤 406: 控制器向第一交换机发送第六指示信息, 用于指示第一交换机缓存该 同一内容, 结束当前流程。
步骤 407: 控制器根据该同一内容的热度信息确定一个或多个无需缓存该同一内 容的第二交换机。
步骤 408: 判断第二交换机上是否缓存该同一内容, 若是, 则执行步骤 409; 否 贝 U, 执行步骤 410。
步骤 409: 控制器向第二交换机发送第七指示信息, 用于指示第二交换机删除已 缓存的该同一内容和同一内容的热度信息, 结束当前流程。
其中,第二交换机删除缓存的该同一内容后,后续第二交换机再次接收到内容请 求访问报文后, 由于已删除缓存的该同一内容, 因此第二交换机可以转发该内容请求 访问报文, 并不再增加该同一内容的热度信息。 由此控制器通过发送第七指示信息, 实现了根据热度信息对网络中交换机上缓存资源的重配置。
步骤 410: 控制器向第二交换机发送第八指示信息, 用于指示第二交换机删除该 同一内容的热度信息, 结束当前流程。
上述步骤 403和步骤 407中,控制器可以采用排序方式或者归一化处理方式确定 是否需要缓存该同一内容的交换机。
其中,在采用排序方式时,控制器可以对多个交换机的该同一内容的热度信息进 行排序, 获得所述第一内容的热度信息的排序结果, 例如, 控制器可以根据同一内容 的热度信息, 统计同一内容在不同交换机上被访问的访问次数,然后按照访问次数从 高到低的顺序将至少一个交换机确定为保留该同一内容的第一交换机,将除第一交换 机外的交换机确定为删除该同一内容的第二交换机。
其中,在采用归一化方式时,控制器对多个交换机的该同一内容的热度信息进行 归一化处理, 获得第一内容的热度信息的归一化处理结果, 例如, 控制器可以通过归 一化处理获得每个交换机的比重,按照比重从高到低的排列顺序将至少一个交换机确 定为保留该同一内容的第一交换机,将除第一交换机外的交换机确定为删除该同一内 容的第二交换机。
由上述实施例可见, 该实施例通过交换机进行内容的热度信息的本地管理和上 报, 从而保证该内容的所有访问情况都可以被记录, 提高热度信息统计的准确性, 保 证控制器可以根据上报的热度信息进行资源配置; 并且, 由于可以通过控制器对网络 中交换机上记录的热度信息进行汇总,因此可以由控制器获知网络中交换机上缓存内 容的真实分布, 并据此对网络中缓存的资源进行合理配置, 以此提高资源配置的合理 性。 与本发明资源配置方法的实施例相对应,本发明还提供了交换机及控制器的实施 例。
参见图 5, 为本发明交换机的一个实施例框图:
该交换机包括: 网络接口 510、 处理器 520和收发器 530。
其中, 所述网络接口 510, 用于通过网络连接控制器;
所述处理器 520, 用于本地管理第一内容的热度信息;
所述收发器 530, 用于通过所述网络接口将所述热度信息上报至控制器, 以便于 所述控制器根据所述热度信息对所述第一内容的缓存分布进行控制。
在一个可选的实现方式中: 所述收发器 530, 还用于接收内容请求访问报文; 所 述处理器 520, 具体用于当所述内容请求访问报文所请求的内容为所述交换机缓存的 第一内容时, 增加所述第一内容的热度值。
在另一个可选的实现方式中: 所述收发器 530, 还用于接收内容请求访问报文, 所述内容请求访问报文所请求的内容为所述第一内容,当所述交换机未缓存所述第一 内容时,转发所述内容请求访问报文至所述控制器, 并接收所述控制器的第一指示信 息; 所述处理器 520, 具体用于根据所述第一指示信息缓存所述第一内容, 并增加所 述第一内容的热度值。
在另一个可选的实现方式中: 所述收发器 530, 还用于接收内容请求访问报文, 所述内容请求访问报文所请求的内容为所述第一内容,当所述交换机未缓存所述第一 内容时,转发所述内容请求访问报文至所述控制器, 并接收所述控制器的第二指示信 息; 所述处理器 520, 具体用于根据所述第二指示信息转发所述内容请求访问报文至 缓存有所述第一内容的交换机, 并增加所述第一内容的热度值。
在另一个可选的实现方式中: 所述处理器 520, 具体用于获取所述第一内容对应 的第一流表项,其中所述第一流表项包括所述第一内容的热度值, 并增加所述第一流 表项中所述第一内容的热度值。
在另一个可选的实现方式中: 所述收发器 530, 还用于接收所述控制器发送的第 三指示信息; 所述处理器 520, 具体用于根据所述第三指示信息对所述第一内容的热 度信息进行调整。 在另一个可选的实现方式中: 所述处理器 520, 具体用于当所述交换机上设有的 第一定时器超时时,若在所述第一定时器计时器件未收到请求所述第一内容的内容请 求访问报文, 对所述第一内容的热度信息进行调整。
在另一个可选的实现方式中: 所述处理器 520, 具体用于重置所述第一内容的热 度信息, 或者, 减少所述第一内容的热度值。
在另一个可选的实现方式中: 所述收发器 530, 具体用于接收所述控制器发送的 第四指示信息, 并根据所述第四指示信息上报所述热度信息至所述控制器。
在另一个可选的实现方式中: 所述收发器 530, 具体用于当所述交换机上设有的 第二定时器超时时, 上报所述热度信息至所述控制器。
在另一个可选的实现方式中: 所述处理器 520, 还用于根据所述控制器的指示或 者根据配置的策略删除所述第一内容的热度信息。 参见图 6, 为本发明交换机的另一个实施例框图:
该交换机包括: 管理单元 610和上报单元 620。
其中, 管理单元 610, 用于本地管理第一内容的热度信息;
上报单元 620, 用于将所述管理单元管理的热度信息上报至控制器, 以便于所述 控制器根据所述热度信息对所述第一内容的缓存分布进行控制。
在一个可选的实现方式中: 所述管理单元 610可以包括至少一个下述子单元(图 6中未示出):
第一管理子单元,用于接收内容请求访问报文, 当所述内容请求访问报文所请求 的内容为所述交换机缓存的第一内容时, 增加所述第一内容的热度值;
第二管理子单元,用于接收内容请求访问报文,所述内容请求访问报文所请求的 内容为所述第一内容, 当所述交换机未缓存所述第一内容时,所述交换机转发所述内 容请求访问报文至所述控制器,接收所述控制器的第一指示信息, 并根据所述第一指 示信息缓存所述第一内容, 并增加所述第一内容的热度值;
第三管理子单元,用于接收内容请求访问报文,所述内容请求访问报文所请求的 内容为所述第一内容, 当所述交换机未缓存所述第一内容时,所述交换机转发所述内 容请求访问报文至所述控制器,接收所述控制器的第二指示信息, 并根据所述第二指 示信息转发所述内容请求访问报文至缓存有所述第一内容的交换机,并增加所述第一 内容的热度值。
其中, 上述任意一个子单元在增加所述第一内容的热度值, 具体用于获取所述第 一内容对应的第一流表项,其中所述第一流表项包括所述第一内容的热度值,增加所 述第一流表项中所述第一内容的热度值。
在另一个可选的实现方式中: 所述管理单元 610 可以包括至少一个下述子单元 (图 6中未示出):
第四管理子单元,用于接收所述控制器发送的第三指示信息, 并根据所述第三指 示信息对所述第一内容的热度信息进行调整;
第五管理子单元,用于当所述交换机上设有的第一定时器超时时,若在所述第一 定时器计时期间未收到请求所述第一内容的内容请求访问报文,对所述第一内容的热 度信息进行调整。
其中, 上述任意一个子单元在对所述第一内容的热度信息进行调整时, 具体用于 重置所述第一内容的热度信息, 或者减少所述第一内容的热度值。
在另一个可选的实现方式中: 所述上报单元 620 可以包括至少一个下述子单元 (图 6中未示出):
第一上报子单元,用于接收所述控制器发送的第四指示信息后,根据所述第四指 示信息上报所述热度信息至所述控制器;
第二上报子单元,用于当所述交换机上设有的第二定时器超时时, 上报所述热度 信息至所述控制器。
在另一个可选的实现方式中: 该交换机还可以包括(图 6中未示出): 删除单元, 用于根据所述控制器的指示或者根据配置的策略删除所述第一内容的热度信息。 参见图 7, 为本发明控制器的实施例框图:
该控制器包括: 网络接口 710、 收发器 720和处理器 730。
其中, 所述网络接口 710, 用于通过网络连接多个交换机;
所述收发器 720, 用于通过所述网络接口 710获取网络中多个交换机上保存的第 一内容的热度信息;
所处处理器 730, 用于根据所述多个交换机的所述第一内容的热度信息对所述多 个交换机进行所述第一内容的缓存的配置。
在一个可选的实现方式中: 所述收发器 720, 具体用于向所述多个交换机发送请 求获取所述第一内容的热度信息的报文,并接收所述多个交换机返回的所述第一内容 的热度信息,或者接收所述多个交换机按照预设的时间周期向所述控制器上报的所述 第一内容的热度信息。 在另一个可选的实现方式中: 所述处理器 730, 还用于对所述多个交换机的所述 第一内容的热度信息进行排序, 获得所述第一内容的热度信息的排序结果; 所述处理 器 730, 具体用于根据所述第一内容的热度信息的排序结果对所述多个交换机进行所 述第一内容的缓存的配置。
在另一个可选的实现方式中: 所述处理器 730, 还用于对所述多个交换机的所述 第一内容的热度信息进行归一化处理,获得所述第一内容的热度信息的归一化处理结 果; 所述处理器 730, 具体用于根据所述归一化处理结果对所述多个交换机进行所述 第一内容的缓存的配置。
在另一个可选的实现方式中: 所述处理器 730, 具体用于根据所述多个交换机的 所述第一内容的热度信息确定一个或多个需缓存所述第一内容的交换机;所述收发器 720, 还用于若所述需缓存所述第一内容的交换机上已缓存所述第一内容, 发送第五 指示信息,用于指示保持缓存所述第一内容, 或者若所述需缓存所述第一内容的交换 机上未缓存所述第一内容, 发送第六指示信息, 用于指示缓存所述第一内容。
在另一个可选的实现方式中: 所述处理器 730, 具体用于根据所述多个交换机的 所述第一内容的热度信息确定一个或多个无需缓存所述第一内容的交换机;所述收发 器 720, 还用于若所述无需缓存所述第一内容的交换机上已缓存所述第一内容, 发送 第七指示信息,用于指示删除已缓存的所述第一内容和所述第一内容的热度信息, 或 者,若所述无需缓存所述第一内容的交换机上未缓存所述第一内容, 发送第八指示信 息, 用于指示删除所述第一内容的热度信息。 参见图 8, 为本发明控制器的另一个实施例框图:
该控制器包括: 获取单元 810和配置单元 820。
其中,获取单元 810,用于获取网络中多个交换机上保存的第一内容的热度信息; 配置单元 820, 用于根据所述多个交换机的所述第一内容的热度信息对所述多个 交换机进行所述第一内容的缓存的配置。
在一个可选的实现方式中: 所述获取单元 810可以包括至少一个下述子单元(图 8中未示出):
第一获取子单元,用于向所述多个交换机发送请求获取所述第一内容的热度信息 的报文, 并接收所述多个交换机返回的所述第一内容的热度信息;
第二获取子单元,用于接收所述多个交换机按照预设的时间周期上报的所述第一 内容的热度信息。 在另一个可选的实现方式中: 所述控制器还可以包括 (图 8中未示出): 排序单 元,用于对所述多个交换机的所述第一内容的热度信息进行排序, 获得所述第一内容 的热度信息的排序结果;
所述配置单元 820, 具体用于根据所述第一内容的热度信息的排序结果对所述多 个交换机进行所述第一内容的缓存的配置。
在另一个可选的实现方式中: 所述控制器还可以包括 (图 8中未示出): 归一化 单元,用于对所述多个交换机的所述第一内容的热度信息进行归一化处理, 获得所述 第一内容的热度信息的归一化处理结果;
所述配置单元 820, 具体用于根据所述归一化处理结果对所述多个交换机进行所 述第一内容的缓存的配置。
在另一个可选的实现方式中: 所述配置单元 820可以包括 (图 8中未示出): 第一确定子单元,用于根据所述多个交换机的所述第一内容的热度信息确定一个 或多个需缓存所述第一内容的交换机;
第一发送子单元,用于若所述需缓存所述第一内容的交换机上已缓存所述第一内 容, 发送第五指示信息, 用于指示保持缓存所述第一内容, 或者, 若所述需缓存所述 第一内容的交换机上未缓存所述第一内容, 发送第六指示信息,用于指示缓存所述第 一内容。
在另一个可选的实现方式中: 所述配置单元 820可以包括 (图 8中未示出): 第二确定子单元,用于根据所述多个交换机的所述第一内容的热度信息确定一个 或多个无需缓存所述第一内容的交换机;
第二发送子单元,用于若所述无需缓存所述第一内容的交换机上已缓存所述第一 内容, 发送第七指示信息,用于指示删除已缓存的所述第一内容和所述第一内容的热 度信息, 或者, 若所述无需缓存所述第一内容的交换机上未缓存所述第一内容, 发送 第八指示信息, 用于指示删除所述第一内容的热度信息。 由上述实施例可见, 交换机本地管理第一内容的热度信息, 并将热度信息上报至 控制器,控制器获取网络中多个交换机上保存的第一内容的热度信息后,根据所述多 个交换机的所述第一内容的热度信息对所述多个交换机进行所述第一内容的缓存的 配置。本发明实施例可以应用交换机上缓存有内容的网络中,通过交换机进行内容的 热度信息的本地管理和上报, 从而保证该内容的所有访问情况都可以被记录,提高热 度信息统计的准确性, 保证控制器可以根据上报的热度信息进行资源配置; 并且, 由 于可以通过控制器对网络中交换机上记录的热度信息进行汇总,因此可以由控制器获 知网络中交换机上缓存内容的真实分布, 并据此对网络中缓存的资源进行合理配置, 以此提高资源配置的合理性。
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需 的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上 或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产 品可以存储在存储介质中, 如 ROM/RAM、磁碟、光盘等, 包括若干指令用以使得一 台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施 例或者实施例的某些部分所述的方法。
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部 分互相参见即可, 每个实施例重点说明的都是与其他实施例的不同之处。尤其, 对于 系统实施例而言, 由于其基本相似于方法实施例, 所以描述的比较简单, 相关之处参 见方法实施例的部分说明即可。
以上所述的本发明实施方式, 并不构成对本发明保护范围的限定。任何在本发明 的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明的保护范围之 内。

Claims

权 利 要 求
1、 一种资源配置的方法, 其特征在于, 包括:
交换机本地管理第一内容的热度信息;
所述交换机将所述热度信息上报至控制器,以便于所述控制器根据所述热度 信息对所述第一内容的缓存分布进行控制。
2、 根据权利要求 1所述的方法, 其特征在于, 所述交换机本地管理所述第 一内容的热度信息, 包括:
所述交换机接收内容请求访问报文;
当所述内容请求访问报文所请求的内容为所述交换机缓存的第一内容时,增 加所述第一内容的热度值。
3、 根据权利要求 1所述的方法, 其特征在于, 所述交换机本地管理所述第 一内容的热度信息, 包括:
所述交换机接收内容请求访问报文,所述内容请求访问报文所请求的内容为 所述第一内容;
当所述交换机未缓存所述第一内容时,所述交换机转发所述内容请求访问报 文至所述控制器;
所述交换机接收所述控制器的第一指示信息;
所述交换机根据所述第一指示信息缓存所述第一内容,并增加所述第一内容 的热度值。
4、 根据权利要求 1所述的方法, 其特征在于, 所述交换机本地管理所述第 一内容的热度信息, 包括:
所述交换机接收内容请求访问报文,所述内容请求访问报文所请求的内容为 所述第一内容;
当所述交换机未缓存所述第一内容时,所述交换机转发所述内容请求访问报 文至所述控制器;
所述交换机接收所述控制器的第二指示信息;
所述交换机根据所述第二指示信息转发所述内容请求访问报文至缓存有所 述第一内容的交换机, 并增加所述第一内容的热度值。
5、 根据权利要求 2至 4任意一项所述的方法, 其特征在于, 所述增加所述 第一内容的热度值, 包括:
所述交换机获取所述第一内容对应的第一流表项,其中所述第一流表项包括 所述第一内容的热度值;
所述交换机增加所述第一流表项中所述第一内容的热度值。
6、 根据权利要求 1所述的方法, 其特征在于, 所述交换机本地管理第一内 容的热度信息, 包括:
所述交换机接收所述控制器发送的第三指示信息;
所述交换机根据所述第三指示信息对所述第一内容的热度信息进行调整。
7、 根据权利要求 1所述的方法, 其特征在于, 所述交换机本地管理第一内 容的热度信息, 包括:
当所述交换机上设有的第一定时器超时时,若所述交换机在所述第一定时器 计时期间未收到请求所述第一内容的内容请求访问报文,所述交换机对所述第一 内容的热度信息进行调整。
8、 根据权利要求 6或 7所述的方法, 其特征在于, 所述对所述第一内容的 热度信息进行调整, 包括:
重置所述第一内容的热度信息; 或者,
减少所述第一内容的热度值。
9、 根据权利要求 1至 8任意一项所述的方法, 其特征在于, 所述交换机将 所述热度信息上报至控制器, 包括:
所述交换机接收所述控制器发送的第四指示信息;
所述交换机根据所述第四指示信息上报所述热度信息至所述控制器。
10、根据权利要求 1至 8任意一项所述的方法, 其特征在于, 所述交换机将 所述热度信息上报至控制器, 包括:
当所述交换机上设有的第二定时器超时时,所述交换机上报所述热度信息至 所述控制器。
11、 根据权利要求 1至 10任意一项所述的方法, 其特征在于, 还包括: 所述交换机根据所述控制器的指示或者根据配置的策略删除所述第一内容 的热度信息。
12、 一种资源配置方法, 其特征在于, 包括:
控制器获取网络中多个交换机上保存的第一内容的热度信息;
所述控制器根据所述多个交换机的所述第一内容的热度信息对所述多个交 换机进行所述第一内容的缓存的配置。
13、 根据权利要求 12所述的方法, 其特征在于, 所述控制器获取网络中多 个交换机上保存的第一内容的热度信息, 包括: 所述控制器向所述多个交换机发送请求获取所述第一内容的热度信息的报 文, 并接收所述多个交换机返回的所述第一内容的热度信息; 或者,
所述控制器接收所述多个交换机按照预设的时间周期向所述控制器上报的 所述第一内容的热度信息。
14、 根据权利要求 12或 13所述的方法, 其特征在于, 还包括:
所述控制器对所述多个交换机的所述第一内容的热度信息进行排序,获得所 述第一内容的热度信息的排序结果;
所述控制器根据所述多个交换机的所述第一内容的热度信息对所述多个交 换机进行所述第一内容的缓存的配置, 包括:
所述控制器根据所述第一内容的热度信息的排序结果对所述多个交换机进 行所述第一内容的缓存的配置。
15、 根据权利要求 12或 13所述的方法, 其特征在于, 还包括:
所述控制器对所述多个交换机的所述第一内容的热度信息进行归一化处理, 获得所述第一内容的热度信息的归一化处理结果;
所述控制器根据所述多个交换机的所述第一内容的热度信息对所述多个交 换机进行所述第一内容的缓存的配置, 包括:
所述控制器根据所述归一化处理结果对所述多个交换机进行所述第一内容 的缓存的配置。
16、根据权利要求 13至 15任意一项所述的方法, 其特征在于, 所述控制器 根据所述多个交换机的所述第一内容的热度信息对所述多个交换机进行所述第 一内容的缓存的配置, 包括: 所述控制器根据所述多个交换机的所述第一内容的 热度信息确定一个或多个需缓存所述第一内容的交换机;
若所述需缓存所述第一内容的交换机上已缓存所述第一内容,所述控制器发 送第五指示信息, 用于指示保持缓存所述第一内容; 或者,
若所述需缓存所述第一内容的交换机上未缓存所述第一内容,所述控制器发 送第六指示信息, 用于指示缓存所述第一内容。
17、根据权利要求 13至 15任意一项任一所述的方法, 其特征在于, 所述控 制器根据所述多个交换机的所述第一内容的热度信息对所述多个交换机进行所 述第一内容的缓存的配置, 包括: 所述控制器根据所述多个交换机的所述第一内 容的热度信息确定一个或多个无需缓存所述第一内容的交换机;
若所述无需缓存所述第一内容的交换机上已缓存所述第一内容,所述控制器 发送第七指示信息,用于指示删除已缓存的所述第一内容和所述第一内容的热度 信息; 或者,
若所述无需缓存所述第一内容的交换机上未缓存所述第一内容,所述控制器 发送第八指示信息, 用于指示删除所述第一内容的热度信息。
18、 一种交换机, 其特征在于, 所述交换机包括: 网络接口、 处理器和收发 器, 其中,
所述网络接口, 用于通过网络连接控制器;
所述处理器, 用于本地管理第一内容的热度信息;
所述收发器, 用于通过所述网络接口将所述热度信息上报至控制器, 以便于 所述控制器根据所述热度信息对所述第一内容的缓存分布进行控制。
19、 根据权利要求 18所述的交换机, 其特征在于,
所述收发器, 还用于接收内容请求访问报文;
所述处理器,具体用于当所述内容请求访问报文所请求的内容为所述交换机 缓存的第一内容时, 增加所述第一内容的热度值。
20、 根据权利要求 18所述的交换机, 其特征在于,
所述收发器, 还用于接收内容请求访问报文, 所述内容请求访问报文所请求 的内容为所述第一内容, 当所述交换机未缓存所述第一内容时, 转发所述内容请 求访问报文至所述控制器, 并接收所述控制器的第一指示信息;
所述处理器, 具体用于根据所述第一指示信息缓存所述第一内容, 并增加所 述第一内容的热度值。
21、 根据权利要求 18所述的交换机, 其特征在于,
所述收发器, 还用于接收内容请求访问报文, 所述内容请求访问报文所请求 的内容为所述第一内容, 当所述交换机未缓存所述第一内容时, 转发所述内容请 求访问报文至所述控制器, 并接收所述控制器的第二指示信息;
所述处理器,具体用于根据所述第二指示信息转发所述内容请求访问报文至 缓存有所述第一内容的交换机, 并增加所述第一内容的热度值。
22、 根据权利要求 19至 21任意一项所述的交换机, 其特征在于, 所述处理器, 具体用于获取所述第一内容对应的第一流表项, 其中所述第一 流表项包括所述第一内容的热度值,并增加所述第一流表项中所述第一内容的热 度值。
23、 根据权利要求 18所述的交换机, 其特征在于,
所述收发器, 还用于接收所述控制器发送的第三指示信息;
所述处理器,具体用于根据所述第三指示信息对所述第一内容的热度信息进 行调整。
24、 根据权利要求 18所述的交换机, 其特征在于,
所述处理器, 具体用于当所述交换机上设有的第一定时器超时时, 若在所述 第一定时器计时器件未收到请求所述第一内容的内容请求访问报文,对所述第一 内容的热度信息进行调整。
25、 根据权利要求 23或 24所述的交换机, 其特征在于,
所述处理器, 具体用于重置所述第一内容的热度信息, 或者, 减少所述第一 内容的热度值。
26、 根据权利要求 18至 25任意一项所述的交换机, 其特征在于, 所述收发器, 具体用于接收所述控制器发送的第四指示信息, 并根据所述第 四指示信息上报所述热度信息至所述控制器。
27、 根据权利要求 18至 25任意一项所述的交换机, 其特征在于, 所述收发器, 具体用于当所述交换机上设有的第二定时器超时时, 上报所述 热度信息至所述控制器。
28、 根据权利要求 18至 27任意一项所述的交换机, 其特征在于, 所述处理器,还用于根据所述控制器的指示或者根据配置的策略删除所述第 一内容的热度信息。
29、 一种控制器, 其特征在于, 所述控制器包括: 网络接口、 收发器和处理 器, 其中,
所述网络接口, 用于通过网络连接多个交换机;
所述收发器,用于通过所述网络接口获取网络中多个交换机上保存的第一内 容的热度信息;
所处处理器,用于根据所述多个交换机的所述第一内容的热度信息对所述多 个交换机进行所述第一内容的缓存的配置。
30、 根据权利要求 29所述的控制器, 其特征在于,
所述收发器,具体用于向所述多个交换机发送请求获取所述第一内容的热度 信息的报文, 并接收所述多个交换机返回的所述第一内容的热度信息, 或者接收 所述多个交换机按照预设的时间周期向所述控制器上报的所述第一内容的热度 信息。
31、 根据权利要求 29或 30所述的控制器, 其特征在于,
所述处理器, 还用于对所述多个交换机的所述第一内容的热度信息进行排 序, 获得所述第一内容的热度信息的排序结果; 所述处理器,具体用于根据所述第一内容的热度信息的排序结果对所述多个 交换机进行所述第一内容的缓存的配置。
32、 根据权利要求 29或 30所述的控制器, 其特征在于,
所述处理器,还用于对所述多个交换机的所述第一内容的热度信息进行归一 化处理, 获得所述第一内容的热度信息的归一化处理结果;
所述处理器,具体用于根据所述归一化处理结果对所述多个交换机进行所述 第一内容的缓存的配置。
33、 根据权利要求 30至 32任意一项所述的控制器, 其特征在于, 所述处理器,具体用于根据所述多个交换机的所述第一内容的热度信息确定 一个或多个需缓存所述第一内容的交换机;
所述收发器,还用于若所述需缓存所述第一内容的交换机上已缓存所述第一 内容, 发送第五指示信息, 用于指示保持缓存所述第一内容, 或者若所述需缓存 所述第一内容的交换机上未缓存所述第一内容, 发送第六指示信息, 用于指示缓 存所述第一内容。
34、 根据权利要求 30至 32任意一项所述的控制器, 其特征在于, 所述处理器,具体用于根据所述多个交换机的所述第一内容的热度信息确定 一个或多个无需缓存所述第一内容的交换机;
所述收发器,还用于若所述无需缓存所述第一内容的交换机上已缓存所述第 一内容, 发送第七指示信息, 用于指示删除已缓存的所述第一内容和所述第一内 容的热度信息, 或者, 若所述无需缓存所述第一内容的交换机上未缓存所述第一 内容, 发送第八指示信息, 用于指示删除所述第一内容的热度信息。
PCT/CN2013/074086 2013-04-11 2013-04-11 资源配置方法、交换机及控制器 WO2014166092A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2013/074086 WO2014166092A1 (zh) 2013-04-11 2013-04-11 资源配置方法、交换机及控制器
CN201380000376.6A CN104303474B (zh) 2013-04-11 2013-04-11 资源配置方法、交换机及控制器

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/074086 WO2014166092A1 (zh) 2013-04-11 2013-04-11 资源配置方法、交换机及控制器

Publications (1)

Publication Number Publication Date
WO2014166092A1 true WO2014166092A1 (zh) 2014-10-16

Family

ID=51688864

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/074086 WO2014166092A1 (zh) 2013-04-11 2013-04-11 资源配置方法、交换机及控制器

Country Status (2)

Country Link
CN (1) CN104303474B (zh)
WO (1) WO2014166092A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506450A (zh) * 2014-11-06 2015-04-08 小米科技有限责任公司 媒体资源反馈方法及装置
CN110865845A (zh) * 2019-10-28 2020-03-06 福建天泉教育科技有限公司 提高接口访问效率的方法、存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1451220A (zh) * 2000-06-01 2003-10-22 奥罗卡斯特.Com公司 在内容交换机中预装内容对象
US20050044229A1 (en) * 2003-08-20 2005-02-24 Brown Scott K. Managing access to digital content sources
CN1972239A (zh) * 2005-11-24 2007-05-30 武汉烽火网络有限责任公司 以太网交换缓存及调度的方法和装置
CN102006226A (zh) * 2010-11-19 2011-04-06 福建星网锐捷网络有限公司 报文缓存管理方法、装置及网络设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8504718B2 (en) * 2010-04-28 2013-08-06 Futurewei Technologies, Inc. System and method for a context layer switch
CN102546711B (zh) * 2010-12-20 2014-12-31 中国移动通信集团公司 流媒体系统中的内容存储调整方法、装置及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1451220A (zh) * 2000-06-01 2003-10-22 奥罗卡斯特.Com公司 在内容交换机中预装内容对象
US20050044229A1 (en) * 2003-08-20 2005-02-24 Brown Scott K. Managing access to digital content sources
CN1972239A (zh) * 2005-11-24 2007-05-30 武汉烽火网络有限责任公司 以太网交换缓存及调度的方法和装置
CN102006226A (zh) * 2010-11-19 2011-04-06 福建星网锐捷网络有限公司 报文缓存管理方法、装置及网络设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506450A (zh) * 2014-11-06 2015-04-08 小米科技有限责任公司 媒体资源反馈方法及装置
CN110865845A (zh) * 2019-10-28 2020-03-06 福建天泉教育科技有限公司 提高接口访问效率的方法、存储介质

Also Published As

Publication number Publication date
CN104303474B (zh) 2018-07-20
CN104303474A (zh) 2015-01-21

Similar Documents

Publication Publication Date Title
US10521348B2 (en) Managing resources using resource expiration data
JP6984097B2 (ja) エッジプロキシを持つコンテンツデリバリネットワークアーキテクチャ
WO2010124550A1 (zh) 内容分发方法、装置与内容分发网络系统
WO2011116726A2 (zh) 网络缓存方法和系统及dns重定向子系统
US10511533B2 (en) Systems and methods for adjusting a congestion window value of a content delivery network
WO2012089044A1 (zh) 一种内容分发网络中缓存共享的方法及装置
JP5259835B2 (ja) データノード装置、ピア情報取得方法およびシステム
WO2011140842A1 (zh) 多媒体文件发布方法和装置
WO2011144164A1 (zh) 数据传输方法、设备及系统
WO2017185633A1 (zh) Cdn服务器及其缓存数据的方法
TW201709692A (zh) 過濾https傳輸內容的系統、方法及裝置
WO2012072045A1 (zh) 一种cdn网络中的数据传输方法、网络节点及系统
US11743319B2 (en) Implementing a queuing system in a distributed network
JP2017058787A (ja) 無線通信装置、通信装置、無線通信システム
JP6205765B2 (ja) 映像配信装置、映像配信プログラム、映像配信方法及び映像配信システム
US10705978B2 (en) Asynchronous tracking for high-frequency and high-volume storage
WO2014166092A1 (zh) 资源配置方法、交换机及控制器
WO2013113150A1 (zh) 缓存优化的方法、缓存器和缓存优化的系统
WO2013083085A1 (zh) 数据获取方法及装置
WO2012171315A1 (zh) 一种无线网络控制器分组域内容缓存系统及其实现方法
WO2014047951A1 (zh) 一种网络存储的方法、交换设备和控制器
KR101469310B1 (ko) 서비스 오버레이 네트워크에서 종단간 QoS 보장형 콘텐츠 전달 방법 및 그 시스템
KR102141444B1 (ko) 모바일 콘텐트 네트워크에서 데이터 전송 및 수신 장치 및 방법
WO2017045438A1 (zh) 一种移动网络决策cdn中缓存内容的方法、装置及系统
JP2002259197A (ja) アクティブコンテンツキャッシュ制御システムと、アクティブコンテンツキャッシュ制御装置及び方法と、アクティブコンテンツキャッシュ制御処理用プログラム及びそのプログラムの記録媒体

Legal Events

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

Ref document number: 13881560

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13881560

Country of ref document: EP

Kind code of ref document: A1