CN111565207B - Content distribution network control method, device and computer-readable storage medium - Google Patents

Content distribution network control method, device and computer-readable storage medium Download PDF

Info

Publication number
CN111565207B
CN111565207B CN201910112730.3A CN201910112730A CN111565207B CN 111565207 B CN111565207 B CN 111565207B CN 201910112730 A CN201910112730 A CN 201910112730A CN 111565207 B CN111565207 B CN 111565207B
Authority
CN
China
Prior art keywords
edge node
slave
node
master
edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910112730.3A
Other languages
Chinese (zh)
Other versions
CN111565207A (en
Inventor
南海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, Research Institute of China Mobile Communication Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910112730.3A priority Critical patent/CN111565207B/en
Publication of CN111565207A publication Critical patent/CN111565207A/en
Application granted granted Critical
Publication of CN111565207B publication Critical patent/CN111565207B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a control method and device of a content delivery network and a computer readable storage medium, relating to the technical field of communication and aiming at solving the problem of complex centralized management and control of a CDN (content delivery network). The method comprises the following steps: acquiring master-slave node information sent by a CDN coordinator; receiving a content access request; determining a second edge node according to the content access request and the master-slave node information; and controlling the second edge node to provide access content according to the content access request. The embodiment of the invention can reduce the complexity of the centralized management control of the CDN network.

Description

内容分发网络的控制方法、装置及计算机可读存储介质Content distribution network control method, device and computer-readable storage medium

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种内容分发网络的控制方法、装置及计算机可读存储介质。The present invention relates to the field of communication technology, in particular to a control method, device and computer-readable storage medium for a content distribution network.

背景技术Background technique

CDN(Content Delivery Network,内容分发网络)是构建在网络之上的内容分发网络,依靠部署在各地的边缘服务器,通过中心平台的负载均衡、内容分发、控制等功能模块,使用户就近获取所需内容,降低网络拥塞,提高用户访问响应速度和命中率。CDN的关键技术主要有内容存储和分发技术。CDN (Content Delivery Network, Content Distribution Network) is a content distribution network built on top of the network, relying on the edge servers deployed in various places, through the load balancing, content distribution, control and other functional modules of the central platform, so that users can get what they need nearby content, reduce network congestion, and improve user access response speed and hit rate. The key technology of CDN mainly includes content storage and distribution technology.

现有CDN网络下沉后节点众多,从而导致集中式管理控制复杂。After the existing CDN network sinks, there are many nodes, which leads to complicated centralized management and control.

发明内容Contents of the invention

本发明实施例提供一种内容分发网络的控制方法、装置及计算机可读存储介质,以解决CDN网络集中式管理控制复杂的问题。Embodiments of the present invention provide a content distribution network control method, device, and computer-readable storage medium to solve the problem of complex centralized management and control of a CDN network.

第一方面,本发明实施例提供了一种内容分发网络的控制方法,应用于第一边缘节点,包括:In a first aspect, an embodiment of the present invention provides a method for controlling a content distribution network, which is applied to a first edge node, including:

获取CDN协调器发送的主从节点信息;Obtain the master-slave node information sent by the CDN coordinator;

接收内容访问请求;receive content access requests;

根据所述内容访问请求和所述主从节点信息,确定第二边缘节点;determining a second edge node according to the content access request and the master-slave node information;

控制所述第二边缘节点根据所述内容访问请求提供访问内容。controlling the second edge node to provide access content according to the content access request.

其中,所述确定第二边缘节点包括:Wherein, said determining the second edge node includes:

根据所述主从节点信息,确定从边缘节点;Determine the slave edge node according to the master-slave node information;

获取所述从边缘节点发送的内容列表,根据所述内容列表从所述从边缘节点中确定所述第二边缘节点。Obtain the content list sent by the slave edge node, and determine the second edge node from the slave edge nodes according to the content list.

其中,在所述接收内容访问请求之前,所述方法还包括:Wherein, before receiving the content access request, the method further includes:

向所述CDN协调器发送注册信息;sending registration information to the CDN coordinator;

接收所述第二边缘节点发送的注册信息。Receive registration information sent by the second edge node.

其中,当所述第一边缘节点发生故障时,所述方法还包括:Wherein, when the first edge node fails, the method further includes:

向CDN协调器重新确定的主边缘节点发送注册信息。Send registration information to the primary edge node re-determined by the CDN coordinator.

第二方面,本发明实施例提供一种内容分发网络的控制方法,应用于第二边缘节点,包括:In a second aspect, an embodiment of the present invention provides a method for controlling a content distribution network, which is applied to a second edge node, including:

根据第一边缘节点的控制,提供访问内容。According to the control of the first edge node, access content is provided.

其中,所述方法还包括:Wherein, the method also includes:

向所述第一边缘节点发送内容列表,其中,所述第一边缘节点根据所述内容列表选择所述第二边缘节点进行控制。Sending a content list to the first edge node, wherein the first edge node selects the second edge node for control according to the content list.

其中,所述方法还包括:Wherein, the method also includes:

向CDN协调器发送注册信息;Send registration information to the CDN coordinator;

向所述第一边缘节点发送注册信息。Send registration information to the first edge node.

其中,当所述第一边缘节点发生故障时,若所述第二边缘节点为主边缘节点,所述方法还包括:Wherein, when the first edge node fails, if the second edge node is the master edge node, the method further includes:

接收所述第一边缘节点发送的注册信息。Receive registration information sent by the first edge node.

第三方面,本发明实施例提供一种内容分发网络的控制方法,应用于CDN协调器,包括:In a third aspect, an embodiment of the present invention provides a method for controlling a content distribution network, which is applied to a CDN coordinator, including:

接收至少两个边缘节点发送的注册信息;receiving registration information sent by at least two edge nodes;

根据所述注册信息,确定主从节点信息;Determine master-slave node information according to the registration information;

向所述至少两个边缘节点发送所述主从节点信息,并指示从边缘节点向主边缘节点发送注册信息。Send the master-slave node information to the at least two edge nodes, and instruct the slave edge node to send registration information to the master edge node.

其中,当主边缘节点发生故障时,所述方法还包括:Wherein, when the main edge node fails, the method further includes:

重新确定主边缘节点和从边缘节点;Re-determine the master edge node and slave edge node;

指示重新确定的从边缘节点向重新确认的主边缘节点发送注册信息。Instructing the re-determined slave edge node to send registration information to the re-confirmed master edge node.

第四方面,本发明实施例提供一种内容分发网络的控制装置,应用于第一边缘节点,包括:处理器和收发器;In a fourth aspect, an embodiment of the present invention provides a control device for a content distribution network, which is applied to a first edge node, and includes: a processor and a transceiver;

所述收发器,用于获取CDN协调器发送的主从节点信息;接收内容访问请求;The transceiver is used to obtain the master-slave node information sent by the CDN coordinator; receive a content access request;

所述处理器,用于根据所述内容访问请求和所述主从节点信息,确定第二边缘节点;控制所述第二边缘节点根据所述内容访问请求提供访问内容。The processor is configured to determine a second edge node according to the content access request and the master-slave node information; and control the second edge node to provide access content according to the content access request.

其中,所述处理器还用于,根据所述主从节点信息,确定从边缘节点;获取所述从边缘节点发送的内容列表,根据所述内容列表从所述从边缘节点中确定所述第二边缘节点。Wherein, the processor is further configured to, according to the master-slave node information, determine the slave edge node; obtain the content list sent by the slave edge node, and determine the second edge node from the slave edge node according to the content list Two edge nodes.

其中,所述收发器还用于,向所述CDN协调器发送注册信息;接收所述第二边缘节点发送的注册信息。Wherein, the transceiver is further configured to send registration information to the CDN coordinator; and receive registration information sent by the second edge node.

其中,所述收发器还用于,向CDN协调器重新确定的主边缘节点发送注册信息。Wherein, the transceiver is further configured to send registration information to the master edge node re-determined by the CDN coordinator.

第五方面,本发明实施例提供一种内容分发网络的控制装置,应用于第二边缘节点,包括:处理器和收发器;In a fifth aspect, an embodiment of the present invention provides a control device for a content distribution network, which is applied to a second edge node, and includes: a processor and a transceiver;

所述处理器用于,根据第一边缘节点的控制,提供访问内容。The processor is configured to provide access to content according to the control of the first edge node.

其中,所述收发器还用于,向所述第一边缘节点发送内容列表,其中,所述第一边缘节点根据所述内容列表选择所述第二边缘节点进行控制。Wherein, the transceiver is further configured to send a content list to the first edge node, wherein the first edge node selects the second edge node for control according to the content list.

其中,所述收发器还用于,向CDN协调器发送注册信息;向所述第一边缘节点发送注册信息。Wherein, the transceiver is further configured to send the registration information to the CDN coordinator; and send the registration information to the first edge node.

其中,所述收发器还用于,接收所述第一边缘节点发送的注册信息。Wherein, the transceiver is further configured to receive registration information sent by the first edge node.

第六方面,本发明实施例提供一种内容分发网络的控制装置,应用于CDN协调器,包括:处理器和收发器;In a sixth aspect, an embodiment of the present invention provides a control device for a content distribution network, which is applied to a CDN coordinator, and includes: a processor and a transceiver;

所述收发器,用于接收至少两个边缘节点发送的注册信息;The transceiver is configured to receive registration information sent by at least two edge nodes;

所述处理器,用于根据所述注册信息,确定主从节点信息;The processor is configured to determine master-slave node information according to the registration information;

所述收发器,还用于向所述至少两个边缘节点发送所述主从节点信息;The transceiver is further configured to send the master-slave node information to the at least two edge nodes;

所述处理器,还用于指示从边缘节点向主边缘节点发送注册信息。The processor is further configured to instruct the slave edge node to send registration information to the master edge node.

其中,所述处理器还用于当主边缘节点发生故障时,重新确定主边缘节点和从边缘节点,指示重新确定的从边缘节点向重新确认的主边缘节点发送注册信息。Wherein, the processor is further configured to re-determine the master edge node and the slave edge node when the master edge node fails, and instruct the re-determined slave edge node to send registration information to the reconfirmed master edge node.

第七方面,本发明实施例提供一种通信设备,包括:收发机、存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序;所述处理器,用于读取存储器中的程序实现如第一方面所述的方法中的步骤;或者实现如第二方面所述的方法中的步骤;或者实现如第三方面所述的方法中的步骤。In a seventh aspect, an embodiment of the present invention provides a communication device, including: a transceiver, a memory, a processor, and a computer program stored in the memory and operable on the processor; the processor is used to Reading the program in the memory implements the steps in the method as described in the first aspect; or implements the steps in the method as described in the second aspect; or implements the steps in the method as described in the third aspect.

第八方面,本发明实施例提供一种计算机可读存储介质,用于存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的方法中的步骤;或者实现如第二方面所述的方法中的步骤;或者实现如第三方面所述的方法中的步骤。In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing a computer program, and when the computer program is executed by a processor, the steps in the method described in the first aspect are realized; or the steps in the method described in the second aspect are realized; Steps in the method described in the third aspect; or implement the steps in the method described in the third aspect.

本发明实施例中,CDN任意节点可形成从属关系组,用于CDN节点根据场景需求自组织成对应的从属关系组节点,从而利用本发明实施例可降低CDN网络集中式管理控制的复杂度。In the embodiment of the present invention, any CDN node can form an affiliation group, which is used for CDN nodes to self-organize into corresponding affiliation group nodes according to scene requirements, so that the embodiment of the present invention can reduce the complexity of centralized management and control of the CDN network.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1是本发明实施例提供的内容分发网络的控制方法的流程图之一;Fig. 1 is one of the flowcharts of the control method of the content distribution network provided by the embodiment of the present invention;

图2是本发明实施例提供的内容分发网络的控制方法的流程图之二;Fig. 2 is the second flow chart of the control method of the content distribution network provided by the embodiment of the present invention;

图3是本发明实施例提供的内容分发网络的控制方法的流程图之三;Fig. 3 is the third flowchart of the control method of the content distribution network provided by the embodiment of the present invention;

图4是本发明实施例的CDN调度系统的示意图;Fig. 4 is the schematic diagram of the CDN scheduling system of the embodiment of the present invention;

图5是本发明实施例CDN节点从属关系注册流程的示意图;5 is a schematic diagram of a CDN node affiliation registration process according to an embodiment of the present invention;

图6是本发明实施例为用户访问CDN从边缘节点的流程示意图;FIG. 6 is a schematic flow diagram of a user accessing a CDN slave edge node according to an embodiment of the present invention;

图7是本发明实施例任意节点灵活自组织从属关系组的示意图;7 is a schematic diagram of an arbitrary node flexible ad hoc affiliation group according to an embodiment of the present invention;

图8是本发明实施例提供的内容分发网络的控制装置的结构图之一;FIG. 8 is one of the structural diagrams of a control device for a content distribution network provided by an embodiment of the present invention;

图9是本发明实施例提供的内容分发网络的控制装置的结构图之二;FIG. 9 is the second structural diagram of a control device for a content distribution network provided by an embodiment of the present invention;

图10是本发明实施例提供的内容分发网络的控制装置的结构图之三;FIG. 10 is the third structural diagram of a control device for a content distribution network provided by an embodiment of the present invention;

图11是本发明实施例提供的通信设备的结构图之一;FIG. 11 is one of the structural diagrams of a communication device provided by an embodiment of the present invention;

图12是本发明实施例提供的通信设备的结构图之二;Fig. 12 is the second structural diagram of the communication device provided by the embodiment of the present invention;

图13是本发明实施例提供的通信设备的结构图之三。FIG. 13 is a third structural diagram of a communication device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

参见图1,图1是本发明实施例提供的内容分发网络的控制方法的流程图,应用于第一边缘节点。如图1所示,包括以下步骤:Referring to FIG. 1 , FIG. 1 is a flow chart of a method for controlling a content distribution network provided by an embodiment of the present invention, which is applied to a first edge node. As shown in Figure 1, the following steps are included:

步骤101、获取CDN协调器发送的主从节点信息。Step 101, acquire the master-slave node information sent by the CDN coordinator.

其中,所述主从节点信息中可记录有主节点的信息和从节点的信息,例如IP(Internet Protocol,因特网协议)地址等。Wherein, the information of the master node and the information of the slave node can be recorded in the master-slave node information, such as IP (Internet Protocol, Internet Protocol) address and the like.

步骤102、接收内容访问请求。Step 102, receiving a content access request.

当有内容访问请求时,第一边缘节点可接收用户的内容访问请求。第一边缘节点在此作为主边缘节点。When there is a content access request, the first edge node may receive the user's content access request. The first edge node serves here as the main edge node.

步骤103、根据所述内容访问请求和所述主从节点信息,确定第二边缘节点。Step 103: Determine a second edge node according to the content access request and the master-slave node information.

具体的,在此步骤中,可根据所述主从节点信息,确定从边缘节点,然后获取所述从边缘节点发送的内容列表,根据所述内容列表从所述从边缘节点中确定所述第二边缘节点。第二边缘节点在此作为从边缘节点。Specifically, in this step, the slave edge node may be determined according to the master-slave node information, and then the content list sent by the slave edge node may be obtained, and the second edge node may be determined from the slave edge node according to the content list. Two edge nodes. The second edge node serves here as a slave edge node.

步骤104、控制所述第二边缘节点根据所述内容访问请求提供访问内容。Step 104: Control the second edge node to provide access content according to the content access request.

本发明实施例中,CDN任意节点可形成从属关系组,用于CDN节点根据场景需求自组织成对应的从属关系组节点,从而利用本发明实施例可降低CDN网络集中式管理控制的复杂度。In the embodiment of the present invention, any CDN node can form an affiliation group, which is used for CDN nodes to self-organize into corresponding affiliation group nodes according to scene requirements, so that the embodiment of the present invention can reduce the complexity of centralized management and control of the CDN network.

在上述实施例的基础上,为进一步提高管理效率,在步骤101之前还可包括:向所述CDN协调器发送注册信息,并接收所述第二边缘节点发送的注册信息。On the basis of the foregoing embodiments, in order to further improve management efficiency, before step 101, the method may further include: sending registration information to the CDN coordinator, and receiving registration information sent by the second edge node.

当所述第一边缘节点发生故障时,所述方法还包括:向CDN协调器重新确定的主边缘节点发送注册信息。When the first edge node fails, the method further includes: sending registration information to the primary edge node re-determined by the CDN coordinator.

参见图2,图2是本发明实施例提供的内容分发网络的控制方法的流程图,应用于第二边缘节点。如图2所示,包括以下步骤:Referring to FIG. 2 , FIG. 2 is a flow chart of a method for controlling a content distribution network provided by an embodiment of the present invention, which is applied to a second edge node. As shown in Figure 2, it includes the following steps:

步骤201、根据第一边缘节点的控制,提供访问内容。Step 201. Provide access content according to the control of the first edge node.

例如,当第一边缘节点确定第二边缘节点可提供访问内容时,将控制第二边缘节点提供访问内容。For example, when the first edge node determines that the second edge node can provide the access content, it will control the second edge node to provide the access content.

为提高控制效率,第二边缘节点还可向所述第一边缘节点发送内容列表,其中,所述第一边缘节点根据所述内容列表选择所述第二边缘节点进行控制。To improve control efficiency, the second edge node may also send a content list to the first edge node, wherein the first edge node selects the second edge node for control according to the content list.

此外,为便于CDN协调器进行控制,第二边缘节点还可向CDN协调器发送注册信息,向所述第一边缘节点发送注册信息。In addition, for the convenience of the CDN coordinator to control, the second edge node may also send registration information to the CDN coordinator, and send registration information to the first edge node.

当所述第一边缘节点发生故障时,若所述第二边缘节点为主边缘节点,还可接收所述第一边缘节点发送的注册信息。When the first edge node fails, if the second edge node is the master edge node, it can also receive the registration information sent by the first edge node.

本发明实施例中,CDN任意节点可形成从属关系组,用于CDN节点根据场景需求自组织成对应的从属关系组节点,从而利用本发明实施例可降低CDN网络集中式管理控制的复杂度。In the embodiment of the present invention, any CDN node can form an affiliation group, which is used for CDN nodes to self-organize into corresponding affiliation group nodes according to scene requirements, so that the embodiment of the present invention can reduce the complexity of centralized management and control of the CDN network.

参见图3,图3是本发明实施例提供的内容分发网络的控制方法的流程图,应用于CDN协调器。如图3所示,包括以下步骤:Referring to FIG. 3 , FIG. 3 is a flowchart of a method for controlling a content distribution network provided by an embodiment of the present invention, which is applied to a CDN coordinator. As shown in Figure 3, the following steps are included:

步骤301、接收至少两个边缘节点发送的注册信息。Step 301. Receive registration information sent by at least two edge nodes.

步骤302、根据所述注册信息,确定主从节点信息。Step 302. Determine master-slave node information according to the registration information.

步骤303、向所述至少两个边缘节点发送所述主从节点信息,并指示从边缘节点向主边缘节点发送注册信息。Step 303: Send the master-slave node information to the at least two edge nodes, and instruct the slave edge node to send registration information to the master edge node.

当初确定的主边缘节点发生故障时,所述方法还包括:重新确定主边缘节点和从边缘节点,并指示重新确定的从边缘节点向重新确认的主边缘节点发送注册信息。When the initially determined master edge node fails, the method further includes: re-determining the master edge node and the slave edge node, and instructing the re-determined slave edge node to send registration information to the reconfirmed master edge node.

本发明实施例中,CDN任意节点可形成从属关系组,用于CDN节点根据场景需求自组织成对应的从属关系组节点,从而利用本发明实施例可降低CDN网络集中式管理控制的复杂度。In the embodiment of the present invention, any CDN node can form an affiliation group, which is used for CDN nodes to self-organize into corresponding affiliation group nodes according to scene requirements, so that the embodiment of the present invention can reduce the complexity of centralized management and control of the CDN network.

如图4所示,本发明实施例的CDN调度系统可包括:CDN边缘节点(图示的包括边缘节点A,边缘节点1,边缘节点2)、CDN全局调度系统、CDN协调器等。其中,在此系统中,协商信息包括节点注册信息、节点从属关系等。协商过程由CDN全局调度系统控制,注册信息表由CDN协调器生成。CDN调度过程主要包括:As shown in FIG. 4 , the CDN scheduling system of the embodiment of the present invention may include: CDN edge nodes (the illustration includes edge node A, edge node 1, and edge node 2), a CDN global scheduling system, a CDN coordinator, and the like. Wherein, in this system, the negotiation information includes node registration information, node affiliation, and the like. The negotiation process is controlled by the CDN global scheduling system, and the registration information table is generated by the CDN coordinator. The CDN scheduling process mainly includes:

步骤401、边缘节点A、边缘节点1、边缘节点2分别向CDN协调器发送相关注册信息。Step 401, edge node A, edge node 1, and edge node 2 respectively send relevant registration information to the CDN coordinator.

步骤402、CDN协调器根据策略判断主从关系,并向边缘节点A、边缘节点1、边缘节点2下发节点主从关系信息。Step 402, the CDN coordinator judges the master-slave relationship according to the policy, and sends node master-slave relationship information to edge node A, edge node 1, and edge node 2.

步骤403、假如经判断后,边缘节点1从属于边缘节点A,边缘节点2从属于边缘节点A,则由边缘节点1、2向边缘节点A注册。边缘节点A作为主边缘节点,对从属边缘节点1、2进行调度管理。Step 403 , if it is determined that edge node 1 is subordinate to edge node A and edge node 2 is subordinate to edge node A, edge nodes 1 and 2 register with edge node A. Edge node A, as the master edge node, schedules and manages slave edge nodes 1 and 2.

同时,边缘节点1、2将自身的内容列表、负载状态等实时上报给边缘节点A,并接受边缘节点A的调度管理信息。At the same time, edge nodes 1 and 2 report their content list and load status to edge node A in real time, and accept the scheduling management information of edge node A.

步骤404、CDN全局调度系统接收到了用户1的内容访问请求。那么,CDN根据该请求向用户1返回边缘节点A的IP地址。之后,边缘节点A根据获取的信息,确定边缘节点1为从边缘节点,可提供访问内容,则向用户1返回边缘节点1的IP地址,控制边缘节点1向用户1提供访问内容。Step 404, the CDN global scheduling system receives the content access request from user 1. Then, the CDN returns the IP address of edge node A to user 1 according to the request. Afterwards, edge node A determines that edge node 1 is a secondary edge node that can provide access content according to the obtained information, then returns the IP address of edge node 1 to user 1, and controls edge node 1 to provide access content to user 1.

当边缘节点A发生故障时,CDN协调器可根据策略,将边缘节点1或者边缘节点2升为主边缘节点。When edge node A fails, the CDN coordinator can promote edge node 1 or edge node 2 to be the master edge node according to the policy.

其中,注册信息如表1所示:Among them, the registration information is shown in Table 1:

表1Table 1

属性定义attribute definition 注册信息表描述Registration Information Form Description Node_IDNode_ID 节点ID,全局唯一Node ID, globally unique Node_IPNode_IP 节点IPNode IP Positionposition 主从信息,主或从Master-slave information, master or slave 内容列表content list 内容表,包括url和热点阈值Table of contents, including urls and hotspot thresholds 节点负载node load 节点自身的实时负载信息Real-time load information of the node itself Locationlocation 区域标签,便于协调器判断Region label, which is convenient for the coordinator to judge

其中,节点主从关系信息如表2所示:Among them, the node master-slave relationship information is shown in Table 2:

表2Table 2

属性定义attribute definition 主从信息表描述Master-slave information table description Locationlocation 区域标签,便于协调器判断Region label, which is convenient for the coordinator to judge MasterMaster 主节点IPMaster node IP SlaveSlave 从节点IP1,从节点IP2,从节点IP3…Slave IP1, Slave IP2, Slave IP3... Master_statusMaster_status 主节点状态master node status Slave_statusSlave_status 从节点状态slave node status Location_nearbyLocation_nearby 相邻区域Adjacent area

如图5所示,为CDN节点从属关系注册流程。边缘节点向CDN协调器注册,发送注册信息。CDN协调器根据策略,向各边缘节点下发节点的主从信息,以及向从边缘节点发送指示其向主边缘节点注册的指令,并维护主从节点关系。当主边缘节点故障,CDN协调器根据策略,选择一个从边缘节点升为主边缘节点,并下发其它从边缘节点,以指示其他从边缘节点向重新确定的主边缘节点注册,并维护主从关系。As shown in FIG. 5 , it is a CDN node affiliation registration process. Edge nodes register with the CDN coordinator and send registration information. According to the policy, the CDN coordinator sends the master-slave information of the node to each edge node, and sends an instruction to the slave edge node instructing it to register with the master edge node, and maintains the master-slave node relationship. When the master edge node fails, the CDN coordinator selects a slave edge node to become the master edge node according to the policy, and sends other slave edge nodes to instruct other slave edge nodes to register with the re-determined master edge node and maintain the master-slave relationship .

在边缘节点内可设置有CDN节点协调模块,用于协商节点注册信息、节点主从信息等。边缘节点向CDN协调器注册,获取CDN协调器下发的主从信息。如果某个边缘节点是主边缘节点,则接收其它从边缘节点的注册信息,并对从边缘节点进行调度管理。如果是从边缘节点,则根据主从信息向主边缘节点注册,并接受管理调度。A CDN node coordinating module can be set in the edge node, which is used for negotiating node registration information, node master-slave information, and the like. The edge node registers with the CDN coordinator to obtain the master-slave information issued by the CDN coordinator. If an edge node is the master edge node, it receives the registration information of other slave edge nodes, and schedules and manages the slave edge nodes. If it is a slave edge node, it will register with the master edge node according to the master-slave information and accept management scheduling.

如图6所示,为用户访问CDN从边缘节点的流程。当用户1有访问请求时,CDN全局调度系统根据请求内容返回边缘节点1的IP地址。边缘节点1作为主边缘节点,接收用户的访问请求,并根据所管理的从边缘节点的状态,调度至相应的从边缘节点,在此假设为从边缘节点2。边缘节点2作为从边缘节点,将自身的内容列表、负载状态等实时上报给边缘节点1,并接受边缘节点1的调度管理信息。之后,从边缘节点2向用户提供访问内容。As shown in Figure 6, it is the flow of users accessing CDN slave edge nodes. When user 1 has an access request, the CDN global scheduling system returns the IP address of edge node 1 according to the content of the request. As the master edge node, edge node 1 receives the user's access request, and dispatches it to the corresponding slave edge node according to the status of the managed slave edge node, which is assumed to be slave edge node 2 here. As a slave edge node, edge node 2 reports its content list, load status, etc. to edge node 1 in real time, and accepts the scheduling management information of edge node 1. After that, access content is provided to the user from the edge node 2 .

如图7所示为任意节点灵活自组织从属关系组的示意图。在全网协调器和调度系统控制下,全网任意几个边缘节点可根据策略灵活组成一个大节点。如边缘节点1、6、7调度成本较低,则可将调度成本信息上报给CDN协调器,由CDN协调器根据设定的调度成本策略组成一个低成本从属关系,并下发相应边缘节点。其它策略如位置、负载、时延等等策略都可以采用这种方式组成大节点,并可实现大节点内资源的弹性。FIG. 7 is a schematic diagram of a flexible ad hoc affiliation group for any node. Under the control of the network-wide coordinator and scheduling system, any number of edge nodes in the network can flexibly form a large node according to the strategy. If the scheduling cost of edge nodes 1, 6, and 7 is low, the scheduling cost information can be reported to the CDN coordinator, and the CDN coordinator forms a low-cost affiliation relationship according to the set scheduling cost strategy, and sends the corresponding edge nodes. Other strategies such as location, load, delay, etc. can be used to form a large node in this way, and can realize the elasticity of resources in the large node.

由上可以看出,本发明实施例提供一个端到端的可实现方案,可实现边缘节点自动融入CDN网络,多个边缘节点自动形成一个区域节点,以及边缘节点按需扩容、缩容以及相邻区域间节点从属关系的灵活调配。It can be seen from the above that the embodiment of the present invention provides an end-to-end implementable solution, which can realize the automatic integration of edge nodes into the CDN network, the automatic formation of multiple edge nodes into a regional node, and the expansion, shrinkage and adjacent Flexible deployment of node affiliation between regions.

如图8所示,本发明实施例的内容分发网络的控制装置,应用于第一边缘节点,包括:处理器801和收发器802;As shown in FIG. 8, the control device of the content distribution network according to the embodiment of the present invention is applied to the first edge node, and includes: a processor 801 and a transceiver 802;

所述收发器802,用于获取CDN协调器发送的主从节点信息;接收内容访问请求;The transceiver 802 is configured to obtain the master-slave node information sent by the CDN coordinator; receive a content access request;

所述处理器801,用于根据所述内容访问请求和所述主从节点信息,确定第二边缘节点;控制所述第二边缘节点根据所述内容访问请求提供访问内容。The processor 801 is configured to determine a second edge node according to the content access request and the master-slave node information; and control the second edge node to provide access content according to the content access request.

可选的,所述处理器801还用于,根据所述主从节点信息,确定从边缘节点;获取所述从边缘节点发送的内容列表,根据所述内容列表从所述从边缘节点中确定所述第二边缘节点。Optionally, the processor 801 is further configured to determine a slave edge node according to the master-slave node information; obtain a content list sent by the slave edge node, and determine from the slave edge node according to the content list The second edge node.

可选的,所述收发器802还用于,向所述CDN协调器发送注册信息;接收所述第二边缘节点发送的注册信息。Optionally, the transceiver 802 is further configured to send registration information to the CDN coordinator; and receive registration information sent by the second edge node.

可选的,所述收发器802还用于,向CDN协调器重新确定的主边缘节点发送注册信息。Optionally, the transceiver 802 is further configured to send registration information to the primary edge node re-determined by the CDN coordinator.

本发明实施例装置所述的工作原理可参照前述方法实施例的描述。For the working principle described in the device of the embodiment of the present invention, reference may be made to the description of the foregoing method embodiment.

本发明实施例中,CDN任意节点可形成从属关系组,用于CDN节点根据场景需求自组织成对应的从属关系组节点,从而利用本发明实施例可降低CDN网络集中式管理控制的复杂度。In the embodiment of the present invention, any CDN node can form an affiliation group, which is used for CDN nodes to self-organize into corresponding affiliation group nodes according to scene requirements, so that the embodiment of the present invention can reduce the complexity of centralized management and control of the CDN network.

如图9所示,本发明实施例的内容分发网络的控制装置,应用于第二边缘节点,包括:处理器901和收发器902;所述处理器901用于,根据第一边缘节点的控制,提供访问内容。As shown in FIG. 9 , the control device of the content distribution network according to the embodiment of the present invention is applied to the second edge node, and includes: a processor 901 and a transceiver 902; the processor 901 is used to, according to the control of the first edge node , providing access to the content.

可选的,所述收发器902还用于,向所述第一边缘节点发送内容列表,其中,所述第一边缘节点根据所述内容列表选择所述第二边缘节点进行控制。Optionally, the transceiver 902 is further configured to send a content list to the first edge node, where the first edge node selects the second edge node for control according to the content list.

可选的,所述收发器902还用于,向CDN协调器发送注册信息;向所述第一边缘节点发送注册信息。Optionally, the transceiver 902 is further configured to send the registration information to the CDN coordinator; and send the registration information to the first edge node.

可选的,所述收发器902还用于,接收所述第一边缘节点发送的注册信息。Optionally, the transceiver 902 is further configured to receive registration information sent by the first edge node.

本发明实施例装置所述的工作原理可参照前述方法实施例的描述。For the working principle described in the device of the embodiment of the present invention, reference may be made to the description of the foregoing method embodiment.

本发明实施例中,CDN任意节点可形成从属关系组,用于CDN节点根据场景需求自组织成对应的从属关系组节点,从而利用本发明实施例可降低CDN网络集中式管理控制的复杂度。In the embodiment of the present invention, any CDN node can form an affiliation group, which is used for CDN nodes to self-organize into corresponding affiliation group nodes according to scene requirements, so that the embodiment of the present invention can reduce the complexity of centralized management and control of the CDN network.

如图10所示,本发明实施例的内容分发网络的控制装置,应用于CDN协调器,包括:处理器1001和收发器1002;As shown in FIG. 10, the control device of the content distribution network according to the embodiment of the present invention is applied to a CDN coordinator, and includes: a processor 1001 and a transceiver 1002;

所述收发器1002,用于接收至少两个边缘节点发送的注册信息;The transceiver 1002 is configured to receive registration information sent by at least two edge nodes;

所述处理器1001,用于根据所述注册信息,确定主从节点信息;The processor 1001 is configured to determine master-slave node information according to the registration information;

所述收发器1002,还用于向所述至少两个边缘节点发送所述主从节点信息;The transceiver 1002 is further configured to send the master-slave node information to the at least two edge nodes;

所述处理器1001,还用于指示从边缘节点向主边缘节点发送注册信息。The processor 1001 is further configured to instruct the slave edge node to send registration information to the master edge node.

可选的,所述处理器1001还用于当主边缘节点发生故障时,重新确定主边缘节点和从边缘节点,指示重新确定的从边缘节点向重新确认的主边缘节点发送注册信息。Optionally, the processor 1001 is further configured to re-determine the master edge node and the slave edge node when the master edge node fails, and instruct the re-determined slave edge node to send registration information to the re-confirmed master edge node.

本发明实施例装置所述的工作原理可参照前述方法实施例的描述。For the working principle described in the device of the embodiment of the present invention, reference may be made to the description of the foregoing method embodiment.

本发明实施例中,CDN任意节点可形成从属关系组,用于CDN节点根据场景需求自组织成对应的从属关系组节点,从而利用本发明实施例可降低CDN网络集中式管理控制的复杂度。In the embodiment of the present invention, any CDN node can form an affiliation group, which is used for CDN nodes to self-organize into corresponding affiliation group nodes according to scene requirements, so that the embodiment of the present invention can reduce the complexity of centralized management and control of the CDN network.

如图11所示,本发明实施例的通信设备包括:处理器1100,用于读取存储器1120中的程序,执行下列过程:As shown in FIG. 11 , the communication device in the embodiment of the present invention includes: a processor 1100, configured to read the program in the memory 1120, and execute the following process:

获取CDN协调器发送的主从节点信息;接收内容访问请求;根据所述内容访问请求和所述主从节点信息,确定第二边缘节点;控制所述第二边缘节点根据所述内容访问请求提供访问内容。Obtain the master-slave node information sent by the CDN coordinator; receive a content access request; determine a second edge node according to the content access request and the master-slave node information; control the second edge node to provide access content.

收发机1110,用于在处理器1100的控制下接收和发送数据。The transceiver 1110 is used for receiving and sending data under the control of the processor 1100 .

其中,在图11中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1100代表的一个或多个处理器和存储器1120代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机1110可以是多个元件,即包括发送机和收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器1100负责管理总线架构和通常的处理,存储器1120可以存储处理器1100在执行操作时所使用的数据。Wherein, in FIG. 11 , the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by the processor 1100 and various circuits of the memory represented by the memory 1120 are linked together. The bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, etc., which are well known in the art and therefore will not be further described herein. The bus interface provides the interface. Transceiver 1110 may be a plurality of elements, ie, including a transmitter and a transceiver, providing a means for communicating with various other devices over a transmission medium. The processor 1100 is responsible for managing the bus architecture and general processing, and the memory 1120 can store data used by the processor 1100 when performing operations.

处理器1100负责管理总线架构和通常的处理,存储器1120可以存储处理器1100在执行操作时所使用的数据。The processor 1100 is responsible for managing the bus architecture and general processing, and the memory 1120 can store data used by the processor 1100 when performing operations.

处理器1100还用于读取所述计算机程序,执行如下步骤:The processor 1100 is also used to read the computer program, and perform the following steps:

根据所述主从节点信息,确定从边缘节点;Determine the slave edge node according to the master-slave node information;

获取所述从边缘节点发送的内容列表,根据所述内容列表从所述从边缘节点中确定所述第二边缘节点。Obtain the content list sent by the slave edge node, and determine the second edge node from the slave edge nodes according to the content list.

处理器1100还用于读取所述计算机程序,执行如下步骤:The processor 1100 is also used to read the computer program, and perform the following steps:

向所述CDN协调器发送注册信息;sending registration information to the CDN coordinator;

接收所述第二边缘节点发送的注册信息。Receive registration information sent by the second edge node.

处理器1100还用于读取所述计算机程序,执行如下步骤:The processor 1100 is also used to read the computer program, and perform the following steps:

向CDN协调器重新确定的主边缘节点发送注册信息。Send registration information to the primary edge node re-determined by the CDN coordinator.

如图12所示,本发明实施例的通信设备包括:处理器1200,用于读取存储器1220中的程序,执行下列过程:根据第一边缘节点的控制,提供访问内容。As shown in FIG. 12, the communication device in this embodiment of the present invention includes: a processor 1200, configured to read a program in a memory 1220, and execute the following process: provide access content according to the control of the first edge node.

收发机1210,用于在处理器1200的控制下接收和发送数据。The transceiver 1210 is used for receiving and sending data under the control of the processor 1200 .

其中,在图12中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1200代表的一个或多个处理器和存储器1220代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机1210可以是多个元件,即包括发送机和收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器1200负责管理总线架构和通常的处理,存储器1220可以存储处理器1200在执行操作时所使用的数据。Wherein, in FIG. 12 , the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by the processor 1200 and various circuits of the memory represented by the memory 1220 are linked together. The bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, etc., which are well known in the art and therefore will not be further described herein. The bus interface provides the interface. Transceiver 1210 may be a plurality of elements, including a transmitter and a transceiver, providing a means for communicating with various other devices over a transmission medium. The processor 1200 is responsible for managing the bus architecture and general processing, and the memory 1220 can store data used by the processor 1200 when performing operations.

处理器1200负责管理总线架构和通常的处理,存储器1220可以存储处理器1200在执行操作时所使用的数据。The processor 1200 is responsible for managing the bus architecture and general processing, and the memory 1220 can store data used by the processor 1200 when performing operations.

处理器1200还用于读取所述计算机程序,执行如下步骤:The processor 1200 is also configured to read the computer program, and perform the following steps:

向所述第一边缘节点发送内容列表,其中,所述第一边缘节点根据所述内容列表选择所述第二边缘节点进行控制。Sending a content list to the first edge node, wherein the first edge node selects the second edge node for control according to the content list.

处理器1200还用于读取所述计算机程序,执行如下步骤:The processor 1200 is also configured to read the computer program, and perform the following steps:

向CDN协调器发送注册信息;Send registration information to the CDN coordinator;

向所述第一边缘节点发送注册信息。Send registration information to the first edge node.

处理器1200还用于读取所述计算机程序,执行如下步骤:The processor 1200 is also configured to read the computer program, and perform the following steps:

接收所述第一边缘节点发送的注册信息。Receive registration information sent by the first edge node.

如图13所示,本发明实施例的通信设备包括:处理器1300,用于读取存储器1320中的程序,执行下列过程:As shown in FIG. 13, the communication device in the embodiment of the present invention includes: a processor 1300, configured to read the program in the memory 1320, and execute the following process:

接收至少两个边缘节点发送的注册信息;根据所述注册信息,确定主从节点信息;向所述至少两个边缘节点发送所述主从节点信息,并指示从边缘节点向主边缘节点发送注册信息。receiving registration information sent by at least two edge nodes; determining master-slave node information according to the registration information; sending the master-slave node information to the at least two edge nodes, and instructing the slave edge node to send a registration to the master edge node information.

收发机1310,用于在处理器1300的控制下接收和发送数据。The transceiver 1310 is used for receiving and sending data under the control of the processor 1300 .

其中,在图13中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器1300代表的一个或多个处理器和存储器1320代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发机1310可以是多个元件,即包括发送机和收发机,提供用于在传输介质上与各种其他装置通信的单元。处理器1300负责管理总线架构和通常的处理,存储器1320可以存储处理器1300在执行操作时所使用的数据。Wherein, in FIG. 13 , the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by the processor 1300 and various circuits of the memory represented by the memory 1320 are linked together. The bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, etc., which are well known in the art and therefore will not be further described herein. The bus interface provides the interface. Transceiver 1310 may be a plurality of elements, including a transmitter and a transceiver, providing a means for communicating with various other devices over a transmission medium. The processor 1300 is responsible for managing the bus architecture and general processing, and the memory 1320 can store data used by the processor 1300 when performing operations.

处理器1300负责管理总线架构和通常的处理,存储器1320可以存储处理器1300在执行操作时所使用的数据。The processor 1300 is responsible for managing the bus architecture and general processing, and the memory 1320 can store data used by the processor 1300 when performing operations.

处理器1300还用于读取所述计算机程序,执行如下步骤:The processor 1300 is also configured to read the computer program, and perform the following steps:

重新确定主边缘节点和从边缘节点;Re-determine the master edge node and slave edge node;

指示重新确定的从边缘节点向重新确认的主边缘节点发送注册信息。Instructing the re-determined slave edge node to send registration information to the re-confirmed master edge node.

此外,本发明实施例的计算机可读存储介质,用于存储计算机程序,所述计算机程序可被处理器执行实现以下步骤:In addition, the computer-readable storage medium in the embodiment of the present invention is used to store a computer program, and the computer program can be executed by a processor to implement the following steps:

获取CDN协调器发送的主从节点信息;Obtain the master-slave node information sent by the CDN coordinator;

接收内容访问请求;receive content access requests;

根据所述内容访问请求和所述主从节点信息,确定第二边缘节点;determining a second edge node according to the content access request and the master-slave node information;

控制所述第二边缘节点根据所述内容访问请求提供访问内容。controlling the second edge node to provide access content according to the content access request.

其中,所述确定第二边缘节点包括:Wherein, said determining the second edge node includes:

根据所述主从节点信息,确定从边缘节点;Determine the slave edge node according to the master-slave node information;

获取所述从边缘节点发送的内容列表,根据所述内容列表从所述从边缘节点中确定所述第二边缘节点。Obtain the content list sent by the slave edge node, and determine the second edge node from the slave edge nodes according to the content list.

其中,在所述接收内容访问请求之前,所述方法还包括:Wherein, before receiving the content access request, the method further includes:

向所述CDN协调器发送注册信息;sending registration information to the CDN coordinator;

接收所述第二边缘节点发送的注册信息。Receive registration information sent by the second edge node.

其中,当所述第一边缘节点发生故障时,所述方法还包括:Wherein, when the first edge node fails, the method further includes:

向CDN协调器重新确定的主边缘节点发送注册信息。Send registration information to the primary edge node re-determined by the CDN coordinator.

此外,本发明实施例的计算机可读存储介质,用于存储计算机程序,所述计算机程序可被处理器执行实现以下步骤:In addition, the computer-readable storage medium in the embodiment of the present invention is used to store a computer program, and the computer program can be executed by a processor to implement the following steps:

根据第一边缘节点的控制,提供访问内容。According to the control of the first edge node, access content is provided.

其中,所述方法还包括:Wherein, the method also includes:

向所述第一边缘节点发送内容列表,其中,所述第一边缘节点根据所述内容列表选择所述第二边缘节点进行控制。Sending a content list to the first edge node, wherein the first edge node selects the second edge node for control according to the content list.

其中,所述方法还包括:Wherein, the method also includes:

向CDN协调器发送注册信息;Send registration information to the CDN coordinator;

向所述第一边缘节点发送注册信息。Send registration information to the first edge node.

其中,当所述第一边缘节点发生故障时,若所述第二边缘节点为主边缘节点,所述方法还包括:Wherein, when the first edge node fails, if the second edge node is the master edge node, the method further includes:

接收所述第一边缘节点发送的注册信息。Receive registration information sent by the first edge node.

此外,本发明实施例的计算机可读存储介质,用于存储计算机程序,所述计算机程序可被处理器执行实现以下步骤:In addition, the computer-readable storage medium in the embodiment of the present invention is used to store a computer program, and the computer program can be executed by a processor to implement the following steps:

接收至少两个边缘节点发送的注册信息;receiving registration information sent by at least two edge nodes;

根据所述注册信息,确定主从节点信息;Determine master-slave node information according to the registration information;

向所述至少两个边缘节点发送所述主从节点信息,并指示从边缘节点向主边缘节点发送注册信息。Send the master-slave node information to the at least two edge nodes, and instruct the slave edge node to send registration information to the master edge node.

其中,当主边缘节点发生故障时,所述方法还包括:Wherein, when the main edge node fails, the method further includes:

重新确定主边缘节点和从边缘节点;Re-determine the master edge node and slave edge node;

指示重新确定的从边缘节点向重新确认的主边缘节点发送注册信息。Instructing the re-determined slave edge node to send registration information to the re-confirmed master edge node.

在本申请所提供的几个实施例中,应该理解到,所揭露方法和装置,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed methods and devices may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.

上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述收发方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the sending and receiving methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), magnetic disk or optical disc, etc. can store program codes. medium.

以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.

Claims (22)

1.一种内容分发网络的控制方法,应用于第一边缘节点,其特征在于,包括:1. A control method for a content distribution network, applied to a first edge node, characterized in that it comprises: 获取内容分发网络CDN协调器发送的主从节点信息;Obtain the master-slave node information sent by the content distribution network CDN coordinator; 接收内容访问请求;receive content access requests; 根据所述内容访问请求和所述主从节点信息,确定第二边缘节点;determining a second edge node according to the content access request and the master-slave node information; 控制所述第二边缘节点根据所述内容访问请求提供访问内容。controlling the second edge node to provide access content according to the content access request. 2.根据权利要求1所述的方法,其特征在于,所述确定第二边缘节点包括:2. The method according to claim 1, wherein said determining the second edge node comprises: 根据所述主从节点信息,确定从边缘节点;Determine the slave edge node according to the master-slave node information; 获取所述从边缘节点发送的内容列表,根据所述内容列表从所述从边缘节点中确定所述第二边缘节点。Obtain the content list sent by the slave edge node, and determine the second edge node from the slave edge nodes according to the content list. 3.根据权利要求2所述的方法,其特征在于,在所述接收内容访问请求之前,所述方法还包括:3. The method according to claim 2, wherein before receiving the content access request, the method further comprises: 向所述CDN协调器发送注册信息;sending registration information to the CDN coordinator; 接收所述第二边缘节点发送的注册信息。Receive registration information sent by the second edge node. 4.根据权利要求1所述的方法,其特征在于,当所述第一边缘节点发生故障时,所述方法还包括:4. The method according to claim 1, wherein when the first edge node fails, the method further comprises: 向CDN协调器重新确定的主边缘节点发送注册信息。Send registration information to the primary edge node re-determined by the CDN coordinator. 5.一种内容分发网络的控制方法,应用于第二边缘节点,其特征在于,包括:5. A control method for a content distribution network, applied to a second edge node, characterized in that it comprises: 根据第一边缘节点的控制,提供访问内容;providing access content according to the control of the first edge node; 其中,所述第二边缘节点为所述第一边缘节点的从边缘节点,所述第二边缘节点为所述第一边缘节点根据内容访问请求和从CDN协调器获取的主从节点信息确定的。Wherein, the second edge node is a slave edge node of the first edge node, and the second edge node is determined by the first edge node according to the content access request and the master-slave node information obtained from the CDN coordinator . 6.根据权利要求5所述的方法,其特征在于,所述方法还包括:6. The method according to claim 5, further comprising: 向所述第一边缘节点发送内容列表,其中,所述第一边缘节点根据所述内容列表选择所述第二边缘节点进行控制。Sending a content list to the first edge node, wherein the first edge node selects the second edge node for control according to the content list. 7.根据权利要求5所述的方法,其特征在于,所述方法还包括:7. The method according to claim 5, wherein the method further comprises: 向CDN协调器发送注册信息;Send registration information to the CDN coordinator; 向所述第一边缘节点发送注册信息。Send registration information to the first edge node. 8.根据权利要求5所述的方法,其特征在于,当所述第一边缘节点发生故障时,若所述第二边缘节点为主边缘节点,所述方法还包括:8. The method according to claim 5, wherein when the first edge node fails, if the second edge node is the master edge node, the method further comprises: 接收所述第一边缘节点发送的注册信息。Receive registration information sent by the first edge node. 9.一种内容分发网络的控制方法,应用于CDN协调器,其特征在于,包括:9. A control method for a content distribution network, applied to a CDN coordinator, comprising: 接收至少两个边缘节点发送的注册信息;receiving registration information sent by at least two edge nodes; 根据所述注册信息,确定主从节点信息;Determine master-slave node information according to the registration information; 向所述至少两个边缘节点发送所述主从节点信息,并指示从边缘节点向主边缘节点发送注册信息。Send the master-slave node information to the at least two edge nodes, and instruct the slave edge node to send registration information to the master edge node. 10.根据权利要求9所述的方法,其特征在于,当主边缘节点发生故障时,所述方法还包括:10. The method according to claim 9, wherein when the primary edge node fails, the method further comprises: 重新确定主边缘节点和从边缘节点;Re-determine the master edge node and slave edge node; 指示重新确定的从边缘节点向重新确认的主边缘节点发送注册信息。Instructing the re-determined slave edge node to send registration information to the re-confirmed master edge node. 11.一种内容分发网络的控制装置,应用于第一边缘节点,其特征在于,包括:处理器和收发器;11. A control device for a content distribution network, applied to a first edge node, characterized in that it includes: a processor and a transceiver; 所述收发器,用于获取CDN协调器发送的主从节点信息;接收内容访问请求;The transceiver is used to obtain the master-slave node information sent by the CDN coordinator; receive a content access request; 所述处理器,用于根据所述内容访问请求和所述主从节点信息,确定第二边缘节点;控制所述第二边缘节点根据所述内容访问请求提供访问内容。The processor is configured to determine a second edge node according to the content access request and the master-slave node information; and control the second edge node to provide access content according to the content access request. 12.根据权利要求11所述的装置,其特征在于,所述处理器还用于,根据所述主从节点信息,确定从边缘节点;获取所述从边缘节点发送的内容列表,根据所述内容列表从所述从边缘节点中确定所述第二边缘节点。12. The device according to claim 11, wherein the processor is further configured to, according to the master-slave node information, determine a slave edge node; acquire a content list sent by the slave edge node, and according to the The content list determines the second edge node from the secondary edge nodes. 13.根据权利要求12所述的装置,其特征在于,所述收发器还用于,向所述CDN协调器发送注册信息;接收所述第二边缘节点发送的注册信息。13. The device according to claim 12, wherein the transceiver is further configured to send registration information to the CDN coordinator; and receive registration information sent by the second edge node. 14.根据权利要求11所述的装置,其特征在于,所述收发器还用于,向CDN协调器重新确定的主边缘节点发送注册信息。14. The device according to claim 11, wherein the transceiver is further configured to send registration information to the primary edge node re-determined by the CDN coordinator. 15.一种内容分发网络的控制装置,应用于第二边缘节点,其特征在于,包括:处理器和收发器;15. A control device for a content distribution network, applied to a second edge node, comprising: a processor and a transceiver; 所述处理器用于,根据第一边缘节点的控制,提供访问内容;The processor is configured to provide access content according to the control of the first edge node; 其中,所述第二边缘节点为所述第一边缘节点的从边缘节点,所述第二边缘节点为所述第一边缘节点根据内容访问请求和从CDN协调器获取的主从节点信息确定的。Wherein, the second edge node is a slave edge node of the first edge node, and the second edge node is determined by the first edge node according to the content access request and the master-slave node information obtained from the CDN coordinator . 16.根据权利要求15所述的装置,其特征在于,所述收发器还用于,向所述第一边缘节点发送内容列表,其中,所述第一边缘节点根据所述内容列表选择所述第二边缘节点进行控制。16. The device according to claim 15, wherein the transceiver is further configured to send a content list to the first edge node, wherein the first edge node selects the The second edge node performs control. 17.根据权利要求15所述的装置,其特征在于,所述收发器还用于,向CDN协调器发送注册信息;向所述第一边缘节点发送注册信息。17. The device according to claim 15, wherein the transceiver is further configured to: send registration information to a CDN coordinator; and send registration information to the first edge node. 18.根据权利要求15所述的装置,其特征在于,所述收发器还用于,接收所述第一边缘节点发送的注册信息。18. The device according to claim 15, wherein the transceiver is further configured to receive registration information sent by the first edge node. 19.一种内容分发网络的控制装置,应用于CDN协调器,其特征在于,包括:处理器和收发器;19. A control device for a content distribution network, applied to a CDN coordinator, comprising: a processor and a transceiver; 所述收发器,用于接收至少两个边缘节点发送的注册信息;The transceiver is configured to receive registration information sent by at least two edge nodes; 所述处理器,用于根据所述注册信息,确定主从节点信息;The processor is configured to determine master-slave node information according to the registration information; 所述收发器,还用于向所述至少两个边缘节点发送所述主从节点信息;The transceiver is further configured to send the master-slave node information to the at least two edge nodes; 所述处理器,还用于指示从边缘节点向主边缘节点发送注册信息。The processor is further configured to instruct the slave edge node to send registration information to the master edge node. 20.根据权利要求19所述的装置,其特征在于,所述处理器还用于当主边缘节点发生故障时,重新确定主边缘节点和从边缘节点,指示重新确定的从边缘节点向重新确认的主边缘节点发送注册信息。20. The device according to claim 19, wherein the processor is further configured to re-determine the master edge node and the slave edge node when the master edge node fails, indicating that the re-determined slave edge node The primary edge node sends registration information. 21.一种通信设备,包括:收发机、存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序;其特征在于,21. A communication device, comprising: a transceiver, a memory, a processor, and a computer program stored on the memory and operable on the processor; it is characterized in that, 所述处理器,用于读取存储器中的程序实现如权利要求1至4中任一项所述的方法中的步骤;或者实现如权利要求5至8中任一项所述的方法中的步骤;或者实现如权利要求9至10中任一项所述的方法中的步骤。The processor is used to read the program in the memory to realize the steps in the method according to any one of claims 1 to 4; or to realize the steps in the method according to any one of claims 5 to 8 step; or implement the steps in the method as described in any one of claims 9 to 10. 22.一种计算机可读存储介质,用于存储计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至4中任一项所述的方法中的步骤;或者实现如权利要求5至8中任一项所述的方法中的步骤;或者实现如权利要求9至10中任一项所述的方法中的步骤。22. A computer-readable storage medium for storing a computer program, characterized in that, when the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 4 are realized; or The steps in the method as described in any one of claims 5 to 8; or implement the steps in the method as described in any one of claims 9 to 10.
CN201910112730.3A 2019-02-13 2019-02-13 Content distribution network control method, device and computer-readable storage medium Active CN111565207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910112730.3A CN111565207B (en) 2019-02-13 2019-02-13 Content distribution network control method, device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910112730.3A CN111565207B (en) 2019-02-13 2019-02-13 Content distribution network control method, device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN111565207A CN111565207A (en) 2020-08-21
CN111565207B true CN111565207B (en) 2023-05-09

Family

ID=72072869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910112730.3A Active CN111565207B (en) 2019-02-13 2019-02-13 Content distribution network control method, device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN111565207B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151512A (en) * 2018-09-12 2019-01-04 中国联合网络通信集团有限公司 The method and device of content is obtained in CDN network
EP3424198A1 (en) * 2016-03-01 2019-01-09 Telefonaktiebolaget LM Ericsson (publ) Content distribution and delivery optimization in a content delivery network (cdn)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860720B (en) * 2009-04-10 2015-05-20 中兴通讯股份有限公司 Content positioning method and content distribution network node
CN108111623A (en) * 2017-12-29 2018-06-01 北京奇虎科技有限公司 A kind of communication means and device based on content distributing network CDN

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3424198A1 (en) * 2016-03-01 2019-01-09 Telefonaktiebolaget LM Ericsson (publ) Content distribution and delivery optimization in a content delivery network (cdn)
CN109151512A (en) * 2018-09-12 2019-01-04 中国联合网络通信集团有限公司 The method and device of content is obtained in CDN network

Also Published As

Publication number Publication date
CN111565207A (en) 2020-08-21

Similar Documents

Publication Publication Date Title
CN103703724B (en) Resource payment method
RU2595540C9 (en) Chassis controllers for converting universal flows
WO2021233391A1 (en) Routing information sending method, routing information receiving method, network element and node device
CN115499859B (en) NWDAF-based method for managing and deciding computing resources
CN114095577A (en) Resource request method, device, computing power network element node and computing power application device
CN103596066B (en) Method and device for data processing
CN102347959B (en) Resource access system and method based on identity and session
WO2019029267A1 (en) Network slice management method and apparatus
CN118354371A (en) Network configuration method, device and system based on intention
WO2015172362A1 (en) Network function virtualization network system, data processing method and device
CN104780088A (en) Service message transmission method and equipment
EP3893437B1 (en) Method and device for deploying virtual network function
US20240118935A1 (en) Pod deployment method and apparatus
CN104184663A (en) Communication method and device based on software-defined network and integrated identification network
CN103812838A (en) Service calling method and device and system
CN115102896B (en) Data broadcast method, broadcast accelerator, NOC, SOC and electronic device
US20110153826A1 (en) Fault tolerant and scalable load distribution of resources
CN103188144A (en) System and method for achieving distributed gateway intercommunication
CN112714146B (en) Resource scheduling method, device, equipment and computer readable storage medium
CN111565207B (en) Content distribution network control method, device and computer-readable storage medium
WO2024250629A1 (en) Node autonomy-based data transmission method and system in hybrid cloud
CN115733743A (en) Network service deployment method, NFVO and NFV system
CN113068083B (en) A method, apparatus, device and computer-readable storage medium for establishing a connection
JP6243015B2 (en) System and method for virtual network entity (VNE) based on network operation support system (NOSS)
WO2022268013A1 (en) Data transmission method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant