Disclosure of Invention
The technical problem to be solved by the invention is to provide a method and a system for controlling the service quality in a service distribution network, which can better meet the control requirement of the service quality.
In order to solve the above technical problem, the present invention provides a method for controlling quality of service in a service distribution network, wherein the method comprises:
and the Content Delivery Network (CDN) management system provides different copy numbers and different placement positions for the contents with different service levels when the pre-distribution of the content copies is carried out according to the service level information of each content maintained by the service management system.
Further, when the CDN management system pre-distributes the content copies, the CDN management system decides the number of pre-distributed copies and placement positions of the content at each service level according to the service control parameters maintained by the service management system;
the service control parameters specify the quality indexes of the number and the position distribution of the pre-distributed copies corresponding to the content of each service level.
Further, when the CDN management system pre-distributes the content copies, the CDN management system provides a larger number of copies and a better placement location for the content with a higher service level.
Further, the method further comprises:
and the service management system sends the maintained service control parameters and/or the service level information of each content to the CDN management system, or provides query for the CDN management system.
Further, the method further comprises:
the service management system sends the maintained service level information of each content to a cache server node; or,
the service management system stores the maintained service level information of each content in a service level database and provides query for the CDN management system and the cache server node; or,
and when the CDN management system carries out the pre-distribution of the content copies, the CDN management system sends the service level information of each content to the cache server node along with the pre-distribution process.
Further, the method further comprises:
and the cache server node performs cache control on cached contents with different levels according to the service level information of each content received or inquired from the service management system or sent by the CDN management system.
Further, the method further comprises:
the cache server node formulates a cache replacement strategy of the content of each service level according to the service control parameters received or inquired from the service management system, wherein the cache replacement strategy comprises the size of a cache space and elimination rules;
the service control parameters specify cache space resources and/or elimination rules corresponding to the contents of each service level.
Further, the method further comprises:
the cache server node respectively configures corresponding resource parameters for contents of different service levels according to the service control parameters received or inquired from the service management system, and provides services for users according to the configured resource allocation parameters;
the service control parameters specify flow resources and CPU resources corresponding to the contents of each service level;
the resource allocation parameters include: traffic resources, CPU computational resources.
The invention also provides a control system of the service quality in the service delivery network, the control system comprises a service management system and a CDN management system, the CDN management system further comprises a pre-delivery module and a parameter information acquisition module, the service management system further comprises a service classification database, wherein,
the service classification database is used for maintaining the service level information of each content;
the parameter information acquisition module is used for acquiring the service level information of each content from the service classification database;
the pre-distribution module is used for providing different copy numbers and different placement positions for the contents with different service levels when the pre-distribution of the content copies is carried out according to the service level information of each content acquired by the parameter information acquisition module.
Further, the service classification database is used for maintaining service control parameters;
the parameter information acquisition module is further used for acquiring service control parameters from the service classification database, wherein the service control parameters specify the quality indexes of the number and the position distribution of the pre-distributed copies corresponding to the content of each service level;
the pre-distribution module is used for deciding the number and the placement position of the pre-distribution copies of the content of each service level according to the service control parameters acquired by the parameter information acquisition module when the content copies are pre-distributed.
Further, the control system also comprises a service control module in the service management system,
the service control module is used for sending the maintained service level information and service control parameters of each content to the CDN management system and/or each cache server node; or,
and providing the CDN management system and the cache server node with the service level information of each content and the query of the service control parameters.
Further, the pre-distribution module is further configured to send the service level information of each content to the cache server node along with a pre-distribution process when performing pre-distribution of the content copy.
Further, the control system also comprises a cache control module in the cache server node,
the cache control module is used for performing cache control on cached contents with different levels according to the service level information of each content received or inquired from the service management system or sent by the CDN management system.
Further, the cache control module is configured to formulate a cache replacement policy of the content of each service level according to the service control parameter received or queried from the service management system, where the cache replacement policy includes a cache space size and an elimination rule;
the service control parameters specify cache space resources and/or elimination rules corresponding to the contents of each service level.
Further, the control system also comprises a service control module in the cache server node,
the service control module is used for respectively configuring corresponding resource parameters for contents of different service grades according to service control parameters received or inquired from the service management system and providing services for users according to the configured resource distribution parameters;
the service control parameters specify flow resources and CPU resources corresponding to the contents of each service level;
the resource allocation parameters include: traffic resources, CPU computational resources.
Compared with the prior art, the invention has at least the following beneficial effects:
1. the pre-distribution of the CDN management system copies is controlled by the service management system, so that the contents with different service levels obtain the copy placement quality of different levels, the storage resources of Cache server nodes can be integrally saved, and the higher-quality service can be provided for the contents with high levels;
2. the Cache of the Cache server node is controlled by the service management system, so that the contents with different service levels obtain the Cache quality of different levels, and the Cache space resources of the Cache server node are effectively utilized;
3. the service management system controls the service of the Cache server node, effectively utilizes various system resources (including bandwidth, storage, CPU computing capacity and the like) of the CDN Cache server node, and ensures high-quality service of specific content.
Detailed Description
The control system for the quality of service in the content distribution network according to the present embodiment includes: the system comprises a service management system, a CDN management system, at least one source server node and a plurality of Cache server nodes.
The service management system mainly comprises the following functions: storing service levels of different contents; controlling CDN global service parameters; and distributing service control parameters to Cache server nodes, thereby providing different quality services for services of different grades.
The CDN management system is mainly responsible for managing Cache server nodes, pre-distributing content to the Cache server nodes, and guiding user requests to the Cache server nodes in a balanced manner.
And the Cache server node stores the content entity at the network edge. And the system is also responsible for receiving the service control parameters sent by the service management system and providing services with different qualities for different contents according to the service control parameters.
The method for controlling the service quality in the content delivery network of the present embodiment mainly includes the following steps:
A. and the service management system maintains the service control parameters and sends the service control parameters to the CDN management system and the Cache server node.
An administrator can configure service control parameters through an interface provided by the service management system, and after the parameters change, the service management system needs to send an update instruction to the CDN management system and the Cache server node.
B. And the service management system maintains the service level information of each content and receives the query of the CDN management system or the Cache server node.
Wherein the service level information is determined by an agreement between the content provider and the CDN service provider.
And C, the CDN management system performs pre-distribution of the content copy according to the obtained service control parameters and the service level information of the content.
In addition, the service level information of the content can also be simultaneously sent to the Cache server node along with the pre-distribution process of the content copy.
And the cache server node can control the cache according to the obtained control parameters and the service level information in the service providing process (for example, eliminating and adjusting the content in the cache as required).
And E, configuring different resource parameters for different contents by the cache server node according to the obtained service control parameters, and providing services for the user according to the resource parameters.
It should be noted that there is no specific timing relationship between the above contents.
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
As shown in fig. 2, the control system of the quality of service in the content distribution network of the present embodiment includes: the system comprises a service management system, a CDN management system, a source server node and a Cache server node.
The service management system sends service control parameters to the CDN management system and the Cache server node, receives the query of the CDN management system and the Cache server node on the service level information of the content, and then the CDN management system and the Cache server node perform corresponding processing according to the service control parameters and the service level information of the content, so that services with different qualities are provided for the content with different service levels.
The CDN management system further comprises a pre-distribution module and a parameter information acquisition module, and the service management system further comprises a service classification database and a service control module.
The service classification database is used for maintaining the service level information of each content;
the parameter information acquisition module is used for acquiring the service level information of each content from the service classification database;
the pre-distribution module is used for providing different copy numbers and different placement positions for the contents with different service levels when the pre-distribution of the content copies is carried out according to the service level information of each content acquired by the parameter information acquisition module.
Further, the service classification database is used for maintaining service control parameters;
the parameter information acquisition module is also used for acquiring service control parameters from the service classification database, wherein the service control parameters specify the quality indexes of the quantity and the position distribution of the pre-distributed copies corresponding to the content of each service level;
the pre-distribution module is used for deciding the number and the placement position of the pre-distribution copies of the content of each service level according to the service control parameters acquired by the parameter information acquisition module when the content copies are pre-distributed.
The service control module is used for sending the service level information and the service control parameters of each piece of content to be maintained to the CDN management system and/or each cache server node; or,
and providing the query of the service level information and the service control parameters of each content to the CDN management system and the cache server nodes.
Further, the pre-distribution module is further configured to send the service level information of each content to the cache server node along with the pre-distribution process when performing pre-distribution of the content copy.
Further, the control system also comprises a cache control module in the cache server node,
the cache control module is used for performing cache control on cached contents with different levels according to the service level information of each content received or inquired from the service management system or sent by the CDN management system.
Further, the cache control module is used for making a cache replacement strategy of the content of each service level according to the service control parameters received or inquired from the service management system, wherein the cache replacement strategy comprises the size of a cache space and an elimination rule;
the service control parameters specify cache space resources and/or elimination rules corresponding to the contents of each service level.
Further, the control system also includes a service control module in the cache server node,
the service control module is used for respectively configuring corresponding resource parameters for the contents of different service grades according to the service control parameters received or inquired from the service management system and providing services for the users according to the configured resource distribution parameters;
wherein, the service control parameter prescribes the flow resource and CPU resource corresponding to the content of each service level;
the resource allocation parameters include: traffic resources, CPU computational resources.
The flow of the service management system of the embodiment of the present invention controlling the service quality is shown in fig. 3, and mainly includes the following steps:
in step 301, the administrator configures service control parameters through the interface. During the operation of the system, the administrator can modify the service control parameters at any time as required.
And 302-303, the service management system sends service control parameters to the CDN management system and the Cache server node.
And then, the CDN management system formulates a pre-distribution strategy of each level of content according to the service control parameter, and the Cache server node formulates a Cache replacement strategy of each level of content according to the parameter, performs Cache control and provides service for the user.
If the service management system does not master the list of Cache server nodes in the CDN system, step 303bis may be executed instead of step 303, and the CDN management system forwards the service control parameters to each Cache server node.
And step 304, the service management system maintains the service level information and receives the query of the CDN management system and the Cache server node.
In this embodiment, the service management system stores the service level information of the content in the service level database.
The CDN management system and each Cache server node store the service level information of the content, or can query and record the service level information of the content when needed; the service level information of the content can also be indirectly forwarded to the Cache server node by the CDN management system.
The administrator can configure the service levels of the content providers or the content objects through the interface, and the service level of each specific content object can also be generated according to the level of the content provider to which the specific content object belongs and a certain algorithm.
For example, there are n content objects in the system. The service is divided into 10 levels L = { 1,2, … 10 }, where L10 is the highest level. The service level attribute of the nth content object Cn is denoted CnL。
The service level for each content object may be specified in a content provider and CDN provider contract. Each service class has a different price. For a content provider, it is possible to purchase acceleration services of different service levels according to the importance of the content.
The flow of copy distribution of the embodiment of the present invention is shown in fig. 4, and the flow mainly includes the following steps:
step 401, a CDN management system obtains a certain content from a content source server;
the pushing or pulling mode can be adopted.
Step 402, the CDN management system queries the service management system for service level information/parameters of the content object.
Step 403, the service management system returns the service level parameter to the CDN management system.
In step 404, the CDN management system generates a pre-delivery policy according to the pre-delivery rule determined by the service control parameter and the level information of the content.
In this embodiment, the pre-distribution rule refers to a method for formulating a pre-distribution policy for each level of content, for example, a template form may be adopted in the service control parameter to specify quality indexes such as the number of pre-distribution copies, specific distribution positions, and the like of each level of content. Before pre-distributing each content object, the CDN management system firstly makes a pre-distribution strategy according to a content grade matching template.
The pre-distribution strategy is as follows: copies of several pieces of content are copied to Cache server nodes, specifically to which server nodes, i.e., decisions regarding the number and location of copies.
And for the same content object, at most one copy is copied by each Cache server node.
Step 405, the CDN management system distributes the content object copies to the corresponding Cache server nodes according to the distribution policy, and the level information of the content objects may be sent along with the pre-distribution process.
Specifically, the pre-distribution strategy can be divided into two phases, namely an initialization pre-distribution phase and a dynamic adjustment phase. The principle of the initial pre-distribution stage is to provide a relatively high copy number for the content with high service level, ensure the copy coverage rate and copy the content to the Cache server node with a good position. In the dynamic adjustment phase, i.e., when the access volume and the regional distribution change, the quality of service is ensured by dynamically adjusting the number and the location. The principle of dynamic adjustment is still to provide higher number of copies and better location for content with high service level.
The above-mentioned duplicate coverage rate refers to: for a content object, the ratio of the number of servers holding copies to the total number of servers is the copy coverage. The larger the number of copies, the larger the coverage.
For example, the specific number of copies is determined according to the service level parameters, so that the coverage rate is ensured, and N Cache server nodes are provided. The service is divided into 10 classes L = { 1,2, … 10 }. L10 is highest in rank. The number of pre-distributed copies per rank is L x n. Where a is a distribution coefficient, which is a constant. The coverage of content objects of level L is Cr = L a/N.
Specific implementations of the above-described pre-distribution strategy will be described in further detail below by way of example.
Specifically, the pre-distribution stage is exemplified as follows: more copies can be pre-distributed to the higher-level content objects, for example, one copy is distributed to each Cache server in each city; fewer copies are distributed to lower-level content objects, e.g., only one Cache server per province. Of course, the operator may specify more levels of complexity depending on the particular situation.
Taking the dynamic adjustment phase as an example: the CDN management system collects and monitors the access requests and the service quality of each content object, and when the access amount and the regional distribution of a certain content change, if the content has a higher subscription level, the CDN management system can make a dynamic adjustment strategy according to the service control parameters, so that the total number of copies or the number of copies in a certain regional range is increased, the access hit rate is improved, and the higher service quality is maintained. If the subscription level is low, the CDN management system may not increase the number of copies and the quality of service may be degraded. Of course, the operator may make more complex dynamic adjustment levels depending on the particular situation.
The flow of Cache server node Cache control of the embodiment of the invention is shown in fig. 5, and the flow mainly comprises the following steps:
step 501, the Cache server node searches for the content to be cached.
And the Cache server node finds out and acquires the content to be cached from the source server node or other Cache server nodes.
Step 502, caching the service level attribute of the content by the Cache server node;
the service level attribute of the content can be specifically pulled from the source server node or the Cache server node in which the corresponding content is stored.
Step 503, the Cache server node controls the Cache according to the service control parameter and the service level attribute of the Cache content;
for example, in this embodiment, the service control parameter specifies a cache space resource and/or a culling rule corresponding to the content of each service level. The replaced object may be decided according to the culling rule of the corresponding service level. Finding out the service queue where the content is located, and if the service queue is full, replacing other content objects according to corresponding elimination rules so as to free up storage space.
Where the contents of the same class of service are placed in the same administrative queue. The contents with different scope levels correspond to different space resources and elimination rules, and relatively large cache space is allocated to the contents with high service level.
For example, the service is divided into 10 classes L = { 1,2, … 10 }. L10 is highest in rank. For a level L content buffer queue, the allocated buffer space is SL (unit: megabyte). The average size of the content is C M. The maximum number of content blocks in the buffer space of the corresponding level is n = SL/C. The hit rate for the replacement method is K × n. Where K is the other coefficients and n is the maximum number of content blocks. The hit rate of the cache can be controlled by adjusting the value of SL.
And step 504, adding the buffer queue of the corresponding grade according to the service grade attribute.
The flow of configuring service parameters and providing services for different contents by a Cache server node in the embodiment of the present invention is shown in fig. 6, and the flow mainly includes the following steps:
step 601, checking the service level attribute of the content;
the content in the Cache server node has two sources, namely pre-distribution acquisition or Cache acquisition. In the two modes, the Cache server node can obtain the service level information of the content along with the content and store the service level information in the local.
In addition, the service level information of the content object can be inquired to the service management system immediately.
Step 602, configuring resource parameters according to the service control parameters, and configuring resource allocation parameters for the content according to the service level of the content;
here, the resource parameter here refers to: flow resources and CPU resources corresponding to the contents of each service level specified in the service control parameters;
the resource allocation parameters include traffic resources, CPU computing resources, and the like.
Step 603, providing service under the limitation of resource allocation parameters;
after receiving a user request, checking whether the content requested by the user exceeds a value limited by the resource allocation parameter, and starting service if the content requested by the user does not exceed the value limited by the resource allocation parameter; and denying service if the limit is exceeded.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.