A CDN node data resource analysis method and computer device
By obtaining and analyzing the traffic capacity and customer demand traffic of CDN node data distribution, a data distribution table is generated, which solves the problem of positioning and adjustment when distributing CDN node data resources, achieves real-time monitoring and rapid response, and improves operational efficiency and customer satisfaction. Spend.
Patent Information
- Application Number
- CN202111579708.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-12-22
AI Technical Summary
When distributing existing CDN node data resources, it is difficult to accurately locate the cause of the problem and adjust specific area coverage, resulting in increased operational complexity and difficulty in effective management and scheduling.
By obtaining the traffic capacity value of CDN node data distributed in each group of IP networks and the expected demand traffic of target customers, collect real-time and peak traffic, calculate redundant traffic, and generate a CDN data distribution table to analyze whether there is a risk of excessive traffic usage. Early warning prompts and resource adjustments.
It enables real-time understanding of the operation status of CDN node data resources, accurately locates exceptions, and quickly captures the source of exceptions, improving resource management efficiency and exception handling efficiency to meet customer needs.
Smart Images

Figure CN114448818B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of CDN (Content Delivery Network) node data resource services, and in particular to a CDN node data resource analysis method and computer equipment. Background Art
[0002] CDN, or content distribution network, forms an intelligent virtual network based on the Internet by placing node servers in various locations on the network. It can redirect user requests to the service node closest to the user in real time based on comprehensive information such as network traffic and the connection and load status of each node, as well as the distance to the user and response time. Its purpose is to enable users to obtain the required content nearby, solve the problem of Internet network congestion, and improve the response speed of users visiting websites.
[0003] At present, due to the increasing number of CDN nodes and customers, the global operation complexity of CDN node data resources has increased. In addition, with a large number of nodes and a large amount of customer coverage data, when operating global CDN nodes and scheduling global customer coverage data, it is difficult to accurately locate the cause of problems when CDN nodes distribute data resources, and do not know how to adjust the data resources covered by specific areas. Summary of the invention
[0004] Therefore, the technical problem to be solved by the present invention is to overcome the problem in the prior art that it is difficult to accurately locate the cause of problems when CDN nodes distribute data resources and not know how to adjust the data resources covered by which specific areas, thereby providing a CDN node data resource analysis method and computer equipment.
[0005] According to a first aspect, the present invention provides a method for analyzing CDN node data resources, comprising the following steps:
[0006] Obtain the traffic capacity values of CDN node data distributed in each group of IP networks and the estimated traffic demand of target customers in the target area;
[0007] Collecting the real-time traffic of target customers in the target area based on each group of IP networks and the peak traffic within a preset time;
[0008] Calculate the expected redundant traffic, actual redundant traffic and peak redundant traffic of the target customer in the target area based on each group of IP networks according to the traffic capacity value, the expected demand traffic of the target customer in the target area, the real-time traffic and the peak traffic, and generate a CDN data distribution table of the target customer in the target area;
[0009] According to the data recorded in the CDN data distribution table, it is analyzed whether there is a risk of excessive traffic usage of the target customer in the target area based on the groups of IP networks.
[0010] In one embodiment, the peak flow within the preset time includes: a first peak flow corresponding to a first time and a second peak flow corresponding to a second time, and the time of the first time adjacent to the current moment is shorter than the time of the second time adjacent to the current moment.
[0011] In one embodiment, according to the traffic capacity value, the expected demand traffic of the target customer in the target area, the real-time traffic and the peak traffic, the expected redundant traffic, the actual redundant traffic and the peak redundant traffic of the target customer in the target area based on the IP networks of each group are calculated by the following formula:
[0012] Y apij =Z a -[T pi / m pi +T pj / n pj ];
[0013] Among them, Y apij is the estimated redundant traffic of target customers i and j in target area p based on group a of IP networks, Z a is the traffic capacity value of CDN nodes distributed in group a of IP networks, T pi is the expected demand flow of target customer i in target area p, m pi is the number of customers covered by target customer i in target area p based on group a IP network, T pj is the expected demand flow of target customer j in target area p, n pj The coverage quantity of target customer j in target area p based on group a IP network;
[0014] S apij =Z a -[W pi / m pi +W pj / n pj ];
[0015] Among them, S apij is the actual redundant traffic of target customers i and j in target area p based on group a of IP networks, Z a is the traffic capacity value of CDN nodes distributed in group a of IP networks, W pi is the real-time traffic of target customer i in target area p, m pi is the number of customers covered by target customer i in target area p based on group a IP network, W pjis the real-time traffic of target customer j in target area p, n pj The coverage quantity of target customer j in target area p based on group a IP network;
[0016] F apij =Z a -[E pi / m pi +E pj / n pj ];
[0017] Among them, F apij is the peak redundant traffic of target customers i and j in target area p based on group a of IP networks, Z a is the traffic capacity value of CDN nodes distributed in group a of IP networks, E pi is the second peak flow of target customer i in target area p during the second time, m pi is the number of customers covered by target customer i in target area p based on group a IP network, E pj is the second peak flow of target customer j in target area p in the second time, n pj The coverage quantity of target customer j in target area p based on group a IP network;
[0018] Said a is a positive integer.
[0019] In one embodiment, generating a CDN data distribution table of a target customer in a target area according to each data recorded in the CDN data distribution table includes:
[0020] The CDN data distribution table is generated according to the traffic capacity values of the CDN nodes distributed in each group of IP networks, the real-time traffic of the target customers in the target area based on the each group of IP networks and the peak traffic within a preset time, the target customers and the coverage number of the target customers based on the each group of IP networks and the name of the target area.
[0021] In one embodiment, according to each data recorded in the CDN node data distribution table, analyzing whether the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area includes:
[0022] Calculating a first difference between actual redundant traffic of the target customer in the target area based on each group of IP networks and estimated redundant traffic of the target customer in the target area based on each group of IP networks;
[0023] Calculating a first ratio of the first difference to the estimated demand flow of the target customer in the target area;
[0024] When the first ratio is a positive number, the target customer is at risk of exceeding the traffic usage limit based on the groups of IP networks in the target area.
[0025] In one embodiment, analyzing whether there is a risk of excessive traffic usage of a target customer based on each group of IP networks in a target area according to each data recorded in the CDN node data distribution table further includes:
[0026] Selecting a maximum flow value between the real-time flow of the target customer in the target area based on each group of IP networks and the peak flow within the preset time;
[0027] Calculating a second difference between the maximum flow value and the estimated demand flow of the target customer in the target area;
[0028] Calculating a percentage between the second difference and the estimated demand flow of the target customer in the target area;
[0029] When the percentage exceeds a preset ratio, the target customer is at risk of exceeding the traffic usage limit based on each group of IP networks in the target area.
[0030] In one embodiment, analyzing whether there is a risk of excessive traffic usage of a target customer based on each group of IP networks in a target area according to each data recorded in the CDN node data distribution table further includes:
[0031] Calculate whether a second ratio between the real-time traffic of the target customer in the target area based on each group of IP networks and the traffic energy value is less than a preset value;
[0032] When the second ratio is less than a preset value, the target customer is at risk of exceeding the traffic usage limit based on the groups of IP networks in the target area.
[0033] In one embodiment, analyzing whether there is a risk of excessive traffic usage of a target customer based on each group of IP networks in a target area according to each data recorded in the CDN node data distribution table further includes:
[0034] Check in real time whether there are negative numbers in each data recorded in the CDN node data distribution table;
[0035] If there is a negative number, the target customer is at risk of exceeding the traffic usage limit based on the IP network groups in the target area.
[0036] In one embodiment, the CDN node data resource analysis method further includes:
[0037] When the target customer is at risk of exceeding the traffic usage limit based on the IP networks of each group in the target area, an early warning prompt is issued.
[0038] According to the second aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the CDN node data resource analysis method described in the first aspect or any embodiment of the first aspect.
[0039] According to the third aspect, an embodiment of the present invention further provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method for analyzing CDN node data resources described in the first aspect or any embodiment of the first aspect by executing the computer instructions.
[0040] The technical solution of the present invention has the following advantages:
[0041] The present invention discloses a method for analyzing CDN node data resources and a computer device, wherein the method includes: obtaining the flow capacity value of CDN node data distributed in each group of IP networks and the expected demand flow of target customers in the target area; collecting the real-time flow of target customers in the target area based on each group of IP networks and the peak flow within a preset time; according to the flow capacity value, the expected demand flow, real-time flow and peak flow of target customers in the target area, calculating the expected redundant flow, actual redundant flow and peak redundant flow of target customers in the target area based on each group of IP networks, and generating a CDN data distribution table for target customers in the target area; according to the data recorded in the CDN data distribution table, analyzing whether there is a risk of excessive flow use based on each group of IP networks in the target area for target customers. The present invention can obtain the data resource operation status of CDN nodes in real time and accurately locate abnormal CDN data, and then can quickly capture the root cause of the abnormal CDN data, and based on the problems when CDN nodes distribute data resources, can quickly adjust and control global resources in a targeted manner. In addition, there is no need to manually inspect the data of each CDN node, which improves the efficiency of analyzing CDN node data and processing abnormal CDN node data, and ultimately can meet customers' needs for the use of CDN node data. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1This is a flowchart of a specific example of a method for analyzing CDN node data resources in an embodiment of the present invention;
[0044] Figure 2 This is a flowchart of another specific example of a method for analyzing CDN node data resources in an embodiment of the present invention;
[0045] Figure 3 This is a flowchart of another specific example of a method for analyzing CDN node data resources in an embodiment of the present invention;
[0046] Figure 4 This is a flowchart of another specific example of a method for analyzing CDN node data resources in an embodiment of the present invention;
[0047] Figure 5 This is a flowchart of another specific example of a method for analyzing CDN node data resources in an embodiment of the present invention;
[0048] Figure 6 This is a flowchart of another specific example of a method for analyzing CDN node data resources in an embodiment of the present invention;
[0049] Figure 7 It is a structural block diagram of a device for analyzing CDN node data resources in an embodiment of the present invention;
[0050] Figure 8 FIG. 4 is a hardware schematic diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0053] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, it can also be the internal connection of two components, it can be a wireless connection, or it can be a wired connection. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0054] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0055] The embodiment of the present invention provides a method for analyzing CDN node data resources, which is applied to the technical field of CDN node data resource service. Figure 1 As shown, the following steps are included:
[0056] Step S11: Obtain the traffic capacity value of CDN node data distributed in each group of IP networks and the estimated required traffic of target customers in the target area.
[0057] The CDN node here is a server used to cache data. After a website joins the CDN service, it will involve multiple CDN nodes. When a user visits the website, the request will be directed to the nearest CDN node to improve the access speed. The closer the CDN node is to the user, the faster the response speed. Among them, the traffic capacity value of the CDN node distributed in each group of IP networks is the broadband traffic value that can be covered or distributed on each group of IP networks by broadband data. For example: the target customer (map) is test1.cdn.cn, and the traffic capacity value distributed in group a IP network is 20M, and a can represent group 11, group 12, group 13, etc.
[0058] In one implementation, the traffic capacity value of CDN node data distribution in any group of IP networks can be determined based on the machine room egress of the CDN node and the number of CDN nodes serving customers.
[0059] For example, the IP network traffic capacity values distributed in groups 11, 12, 13, and 14 are all 20M.
[0060] The estimated traffic demand of the target customer in the target area is the traffic that the target customer plans to need to meet the allocation demand. For example, the traffic required by the target customer Test1 in the target area d according to the current business demand plan is 10G, and the traffic required by the target customer Test2 in the target area d according to the current business demand plan is 8G. The target area can be the province area, city area, village area, street area or any area marked on the map.
[0061] Step S12: collecting the real-time traffic of the target customer in the target area based on each group of IP networks and the peak traffic within a preset time.
[0062] The peak flow rate within the preset time includes: the first peak flow rate corresponding to the first time and the second peak flow rate corresponding to the second time, and the time of the first time adjacent to the current time is less than the time of the second time adjacent to the current time. For example, the first time can be yesterday adjacent to the current day, and the second time can be within 7 days adjacent to the current day. As shown in Table 1 below.
[0063] Table 1
[0064]
[0065]
[0066] Step S13: Calculate the expected redundant traffic, actual redundant traffic and peak redundant traffic of the target customer in the target area based on each group of IP networks according to the traffic capacity value, the target customer's expected demand traffic, real-time traffic and peak traffic in the target area, and generate a CDN node data distribution table for the target customer in the target area.
[0067] The above traffic capacity values, the expected demand traffic of target customers in the target area, the real-time traffic and the peak traffic are statistically shown in the following Table 2.
[0068] Table 2
[0069]
[0070] In one embodiment, the above step S13 calculates the expected redundant traffic, actual redundant traffic and peak redundant traffic of the target customer in the target area based on each group of IP networks according to the traffic capacity value, the expected demand traffic, real-time traffic and peak traffic of the target customer in the target area, and is performed by the following formulas (1)-(3):
[0071] Y apij =Z a -[T pi / m pi +T pj / n pj];(1)
[0072] Among them, Y apij is the estimated redundant traffic of target customers i and j in target area p based on group a of IP networks, Z a is the traffic capacity value of CDN nodes distributed in group a of IP networks, T pi is the expected demand flow of target customer i in target area p, m pi is the number of customers covered by target customer i in target area p based on group a IP network, T pj is the expected demand flow of target customer j in target area p, n pj The coverage quantity of target customer j in target area p based on group a IP network;
[0073] S apij =Z a -[W pi / m pi +W pj / n pj ]; (2)
[0074] Among them, S apij is the actual redundant traffic of target customers i and j in target area p based on group a of IP networks, Z a is the traffic capacity value of CDN nodes distributed in group a of IP networks, W pi is the real-time traffic of target customer i in target area p, m pi is the number of customers covered by target customer i in target area p based on group a IP network, W pj is the real-time traffic of target customer j in target area p, n pj The coverage quantity of target customer j in target area p based on group a IP network;
[0075] F apij =Z a -[E pi / m pi +E pj / n pj ]; (3)
[0076] Among them, F apij is the peak redundant traffic of target customers i and j in target area p based on group a of IP networks, Z a is the traffic capacity value of CDN nodes distributed in group a of IP networks, E pi is the second peak flow of target customer i in target area p during the second time, m pi is the number of customers covered by target customer i in target area p based on group a IP network, E pj is the second peak flow of target customer j in target area p in the second time, npj The coverage quantity of target customer j in target area p based on group a IP network;
[0077] a is a positive integer and can represent the following 11 groups, 12 groups, and 13 groups.
[0078] Y is calculated by the above formulas (1), (2) and (3): apij is the estimated redundant traffic of target customers i and j in target area p based on group a of IP networks, S apij is the actual redundant traffic of target customers i and j in target area p based on group a of IP networks, F apij The peak redundant traffic of target customers i and j in target area p based on group a of IP networks is shown in Table 3 below.
[0079] Table 3
[0080]
[0081]
[0082] In one embodiment, according to each data recorded in the CDN node data distribution table, a CDN node data distribution table of a target customer in a target area is generated, including:
[0083] The traffic capacity value of CDN nodes distributed in each group of IP networks, the real-time traffic of target customers in the target area based on each group of IP networks and the peak traffic within the preset time are generated according to the target customers and the coverage number of target customers based on each group of IP networks and the name of the target area. The CDN data distribution table CDN node data distribution table is shown in Table 4 below.
[0084] Table 4
[0085]
[0086]
[0087]
[0088] In Table 4 above:
[0089] The estimated distributed traffic of each group of IP networks in Test1 = the estimated required traffic of Test1 / the number of IP networks covered in Test1;
[0090] The estimated distributed traffic of each group of IP networks in Test2 = the estimated demand traffic of Test2 / the number of IP networks covered in Test2;
[0091] The real-time distribution traffic of each group of IP networks in Test1 = the real-time coverage traffic of Test1 / the number of coverage of IP networks distributed on Test1;
[0092] The real-time distribution traffic of each group of IP networks in Test2 = the real-time coverage traffic of Test2 / the number of coverage of IP networks distributed on Test2;
[0093] Table 4 also records yesterday's peak redundant traffic of each group of IP networks.
[0094] Step S14: Analyze whether the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area according to the data recorded in the CDN node data distribution table.
[0095] In one embodiment, if Figure 2 As shown, the above step S14, according to the data recorded in the CDN node data distribution table, analyzes whether the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area, including:
[0096] Step S21: Calculate a first difference between the actual redundant traffic of the target customer in the target area based on each group of IP networks and the estimated redundant traffic of the target customer in the target area based on each group of IP networks.
[0097] For example: The actual redundant traffic S of target customer Test1 in the target area Guangdong Province based on 11 groups of IP networks apij =Z a -[W pi / m pi +W pj / n pj ]=20-[8 / 2+4 / 2]=14G, the estimated redundant traffic Y of target customer Test1 in the target area Guangdong Province based on 11 groups of IP networks apij =Z a -[T pi / m pi +T pj / n pj ]=20-[10 / 2+8 / 2]=11G, then 14-11=3G.
[0098] Step S22: Calculate a first ratio of the first difference to the estimated demand flow of the target customer in the target area.
[0099] The first difference calculated in step S21 is 3G, the estimated demand flow of Test1 in the target area Guangdong Province is 10G, and 3 / 10=0.3.
[0100] Step S23: When the first ratio is a positive number, the target customer is at risk of exceeding the traffic usage limit based on each group of IP networks in the target area.
[0101] The ratio calculated in step S22 is 0.3, and 0.3>0, indicating that the target customer Test1 has a risk of exceeding the traffic usage limit based on 11 groups of IP networks in the target area Guangdong Province.
[0102] On the contrary, when the first ratio is a non-negative number, there is no risk of excessive traffic usage for the target customer in the target area based on each group of IP networks, that is, the current CDN node data traffic distribution is in a safe state.
[0103] In another embodiment, if Figure 3 As shown, the above step S14, according to the data recorded in the CDN node data distribution table, analyzes whether the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area, and also includes:
[0104] Step 31: Select a maximum flow value between the real-time flow of the target customer in the target area based on each group of IP networks and the peak flow within a preset time.
[0105] For example: The real-time traffic of target customer Test2 in the target area Guangdong Province based on 11 groups of IP networks is 4G, and the peak traffic of target customer Test2 in the target area Guangdong Province based on 11 groups of IP networks within 7 days is 6G. The maximum traffic value 6G is selected between 4G and 6G.
[0106] Step 32: Calculate a second difference between the maximum flow value and the estimated demand flow of the target customer in the target area.
[0107] The maximum traffic value determined in step S31 is 6G, the estimated traffic demand of target customer Test2 in the target area Guangdong Province is 8G, and the second difference is 6-8=-2G;
[0108] Step S33: Calculate the percentage between the second difference and the estimated demand flow of the target customer in the target area.
[0109] The second difference calculated in step S32 is -2G, and the estimated required traffic of the target customer Test2 in the target area Guangdong Province is 8G, (-2 / 8*100%)=-25%.
[0110] Step 34: When the percentage exceeds the preset ratio, the target customer is at risk of exceeding the traffic usage limit based on each group of IP networks in the target area.
[0111] On the contrary, when the percentage is less than or equal to the preset ratio, there is no risk of excessive traffic usage for target customers in the target area based on each group of IP networks, that is, the current CDN node data traffic distribution is in a safe state.
[0112] For example, the percentage between the second difference calculated in step S32 and the estimated traffic demand of the target customer in the target area is -25%, the preset ratio may be 5%, and -25%<5%, indicating that the target customer Test2 does not have a risk of exceeding the traffic usage limit based on 11 IP networks in the target area Guangdong Province.
[0113] In another embodiment, if Figure 4 As shown, the above step S34, according to the data recorded in the CDN node data distribution table, analyzes whether the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area, and also includes:
[0114] Step S41: Calculate whether a second ratio between the real-time traffic and the traffic energy value of the target customer in the target area based on each group of IP networks is less than a preset value.
[0115] For example: The real-time traffic of target customer Test2 in the target area Guangdong Province based on 13 groups of IP networks is 4G, the traffic capacity value of CDN node data distributed in each group of IP networks is 20G, 4 / 20=0.2, and the preset value is 0.5.
[0116] Step S42: When the second ratio is less than a preset value, the target customer is at risk of exceeding the traffic usage limit based on each group of IP networks in the target area.
[0117] After calculation in the above step S41, it is known that the second ratio is 0.2, the preset value is 0.5, and 0.2<0.5, indicating that the target customer Test2 has a risk of exceeding the traffic usage limit based on 13 groups of IP networks in the target area Guangdong Province.
[0118] On the contrary, when the ratio is greater than or equal to the preset value, there is no risk of excessive traffic usage for target customers in the target area based on each group of IP networks, that is, the current CDN node data traffic distribution is in a safe state.
[0119] In another embodiment, if Figure 5 As shown, the above step S14, according to the data recorded in the CDN node data distribution table, analyzes whether the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area, and also includes:
[0120] Step S51: Check in real time whether there is a negative number in each data recorded in the CDN node data distribution table;
[0121] Step S52: If there is a negative number, the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area.
[0122] For example: the data recorded in the above Table 4 is detected in real time to confirm whether there is a negative number. If there is a negative number, it means that the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area.
[0123] On the contrary, when the data recorded in the CDN node data distribution table is non-negative, the target customer does not have the risk of exceeding the traffic usage limit based on each group of IP networks in the target area, that is, the current CDN node data traffic distribution is in a safe state.
[0124] Therefore, through the different analysis methods of the above step S14, the data resource operation status of the CDN node can be known in real time and the abnormal CDN data can be accurately located, so as to quickly capture the root cause of the abnormal CDN data.
[0125] In a specific implementation manner, the CDN node data resource analysis method in the embodiment of the present invention is as follows: Figure 6 As shown, it also includes:
[0126] Step S15: When the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area, an early warning prompt is issued.
[0127] By providing early warnings to target customers of the risk of exceeding traffic usage limits based on each group of IP networks in the target area, it is helpful to promptly inform the outside world to quickly adjust CDN data resources in order to shorten the risk handling time. In addition, based on problems that arise when distributing data resources based on CDN nodes, global resources can be quickly adjusted and controlled in a targeted manner.
[0128] Therefore, the CDN node data resource analysis method in the embodiment of the present invention can obtain the data resource operation status of the CDN node in real time and accurately locate the abnormal CDN data by executing the above steps S11-S15, quickly capture the root cause of the abnormal CDN data, and based on the problems that occur when the CDN node distributes data resources, quickly adjust and control the global resources in a targeted manner. There is no need to manually inspect the data of each CDN node, which improves the efficiency of analyzing CDN node data and processing CDN node abnormal data, and ultimately can meet the customer's demand for the use of CDN node data.
[0129] Based on the same concept, an embodiment of the present invention also provides a CDN node data resource analysis device, such as Figure 7 As shown, it includes the following modules:
[0130] Traffic acquisition module 71, used to obtain the traffic capacity value of CDN node data distributed in each group of IP networks and the estimated demand traffic of target customers in the target area;
[0131] Traffic collection module 72, used to collect the real-time traffic of target customers in the target area based on each group of IP networks and the peak traffic within a preset time;
[0132] The traffic table generating module 73 is used to calculate the expected redundant traffic, actual redundant traffic and peak redundant traffic of the target customer in the target area based on each group of IP networks according to the traffic capacity value, the expected demand traffic, real-time traffic and peak traffic of the target customer in the target area, and generate a CDN data distribution table of the target customer in the target area;
[0133] The risk analysis module 74 is used to analyze whether the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area according to the data recorded in the CDN data distribution table.
[0134] In one embodiment, the peak flow within the preset time includes: a first peak flow corresponding to a first time and a second peak flow corresponding to a second time, and the time of the first time adjacent to the current moment is less than the time of the second time adjacent to the current moment.
[0135] In one embodiment, based on the traffic capacity value, the target customer's expected demand traffic, real-time traffic and peak traffic in the target area, the target customer's expected redundant traffic, actual redundant traffic and peak redundant traffic based on each group of IP networks in the target area are calculated, respectively, by the above formulas (1)-(3).
[0136] In one embodiment, the flow table generating module 73 includes:
[0137] The traffic table generation submodule is used to generate a CDN data distribution table based on the traffic capacity values of CDN nodes distributed in each group of IP networks, the real-time traffic of target customers in the target area based on each group of IP networks, and the peak traffic within a preset time according to the target customers and the coverage number of target customers based on each group of IP networks and the name of the target area.
[0138] In one embodiment, the risk analysis module 74 includes:
[0139] A first calculation submodule, used for calculating a first difference between the actual redundant traffic of the target customer in the target area based on each group of IP networks and the estimated redundant traffic of the target customer in the target area based on each group of IP networks;
[0140] A second calculation submodule is used to calculate a first ratio of the first difference to the estimated demand flow of the target customer in the target area;
[0141] The first risk determination submodule is used to determine that when the first ratio is a positive number, the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area.
[0142] In another embodiment, the risk analysis module 74 further includes:
[0143] The traffic selection submodule is used to select the maximum traffic value between the real-time traffic of each group of IP networks and the peak traffic within a preset time of the target customer in the target area;
[0144] A third calculation submodule is used to calculate a second difference between the maximum flow value and the estimated demand flow of the target customer in the target area;
[0145] A fourth calculation submodule is used to calculate the percentage between the second difference and the estimated demand flow of the target customer in the target area;
[0146] The second risk determination submodule is used to determine that when the percentage exceeds a preset ratio, the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area.
[0147] In another embodiment, the risk analysis module 74 further includes:
[0148] A fifth calculation submodule, used to calculate whether a second ratio between the real-time traffic and the traffic energy value of the target customer based on each group of IP networks in the target area is less than a preset value;
[0149] The third determination submodule is used to determine that when the second ratio is less than a preset value, the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area.
[0150] In another embodiment, the risk analysis module 74 further includes:
[0151] The data checking submodule is used to check in real time whether there are negative numbers in the data recorded in the CDN node data distribution table;
[0152] The fourth risk determination submodule is used to determine that if there is a negative number, the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area.
[0153] In another specific implementation manner, the CDN node data resource analysis device in the embodiment of the present invention further includes:
[0154] The early warning module 75 issues an early warning when the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area.
[0155] Based on the same concept, an embodiment of the present invention further provides a computer device, such as Figure 8 As shown, the electronic device may include a processor 81 and a memory 82, wherein the processor 81 and the memory 82 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.
[0156] The processor 81 may be a central processing unit (CPU). The processor 81 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0157] The memory 82 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules. The processor 81 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 82, that is, the analysis method of CDN node data resources in the above embodiment is implemented.
[0158] The memory 82 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created by the processor 81, etc. In addition, the memory 82 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 82 may optionally include a memory remotely arranged relative to the processor 81, and these remote memories may be connected to the processor 81 via a network. Examples of the above-mentioned network include, but are not limited to, a power grid, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0159] The one or more modules are stored in the memory 82, and when executed by the processor 81, the method for analyzing CDN node data resources in the embodiment shown in the accompanying drawings is performed.
[0160] The specific details of the above electronic device can be understood by referring to the corresponding related descriptions and effects in the embodiments shown in the accompanying drawings, and will not be repeated here.
[0161] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0162] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.
Claims
1. A method for analyzing CDN node data resources, characterized in that: The steps include: Obtain the traffic capacity values of CDN node data distributed in each group of IP networks and the estimated traffic demand of target customers in the target area; Collecting the real-time traffic of target customers in the target area based on each group of IP networks and the peak traffic within a preset time; Calculate the expected redundant traffic, actual redundant traffic and peak redundant traffic of the target customer in the target area based on each group of IP networks according to the traffic capacity value, the expected demand traffic of the target customer in the target area, the real-time traffic and the peak traffic, and generate a CDN data distribution table of the target customer in the target area; According to the coverage quantity, expected demand traffic, expected distribution traffic, real-time coverage traffic, real-time traffic, peak traffic within a preset time, traffic capacity value, expected redundant traffic, peak redundant traffic, and yesterday's peak redundant traffic of the target customer in the target area based on each group of IP networks recorded in the CDN data distribution table, analyze whether the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area; According to the traffic capacity value, the expected demand traffic of the target customer in the target area, the real-time traffic and the peak traffic, the expected redundant traffic, the actual redundant traffic and the peak redundant traffic of the target customer in the target area based on each group of IP networks are calculated by the following formula: Y apij = a -[T pi / m pi +T pj / n pj ]; Among them, Y apij is the estimated redundant traffic of target customers i and j in target area p based on group a of IP networks, Z a is the traffic capacity value of CDN nodes distributed in group a of IP networks, T pi is the expected demand flow of target customer i in target area p, m pi is the number of customers covered by target customer i in target area p based on group a IP network, T pj is the expected demand flow of target customer j in target area p, n pj The coverage quantity of target customer j in target area p based on group a IP network; S apij = a -[W pi / m pi +W pj / n pj ]; Among them, S apij is the actual redundant traffic of target customers i and j in target area p based on group a of IP networks, Z a is the traffic capacity value of CDN nodes distributed in group a of IP networks, W pi is the real-time traffic of target customer i in target area p, m pi is the number of customers covered by target customer i in target area p based on group a IP network, W pj is the real-time traffic of target customer j in target area p, n pj The coverage quantity of target customer j in target area p based on group a IP network; F apij = a -[E pi / m pi +E pj / n pj ]; Among them, F apij is the peak redundant traffic of target customers i and j in target area p based on group a of IP networks, Z a is the traffic capacity value of CDN nodes distributed in group a of IP networks, E pi is the second peak flow of target customer i in target area p during the second time, m pi is the number of customers covered by target customer i in target area p based on group a IP network, E pj is the second peak flow of target customer j in target area p in the second time, n pj The coverage quantity of target customer j in target area p based on group a IP network; Said a is a positive integer.
2. The method for analyzing CDN node data resources according to claim 1, characterized in that: The peak flow within the preset time includes: a first peak flow corresponding to a first time and a second peak flow corresponding to a second time, and the time of the first time adjacent to the current moment is shorter than the time of the second time adjacent to the current moment.
3. The method for analyzing CDN node data resources according to claim 1, characterized in that: According to the data recorded in the CDN node data distribution table, analyzing whether the target customer has a risk of exceeding the traffic usage limit based on each group of IP networks in the target area, including: Calculating a first difference between actual redundant traffic of the target customer in the target area based on each group of IP networks and estimated redundant traffic of the target customer in the target area based on each group of IP networks; Calculating a first ratio of the first difference to the estimated demand flow of the target customer in the target area; When the first ratio is a positive number, the target customer is at risk of exceeding the traffic usage limit based on the groups of IP networks in the target area.
4. The method for analyzing CDN node data resources according to claim 1, characterized in that: Analyzing whether there is a risk of excessive traffic usage of target customers based on each group of IP networks in the target area according to each data recorded in the CDN node data distribution table, further comprising: Selecting a maximum flow value between the real-time flow of the target customer in the target area based on each group of IP networks and the peak flow within the preset time; Calculating a second difference between the maximum flow value and the estimated demand flow of the target customer in the target area; Calculating a percentage between the second difference and the estimated demand flow of the target customer in the target area; When the percentage exceeds a preset ratio, the target customer is at risk of exceeding the traffic usage limit based on the groups of IP networks in the target area.
5. The method for analyzing CDN node data resources according to claim 1, characterized in that: Analyzing whether there is a risk of excessive traffic usage of target customers based on each group of IP networks in the target area according to each data recorded in the CDN node data distribution table, further comprising: Calculate whether a second ratio between the real-time traffic of the target customer based on each group of IP networks in the target area and the traffic energy value is less than a preset value; When the second ratio is less than a preset value, the target customer is at risk of exceeding the traffic usage limit based on the groups of IP networks in the target area.
6. The method for analyzing CDN node data resources according to claim 1, characterized in that: Analyzing whether there is a risk of excessive traffic usage of target customers based on each group of IP networks in the target area according to each data recorded in the CDN node data distribution table, further comprising: Check in real time whether there are negative numbers in each data recorded in the CDN node data distribution table; If there is a negative number, the target customer is at risk of exceeding the traffic usage limit based on the various groups of IP networks in the target area.
7. The method for analyzing CDN node data resources according to any one of claims 1 to 6, characterized in that: Also includes: When the target customer is at risk of exceeding the traffic usage limit based on the IP networks of each group in the target area, an early warning prompt is issued.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the CDN node data resource analysis method according to any one of claims 1 to 6.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for analyzing CDN node data resources according to any one of claims 1 to 6 by executing the computer instructions.
