Disclosure of Invention
In order to solve the problems in the prior art, the present invention provides, on one hand, a method for managing an edge server of a CDN network, including: the method comprises the steps that a dispatching center receives and verifies a registration request containing an identity mark sent by an edge server, obtains information of a regional server to which the edge server belongs from a management center, and sends the information to the edge server; the area server and the edge server establish connection based on the information of the area server; the management center issues an instruction containing the identity to the dispatching center, and the dispatching center issues the instruction containing the identity to the edge server corresponding to the identity based on the connection between the area server and the edge server.
Further, the step of the dispatch center receiving and verifying a registration request including an identity sent by an edge server, obtaining information of a regional server to which the edge server belongs from a management center, and sending the information to the edge server specifically includes: the dispatching center receives the registration request of the edge server and analyzes the registration request to obtain the registration information of the edge server; the dispatching center acquires the information of the edge server corresponding to the identity identifier from the management center according to the identity identifier in the registration information; the dispatching center compares the registration information with the information of the edge server acquired from the management center to determine the regional server to which the edge server belongs; and the dispatching center acquires the information of the regional server to which the edge server belongs from the management center and sends the information of the regional server to the edge server.
Further, the registration information includes an area to which the edge server belongs, an operator to which the edge server belongs, an IP address of the edge server, and a MAC address of the edge server; the information of the edge server acquired by the dispatching center comprises an area to which the edge server belongs, an operator to which the edge server belongs, an IP address of the edge server and an MAC address of the edge server; the information of the regional server comprises a region to which the regional server belongs, an operator to which the regional server belongs, an IP address of the regional server and an MAC address of the regional server.
Further, the step of the management center issuing the instruction including the identity to the dispatching center, where the dispatching center issues the instruction including the identity to the edge server corresponding to the identity based on the connection between the area server and the edge server specifically includes: the management center generates an instruction containing the identity and sends the instruction to the dispatching center; the dispatching center issues the instruction to the regional server to which the edge server corresponding to the identity belongs according to the identity contained in the instruction; and the regional server sends the instruction to the edge server corresponding to the identity identifier according to the identity identifier contained in the instruction.
In order to solve the problems in the prior art, the present invention provides, on one hand, an edge server management system for a CDN network, configured to manage an edge server, where the edge server management system includes a management center, a scheduling center, and a region server, where: the dispatching center is used for receiving and verifying a registration request which is sent by an edge server and contains an identity identifier, acquiring information of a regional server to which the edge server belongs from a management center and sending the information to the edge server; the area server is used for establishing connection with the edge server based on the information of the area server; the management center is used for issuing the instruction containing the identity identifier to the dispatching center; the dispatching center is further configured to issue an instruction including the identity identifier to the edge server corresponding to the identity identifier based on the connection between the area server and the edge server.
Further, the dispatching center is further configured to receive a registration request of the edge server, and analyze the registration request to obtain registration information of the edge server; the dispatching center is further used for acquiring the information of the edge server corresponding to the identity identifier from the management center according to the identity identifier in the registration information; the dispatching center is further configured to compare the registration information with the information of the edge server acquired from the management center to determine the area server to which the edge server belongs; the dispatching center is further configured to obtain information of the area server to which the edge server belongs from the management center, and send the information of the area server to the edge server.
Further, the registration information includes an area where the edge server is located, an operator to which the edge server belongs, an IP address of the edge server, and a MAC address of the edge server; the information of the edge server acquired by the dispatching center comprises the area where the edge server is located, the operator to which the edge server belongs, the IP address of the edge server and the MAC address of the edge server; the information of the regional server comprises a region to which the regional server belongs, an operator to which the regional server belongs, an IP address of the regional server and an MAC address of the regional server.
In order to solve the problems in the prior art, an aspect of the present invention provides a scheduling center, including: the system comprises a registration module, a management center and a management module, wherein the registration module is used for receiving and verifying a registration request containing an identity identifier sent by an edge server, acquiring information of a regional server to which the edge server belongs from the management center, and sending the information of the regional server to the edge server; and the instruction issuing module is used for receiving an instruction which is issued by a management center and contains the identity identifier of the edge server, and issuing the instruction to the regional server to which the edge server corresponding to the identity identifier belongs.
Further, the registration module is further configured to receive a registration request of the edge server, and analyze the registration request to obtain registration information of the edge server; the registration module is further configured to obtain, from the management center, information of the edge server corresponding to the identity identifier according to the identity identifier in the registration information; the registration module is further configured to compare the registration information with the information of the edge server acquired by the dispatch center to determine the regional server to which the edge server belongs.
Further, the dispatch center stores the identity of the edge server and the local server to which the edge server belongs.
Therefore, compared with the prior art that the management center manages the local area network servers through the public network IP address, the invention configures the identity for each edge server, so that the dispatching center can receive and verify the registration request which is sent by the edge server and contains the identity, acquire the information of the area server to which the edge server belongs from the management center, send the information to the edge server, establish the connection between the area server and the edge server, and realize that the area server serves as a gateway between the edge server of the local area network and the management center of the public network. Furthermore, the management center can manage the edge server based on the connection between the area server and the edge server and by combining the unique identity of the edge server. The invention not only solves the problem that the management center manages the edge server through the IP address in the prior art and needs to consume more public network IP addresses; the problem that the management center cannot manage due to the change of the IP address of the edge server is also solved. Further, the management center issues the instruction to the dispatching center, and the dispatching center sends the various instructions to the edge servers corresponding to the identity identifications through the area server according to different identity identifications in the instruction. The invention realizes the uniform planning and adjustment of the dispatching center to the command issuing through the layer issuing management method, thereby reducing the load of the management center to issue the command.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the invention, the CDN network at least comprises a management center, a scheduling center, a region server and an edge server. The management center can realize operation management and network management, the network management comprises equipment management, topology management, link monitoring, fault management and the like, and can be realized in a WEB mode; the operation management comprises service management, user management, product management, charging management and the like. The management center and the scheduling center are both located in the public network, and the management center is a management platform of an edge server of the CDN network. The management center stores information of the edge server and the area server, including the area, the operator, the IP address, the MAC address and the like of the edge server and the area server.
It should be noted that the main difference between the management center of the embodiment of the present invention and the existing management center is that: the information of the edge servers can be input in batches in the management center, the management center can generate the unique identity of the edge servers according to the input information of the edge servers, and the identity can be used as a management interface for the management center to manage the edge servers. The id may be in a form of a number and a letter, as long as the id can distinguish each edge server, which is not limited by the present invention.
In addition, the scheduling center is also added on the basis of the existing CDN network, and the scheduling center mainly functions to establish a connection between the edge server and the management center in a manner of verifying the registration request of the edge server, thereby implementing unified planning and adjustment of instruction issuing by the scheduling center, and reducing the load of instruction issuing by the management center, and a specific working process thereof will be described below and will not be described herein again.
The edge server is mainly used for directly responding to a user request and ensuring that data content is synchronous with a source station, and can be a webpage acceleration server, a streaming media acceleration server, an application acceleration service and the like. The information of the edge server can be manually entered in the edge server. The regional server is arranged between the dispatching center and the edge server and used for managing the edge server in a certain region.
Fig. 1 is a flowchart of an edge server management method of a CDN network according to an embodiment of the present invention.
Specifically, the method for managing the edge server of the CDN network in the embodiment of the present invention includes the following steps:
s101, the dispatching center receives and verifies a registration request containing the identity identifier sent by the edge server, obtains information of a regional server to which the edge server belongs from the management center, and sends the information to the edge server.
In one embodiment, since the information of the edge server is manually entered, an entry error may occur or the information of the edge server stored by the management center is updated, so that in the process of registering the edge server with the dispatch center through the identity, the dispatch center obtains the information of the edge server corresponding to the identity from the management center, and compares the information of the edge server corresponding to the identity obtained from the management center with the registration information of the edge server to determine the area server to which the edge server belongs. Please refer to fig. 2, which will not be described herein.
S102, the area server and the edge server establish connection based on the information of the area server.
In one embodiment, each edge server belongs to only one area server management, and each area server can manage a plurality of edge servers. The information of the regional server at least includes a region to which the regional server belongs, an operator to which the regional server belongs, an IP address and an MAC address of the regional server, and the like. The region may be a city-level region, such as Xiamen city or Fuzhou city, and the operator belongs to China Mobile, China Telecommunications, or China Unicom.
And S103, the management center issues the instruction containing the identity identifier to the dispatching center, and the dispatching center issues the instruction containing the identity identifier to the edge server corresponding to the identity identifier based on the connection between the area server and the edge server.
In one embodiment, the dispatching center and the management center are both in the public network and are always in a connected state. After the edge server is connected with the regional server, the regional server can be connected with the dispatching center for a long time, namely, the regional server and the dispatching center are kept in a connected state for a long time, so that the regional server and the dispatching center can communicate for many times through the established connection, and the management center is indirectly connected with the edge server. In other words, the connection between the management center and the edge server is implemented based on a direct connection between the management center and the dispatch center, a direct connection between the dispatch center and the area server, and a direct connection between the area server and the edge server, and the connection between the management center and the edge server is not a direct connection.
In one embodiment, the command may be an operation management command and a network management command, where the network management command includes a device management command, a topology management command, a link monitoring command, a fault management command, and the like; the operation management instruction comprises a service management instruction, a user management instruction, a product management instruction, a charging management instruction and the like.
This step is mainly to realize the step-by-step issuing of the instruction based on the connection between the node servers established in step S102. Please refer to fig. 3 for a detailed flow of this step, which is not repeated herein.
Fig. 2 is a flowchart of a registration method of an edge server of a CDN network according to an embodiment of the present invention.
S201, the dispatching center receives the registration request of the edge server and analyzes the registration request of the edge server to obtain the registration information of the edge server.
In one embodiment, the registration information of the edge server at least includes an identity of the edge server, an area to which the edge server belongs, an operator to which the edge server belongs, an IP address of the edge server, a MAC address of the edge server, and the like.
S202, the dispatching center obtains the information of the edge server corresponding to the identity mark from the management center according to the identity mark in the registration information of the edge server.
In one embodiment, the information of the edge server corresponding to the identity acquired by the scheduling center from the management center at least includes: the area of the edge server, the operator of the edge server, the IP address of the edge server, the MAC address of the edge server, and the like.
S203, the dispatching center compares the registration information with the information of the edge server acquired by the dispatching center to determine the regional server to which the edge server belongs.
In this step, if the registration information is consistent with the information of the edge server acquired by the scheduling center, the registration is passed, and S204 is executed in the next step; if not, returning to the previous step and comparing again. If the registration information of the edge server is not consistent with the information of the corresponding edge server acquired by the dispatching center from the management center after the dispatching center continuously compares the registration information of the edge server with the information of the corresponding edge server for a preset number of times, the dispatching center feeds back information to the edge server incorrectly. The predetermined number of times may be one, two, three or more times, which is not limited in the present invention.
It should be noted that the registration information includes an area to which the edge server belongs, an operator to which the edge server belongs, an IP address of the edge server, and an MAC address of the edge server; the information of the corresponding edge server acquired by the dispatching center from the management center also comprises the area to which the edge server belongs, the operator to which the edge server belongs, the IP address of the edge server and the MAC address of the edge server; if the information of the corresponding items contained in the two items is consistent after comparison, the registration is passed, and if the information of the corresponding items contained in the two items is inconsistent, the registration cannot be passed.
And S204, the dispatching center acquires the information of the regional server to which the edge server belongs from the management center and sends the information of the regional server to the edge server.
In one embodiment, the information of the regional server to which the edge server belongs, which is acquired by the scheduling center from the management center, includes at least a region to which the regional server belongs, an operator to which the regional server belongs, an IP address of the regional server, a MAC address of the regional server, and the like.
In this step, after the scheduling center sends the information of the area server to which the edge server belongs to the edge server, the area server and the edge server establish a connection based on the information of the area server, and the specific process is described in the embodiment shown in fig. 1 and is not described herein again.
Fig. 3 is a flowchart of an instruction issuing method of the CDN network according to the embodiment of the present invention.
In one embodiment, after the management center establishes a connection with the edge server through the dispatching center based on the connection between the area server and the edge server, the management center may issue an instruction including the identity to the dispatching center, and the dispatching center issues the instruction including the identity to the edge server corresponding to the identity through the area server, which includes the following specific processes:
s301, the management center generates an instruction containing the identity and issues the instruction to the dispatching center.
In one embodiment, the management center may actively generate an instruction to be issued to the dispatching center, or may receive a service request of the edge server through the dispatching center and the area server, and generate an instruction to be issued to the dispatching center according to the service request.
And S302, the dispatching center issues the instruction to the regional server to which the edge server corresponding to the identity belongs according to the identity contained in the instruction.
In one embodiment, when the edge server registers with the dispatch center through the identity, the dispatch center already determines the regional server to which the edge server belongs. After the registration is successful, the dispatching center stores the identity of each edge server and the area server to which each edge server belongs, so that when the dispatching center receives an instruction issued by the management center, the dispatching center can determine the area server to which the target edge server belongs according to the identity in the instruction.
And S303, the regional server sends the instruction to the edge server corresponding to the identity according to the identity contained in the instruction.
In one embodiment, the regional server may receive an instruction issued by the public network management center, and issue the instruction to the edge server in the local area network, so as to implement communication between the edge server in the local area network and the management center of the public network, thereby serving as a gateway between the edge server and the management center. After receiving the instruction, the edge server sends the instruction to the service client, and the service client executes the instruction. The edge server can cache the data acquired by the service client, and the area server can cache the data stored by the subordinate edge server, so that when the subordinate edge server sends the same service request to the area server, the area server can directly return the data corresponding to the service request to the edge server without acquiring the data from the source station.
Fig. 4 is a block diagram of an edge server management system of a CDN network according to an embodiment of the present invention.
The edge server management system of the CDN provided by the embodiment of the invention is used for managing edge servers and comprises a management center, a scheduling center and a regional server. The dispatching center is used for receiving and verifying a registration request which is sent by the edge server and contains the identity identifier, acquiring information of a regional server to which the edge server belongs from the management center and sending the information to the edge server; the regional server is used for establishing connection with the edge server based on the information of the regional server; the management center is used for issuing the instruction containing the identity identifier to the dispatching center; and the dispatching center is also used for issuing the instruction containing the identity identifier to the edge server corresponding to the identity identifier based on the connection between the area server and the edge server.
Further, the dispatching center is also used for receiving the registration request of the edge server and analyzing the registration request to obtain the registration information of the edge server; the dispatching center is also used for acquiring the information of the edge server corresponding to the identity identifier from the management center according to the identity identifier in the registration information; the dispatching center is also used for comparing the registration information with the information of the edge server acquired from the management center so as to determine the regional server to which the edge server belongs; and the dispatching center is also used for acquiring the information of the regional server to which the edge server belongs from the management center and sending the information of the regional server to the edge server.
Further, the registration information includes an area where the edge server is located, an operator to which the edge server belongs, an IP address of the edge server, and an MAC address of the edge server; the information of the edge server acquired by the dispatching center comprises the area where the edge server is located, the operator to which the edge server belongs, the IP address of the edge server and the MAC address of the edge server; the information of the regional server comprises a region to which the regional server belongs, an operator to which the regional server belongs, an IP address of the regional server and an MAC address of the regional server.
Fig. 5 is a block diagram of a dispatch center in accordance with an embodiment of the present invention.
The scheduling center of the embodiment of the invention comprises: the system comprises a registration module, a management center and a management module, wherein the registration module is used for receiving and verifying a registration request containing an identity identifier sent by an edge server, acquiring the information of an area server from the management center and sending the information of the area server to the edge server; and the instruction issuing module is used for receiving an instruction which is issued by the management center and contains the identity identifier of the edge server, and issuing the instruction to the regional server to which the edge server corresponding to the identity identifier belongs.
Further, the registration module is further configured to receive a registration request of the edge server, and analyze the registration request to obtain registration information of the edge server; the registration module is also used for acquiring the information of the edge server corresponding to the identity identifier from the management center according to the identity identifier in the registration information; and the registration module is also used for comparing the registration information with the information of the edge server acquired by the dispatching center so as to determine the regional server to which the edge server belongs.
The scheduling center shown in this embodiment may be applied to the method embodiments shown in fig. 1, fig. 2, and fig. 3, and is not described herein again.
Therefore, compared with the prior art that the management center manages the local area network servers through the public network IP address, the invention configures the identity for each edge server, so that the dispatching center can receive and verify the registration request which is sent by the edge server and contains the identity, acquire the information of the area server to which the edge server belongs from the management center, send the information to the edge server, establish the connection between the area server and the edge server, and realize that the area server serves as a gateway between the edge server of the local area network and the management center of the public network. Furthermore, the management center can manage the edge server based on the connection between the area server and the edge server and by combining the unique identity of the edge server. The invention not only solves the problem that the management center manages the edge server through the IP address in the prior art and needs to consume more public network IP addresses; the problem that the management center cannot manage due to the change of the IP address of the edge server is also solved. Further, the management center issues the instruction to the dispatching center, and the dispatching center sends the various instructions to the edge servers corresponding to the identity identifications through the area server according to different identity identifications in the instruction. The invention realizes the uniform planning and adjustment of the dispatching center to the command issuing through the layer issuing management method, thereby reducing the load of the management center to issue the command.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.