Virtual network control system and virtual network control method
The virtual network control system addresses resource allocation delays in autoscaling by using predictive controls to adjust resources based on historical patterns, ensuring timely allocation and maintaining service usability.
Patent Information
- Application Number
- JP2023038272
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-13
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Conventional autoscaling methods fail to allocate sufficient resources in a timely manner, leading to temporary service delays and deteriorated usability in virtual networks.
A virtual network control system that includes a scaling unit, monitoring unit, vector generation, and predictive control to dynamically adjust resource allocation based on historical usage patterns and correlations, anticipating resource needs before they arise.
This system prevents service delays by proactively increasing resources when demand is anticipated, maintaining high usability and improving operating efficiency by reducing unnecessary scaling.
Smart Images

Figure 2024129217000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a system and method for controlling a virtual network. [Background technology]
[0002] In recent years, many telecommunications carriers have introduced NFV (Network Function Virtualization). NFV is a technology that realizes virtualization of network functions by software on a server computer. Telecommunications carriers, integrators, and vendors providing related products aim to provide advanced maintenance services and / or reduce operating expenses (OPEX) by using NFV. For example, auto-scaling has been proposed, which changes the amount of resources allocated to network functions according to fluctuations in demand for services. A method has also been proposed for appropriately controlling the amount of resource allocation, such as the number of virtual machines / containers, by auto-scaling (for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-123848 A Summary of the Invention [Problem to be solved by the invention]
[0004] In conventional autoscaling, for example, resources are added when the utilization rate of resources such as CPU or memory exceeds a predetermined threshold. However, with this method, sufficient resources are not allocated to meet demand during the period until the new resources are appropriately configured. This can temporarily delay access to the service and reduce usability.
[0005] An object of one aspect of the present invention is to avoid or suppress degradation in the usability of a service that provides a virtual network. [Means for solving the problem]
[0006] A virtual network control system according to one embodiment of the present invention comprises a scaling unit that controls an amount of resources allocated to a virtual network constructed on a virtual environment provided by a computer; a monitoring unit that instructs the scaling unit to increase the resources allocated to the virtual network when a utilization rate of the resources allocated to the virtual network exceeds a first threshold; a vector generation unit that generates a state vector representing a state of the virtual network from state information collected in the virtual network; a first storage unit that stores the state vector in association with the time when the state information was collected; an extraction unit that extracts from the state vectors stored in the first storage unit a reference vector that corresponds to a predictive time that represents a time that is a predetermined time back from a utilization rate exceedance time that represents the time when the utilization rate of the resources exceeded the first threshold; a second storage unit that stores the reference vector extracted by the extraction unit; and a prediction control unit that calculates a correlation between the state vector representing the current state of the virtual network and the reference vector stored in the second storage unit, and instructs the scaling unit to increase the resources allocated to the virtual network when the correlation is higher than a second threshold. Effect of the Invention
[0007] According to the above-described aspect, it is possible to avoid or suppress a decrease in the usability of a service that provides a virtual network. [Brief description of the drawings]
[0008] [Figure 1] 1 is a diagram illustrating an example of a virtual network control system according to an embodiment of the present invention. [Diagram 2] 13 is a flowchart illustrating an example of a process of a performance monitoring unit. [Diagram 3] 13 is a flowchart illustrating an example of a process of a vector generating unit. [Figure 4] FIG. 13 illustrates an example of a state vector storage unit; [Diagram 5] 13 is a flowchart illustrating an example of a process of a predecessor event extraction unit. [Figure 6] FIG. 13 is a diagram showing an example of a correlation profile created by a precedent event extraction unit. [Figure 7] FIG. 13 illustrates an example of a state vector storage unit; [Figure 8] FIG. 13 is a diagram illustrating an example of a case in which a reference vector is not generated. [Figure 9] 13 is a flowchart illustrating an example of a process of a prediction control unit. [Figure 10] FIG. 13 is a diagram illustrating an example of correlation calculation by a prediction control unit. [Figure 11] FIG. 13 is a diagram showing an example of a variation of an embodiment of the present invention. [Figure 12] FIG. 13 is a diagram illustrating an example of a method for determining a representative reference vector using K-means clustering. [Figure 13] FIG. 13 is a diagram showing an example of another variation of the embodiment of the present invention. [Figure 14] FIG. 2 is a diagram illustrating an example of a hardware configuration of a virtual network control system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] An embodiment of the present invention relates to a virtual network control system that controls the amount of resources allocated to a virtual network. The virtual network control system performs scaling to dynamically control the amount of resources allocated to a virtual network or a virtual network function (VNF) as needed. Scaling includes scaling out or scaling up to increase resources allocated to a virtual network, and scaling in or scaling down to reduce resources allocated to a virtual network.
[0010] In the autoscaling that automatically performs the above-mentioned scaling, resources are added when the utilization rate of resources such as CPU or memory exceeds a predetermined threshold. However, with this method, sufficient resources are not allocated to meet demand during the period until the new resources are appropriately set. This may temporarily delay access to the service, reducing usability.
[0011] In addition, in cases where the time periods when the load increases or decreases can be predicted, time-limited scaling, which sets the amount of resources in advance, is effective. For example, there may be cases where demand increases between 9:00 and 10:00 a.m., or where demand decreases on weekends. However, this method makes it difficult to respond to unexpected changes in demand.
[0012] Therefore, the virtual network control system according to the embodiment of the present invention predicts a situation in which it is preferable to increase resources based on past cases. Then, based on the prediction, the virtual network control system increases resources allocated to the virtual network before the load actually increases. This makes it possible to avoid delays in accessing services, thereby improving usability.
[0013] 1 shows an example of a virtual network control system according to an embodiment of the present invention. The virtual network control system 1 according to the embodiment of the present invention performs scaling to dynamically control resources allocated to a virtual network (or a virtual network function) built in a virtual environment 500.
[0014] The virtual environment 500 is provided by one or more computers. In this embodiment, the virtual environment 500 is provided by a plurality of physical machines PM1 to PMm. Each of the physical machines PM1 to PMm includes one or more CPUs and one or more memory devices. The virtual environment 500 can provide a plurality of virtual machines VM1 to VMn via a virtual infrastructure. A user (e.g., a telecommunications carrier) can provide a communication service by running an application using one or more virtual machines. The application is, for example, a base station of a wireless communication system. In this case, a virtual wireless communication network is constructed in the virtual environment 500.
[0015] The virtual network control system 1 includes a performance monitoring unit 11, a scaling control unit 12, a vector generation unit 13, a state vector storage unit 14, a preceding event extraction unit 15, a reference vector storage unit 16, and a prediction control unit 17. The virtual network control system 1 may further include other functions not shown in FIG.
[0016] The virtual network control system 1 can collect information related to the state of the virtual environment 500 or the virtual network constructed using the virtual environment 500 by using the information collection function 21. The information collection function 21 is a software program that collects information related to the state of the virtual environment 500 or the virtual network, and in this embodiment, is realized by executing it on a virtual machine. The information collection function 21 can detect the usage rate of resources (e.g., CPU and memory) allocated to the virtual network. The information collection function 21 can also obtain log information, process information, and sensor information of the virtual network. The log information describes the state and operation of the virtual network. The process information represents a process executed in the virtual network. The sensor information represents a value detected by a sensor (e.g., a temperature sensor) implemented in a computer that provides the virtual environment 500. The information collection function 21 may be a part of the virtual network control system 1 or may be a part of the virtual environment 500.
[0017] The performance monitoring unit 11 judges at a predetermined time interval whether the utilization rate of resources allocated to a virtual network exceeds a predetermined utilization rate threshold. The utilization rate of resources is detected by the information collecting function 21 described above. When the utilization rate of resources exceeds the utilization rate threshold, the performance monitoring unit 11 instructs the scaling control unit 12 to increase the resources allocated to the virtual network. At this time, the performance monitoring unit 11 instructs the antecedent event extraction unit 15 described later to extract the antecedent event.
[0018] 2 is a flowchart showing an example of the processing of the performance monitoring unit 11. The processing of this flowchart is executed at a predetermined time interval. The predetermined time interval is not particularly limited, but may be, for example, from several seconds to about one minute.
[0019] In S1, the performance monitoring unit 11 acquires information indicating the utilization rate of resources allocated to the virtual network, using the information collection function 21. Specifically, the performance monitoring unit 11 acquires information indicating the utilization rate of the CPU allocated to the virtual network and the utilization rate of the memory allocated to the virtual network.
[0020] In S2, the performance monitoring unit 11 judges whether the utilization rate of at least one of the CPU and the memory exceeds the corresponding utilization rate threshold. The utilization rate threshold is not particularly limited, but is, for example, 80 percent for each. If the utilization rates of both the CPU and the memory are equal to or lower than the corresponding utilization rate threshold, the processing of the performance monitoring unit 11 ends.
[0021] When the utilization rate of at least one of the CPU or the memory exceeds the corresponding utilization rate threshold, in S3, the performance monitoring unit 11 determines that the load on the virtual network has increased and the resource is insufficient. In this case, the performance monitoring unit 11 instructs the scaling control unit 12 to increase the resources to be allocated to the virtual network. At this time, in the case where the utilization rate of the CPU exceeds the utilization rate threshold, the performance monitoring unit 11 may instruct the number of CPUs to be allocated to the virtual network to be increased. In addition, in the case where the utilization rate of the memory exceeds the utilization rate threshold, the performance monitoring unit 11 may instruct the capacity of the memory to be allocated to the virtual network to be increased. Furthermore, in S4, the performance monitoring unit 11 instructs the antecedent event extraction unit 15 to extract. Here, it is preferable that the extraction instruction includes information indicating the time when the utilization rate of the resource allocated to the virtual network exceeded the utilization rate threshold. The operation of the antecedent event extraction unit 15 will be described later.
[0022] Although not shown, when the usage rate of resources allocated to a virtual network falls below a predetermined lower threshold (for example, 20 percent), the performance monitor 11 instructs the scaling control unit 12 to reduce the resources allocated to the virtual network. However, at this time, the performance monitor 11 does not need to instruct extraction.
[0023] The scaling control unit 12 executes scaling control in response to an instruction given from the performance monitoring unit 11 or the prediction control unit 17 described later. Specifically, when an instruction to increase resources to be allocated to a virtual network is received, the scaling control unit 12 increases the resources to be allocated to the virtual network. At this time, the scaling control unit 12 executes scaling-out to increase the number of CPUs and / or memory capacity to be allocated to the virtual network. Also, when an instruction to reduce resources to be allocated to a virtual network is received, the scaling control unit 12 reduces the resources to be allocated to the virtual network. At this time, the scaling control unit 12 executes scaling-in to reduce the number of CPUs and / or memory capacity to be allocated to the virtual network.
[0024] The vector generation unit 13 generates a state vector representing the state of the virtual network from state information collected by the information collection function 21 at a predetermined time interval. At this time, the vector generation unit 13 adds a timestamp to the generated state vector. The timestamp is an example of time information representing the time when the state information was collected. Then, the state vector with the timestamp added is stored in the state vector storage unit 14. That is, the state vector with the timestamp is stored in the state vector storage unit 14. Here, the vector generation unit 13 generates a state vector at a predetermined time interval. Therefore, the state vector with the timestamp is accumulated in the state vector storage unit 14.
[0025] In this embodiment, the state vector V is composed of n vector elements v1 to vn. The value of each vector element is generated based on the log information, the process information, and the sensor information. The vector element based on the log information is a character string that appears in the log information. In this case, one word is used as one vector element. For example, the character strings "error", "switch", and "return" that appear in the log information are each used as one vector element. That is, the vector element is defined based on the contents of the log information. In addition, the value of the vector element represents the number detected within a predetermined period. For example, when five "errors" are detected from the log information within a predetermined period, the value of this vector element is "5".
[0026] The vector elements based on process information are substantially the same as the vector elements based on log information. That is, the vector elements based on process information are one or more character strings appearing in the process information, and the value thereof represents the number of corresponding character strings detected from the process information within a predetermined period. The vector elements based on sensor information correspond to one or more sensors implemented in the computer providing the virtual environment 500. For example, when the virtual environment 500 includes a temperature sensor, the value of the vector element represents the temperature detected by the temperature sensor.
[0027] The elements of the state vector are not limited to the log information, the process information, and the sensor information. In other words, any information related to the state of the virtual network constructed using the virtual environment 500 can be used as the elements of the state vector. In addition, the usage rate of the CPU and memory allocated to the virtual network may be used as the elements of the state vector.
[0028] An example of a definition of a state vector is as follows: V={error, switch, return, ..., temperature} An example of a state vector generated at a certain sampling time is as follows: V={2, 0, 1, ..., 25.3} This state vector indicates that two "errors" and one "return" were detected in the log information during the sampling period from the previous sampling time to the current sampling time, and no "switch" was detected. It also indicates that the temperature at the current sampling time was 25.3°C.
[0029] FIG. 3 is a flowchart showing an example of the processing of the vector generating unit 13. The processing of this flowchart is executed at a sampling time. The sampling time is set at a predetermined time interval. That is, the processing of this flowchart is executed repeatedly at a predetermined time interval. The predetermined time interval is not particularly limited, but may be, for example, from several seconds to about one minute. The period between the previous sampling time and the current sampling time may be called the "sampling period."
[0030] In S11, the vector generation unit 13 acquires state information collected by the information collection function 21. As described above, the state information includes log information, process information, and sensor information. At this time, the vector generation unit 13 acquires the log information and process information from the previous sampling time to the current sampling time, and the sensor information at the current sampling time.
[0031] In S12, the vector generation unit 13 counts character strings appearing in the log information and process information within a sampling period. When an unknown character string is detected when acquiring the log information and process information, the vector generation unit 13 can autonomously collect information by adding the new character string as an element of the state vector. In S13, the vector generation unit 13 acquires a sensor value at the sampling time. In the above example, the "temperature" detected by the temperature sensor is acquired.
[0032] In S14, the vector generation unit 13 generates a state vector in which the numerical values acquired in S12 to S13 are the values of the vector elements. In S15, the vector generation unit 13 adds a timestamp to the generated state vector. The timestamp indicates the current sampling time. In the following description, the state vector to which the timestamp is added may be referred to as a "time-stamped state vector". Then, in S16, the vector generation unit 13 stores the time-stamped state vector in the state vector storage unit 14.
[0033] 3 is repeatedly executed at a predetermined time interval, and thus the state vector storage unit 14 accumulates state vectors with time stamps.
[0034] 4 shows an example of the state vector storage unit 14. In this embodiment, state vectors are generated by the vector generation unit 13 at one-minute intervals and stored in the state vector storage unit 14. A time stamp is added to each state vector.
[0035] In the above embodiment, the character strings to be searched in the log information and the process information are not predetermined, but the embodiment of the present invention is not limited to this method. For example, the character strings to be counted by the vector generating unit 13 (i.e., vector elements) may include character strings designated in advance by the network administrator. In this case, information on the state vectors for the character strings of interest to the network administrator can be collected and used to calculate the correlation value described later.
[0036] In addition, when calculating the correlation between state vectors in the antecedent event extraction unit 15 and the prediction control unit 17 described later, it is preferable that the vector elements of the two vectors match each other. Therefore, when a new vector element is added to a state vector, the value of the added vector element may be set to "zero" in each state vector stored in the state vector storage unit 14.
[0037] The antecedent event extraction unit 15 identifies a precursor time that indicates a time that goes back a predetermined time from the time when the utilization rate of the resources allocated to the virtual network exceeded the utilization rate threshold. Then, the antecedent event extraction unit 15 extracts a state vector associated with the identified precursor time from among the state vectors stored in the state vector storage unit 14. In the following description, the state vector associated with the precursor time may be referred to as a "reference vector."
[0038] 5 is a flowchart showing an example of the process of the antecedent event extraction unit 15. It is assumed that the state vector storage unit 14 stores state vectors up to the current time.
[0039] In S21, the antecedent event extraction unit 15 waits for an extraction instruction generated by the performance monitoring unit 11. As described above, the performance monitoring unit 11 provides an extraction instruction to the antecedent event extraction unit 15 when the utilization rate of the resources allocated to the virtual network exceeds the utilization rate threshold. At this time, the extraction instruction includes information indicating the time when the utilization rate of the resources allocated to the virtual network exceeds the utilization rate threshold. In the following description, the time when the utilization rate of the resources allocated to the virtual network exceeds the utilization rate threshold may be referred to as the "utilization rate exceedance time." The utilization rate exceedance time is not particularly limited, but may be acquired by the performance monitoring unit 11, for example.
[0040] When the extraction instruction is received, the process of the antecedent event extraction unit 15 proceeds to S22. In S22, the antecedent event extraction unit 15 sets a monitoring period. In S23, the antecedent event extraction unit 15 creates a correlation profile by calculating the correlation between the state vector at the utilization rate exceeding time and each state vector within the monitoring period. Here, as described above, the state vectors are generated by the vector generation unit 13 at a predetermined time interval and stored in the state vector storage unit 14. The correlation between two vectors (V1, V2) is obtained by calculating the absolute value of cos(V1-V2). Note that the closer the calculation result is to "1", the higher the correlation state, and the closer the calculation result is to "zero", the lower the correlation state.
[0041] FIG. 6 shows an example of a correlation profile created by the antecedent event extraction unit 15. The monitoring period is set based on the utilization rate exceedance time T0. Specifically, the monitoring period is from time T1 to time T2 as shown in FIG. 6. T1 represents a time that is a time ΔT1 back from the utilization rate exceedance time T0, and T2 represents a time that is a time ΔT2 back from the utilization rate exceedance time T0. ΔT2 is not particularly limited, but is set to about half the time required for the scaling process in the virtual environment 500, for example. In this case, for example, when the time required for the scaling process in the virtual environment 500 is one minute, ΔT2 is set to about 30 seconds. ΔT1 is not particularly limited, but is set to several minutes to several tens of minutes.
[0042] The correlation profile is created by calculating the correlation between the state vector at the utilization rate excess time and each state vector within the monitoring period, and plotting each correlation value against the time axis. Therefore, for example, in a case where the monitoring period is 10 minutes and the state vector is generated by the vector generating unit 13 at 10 second intervals, 60 correlation values are plotted against the time axis. In this embodiment, the correlation value increases within the monitoring period. Note that there is no need to calculate correlation values outside the monitoring period (i.e., before time T1 and after time T2).
[0043] In S24, the antecedent event extraction unit 15 judges whether or not the correlation value exceeds the correlation threshold within the monitoring period. That is, it judges whether or not the correlation value increases within the monitoring period and the correlation profile crosses the threshold line. The correlation threshold is determined so that it can be judged whether or not the two states represented by the two state vectors are similar to each other.
[0044] When the correlation value exceeds the correlation threshold within the monitoring period, in S25, the antecedent event extraction unit 15 identifies the time when the correlation value exceeds the correlation threshold. Here, the state vector at the utilization rate exceeding time represents the state of the virtual network at the time when the utilization rate of the resources allocated to the virtual network exceeds the utilization rate threshold. Therefore, when the correlation value increases within the monitoring period, it represents a situation in which the utilization rate of the resources allocated to the virtual network increases. The timing at which the correlation value increases and exceeds the correlation threshold is considered to be the time at which a sign appears that the resources allocated to the virtual network will be insufficient. In the following description, the timing at which the correlation value increases and exceeds the correlation threshold within the monitoring period may be referred to as the "sign time."
[0045] In S26, the antecedent event extraction unit 15 extracts a state vector corresponding to the precursor time from among the state vectors stored in the state vector storage unit 14, and stores the extracted state vector as a reference vector in the reference vector storage unit 16. The state vector corresponding to the precursor time represents the state of the virtual network at the precursor time. In other words, the reference vector represents the state of the virtual network at the time when a precursor appears that resources allocated to the virtual network will be insufficient.
[0046] Here, the process of the flowchart shown in Fig. 5 is executed every time the usage rate of the resources allocated to the virtual network exceeds the usage rate threshold. Therefore, the reference vector is accumulated in the reference vector storage unit 16. An example of the reference vector storage unit 16 is shown in Fig. 7.
[0047] In addition, in S24 shown in FIG. 5, when the correlation value does not exceed the correlation threshold within the monitoring period, the processing of the antecedent event extraction unit 15 ends. For example, in the case shown in FIG. 8(a), the correlation value continues to be higher than the correlation threshold within the monitoring period. That is, the state of the virtual network does not change much within a predetermined period before the utilization rate of the resource allocated to the virtual network exceeds the utilization rate threshold. In this case, it is difficult to identify a state corresponding to a sign of a situation in which the utilization rate of the resource exceeds the utilization rate threshold. Also, in the case shown in FIG. 8(b), after the monitoring period ends, the correlation value rises sharply and exceeds the correlation threshold. In this case, it is considered that the utilization rate of the resource has risen sharply within a very short time (for example, a time shorter than the time required for the scaling process in the virtual environment 500). In this case, even if the scaling process is performed according to an instruction from the prediction control unit 17 described later, the increase in resources does not keep up with the increase in load. Therefore, in these cases, the antecedent event extraction unit 15 does not need to extract a reference vector.
[0048] The prediction control unit 17 calculates the correlation between a state vector representing the current state of the virtual network and each reference vector stored in the reference vector storage unit 16. When the correlation value is greater than a predetermined threshold value, the prediction control unit 17 instructs the scaling control unit 12 to increase resources allocated to the virtual network.
[0049] FIG. 9 is a flowchart showing an example of the processing of the prediction control unit 17. The processing of this flowchart is executed at a predetermined time interval. Alternatively, the processing of this flowchart is executed when a new state vector is generated by the vector generation unit 13 and stored in the state vector storage unit 14. Here, as described above, the vector generation unit 13 generates the latest state vector at a predetermined time interval. Therefore, in this case, the prediction control unit 17 synchronizes with the vector generation unit 13 and executes the processing of the flowchart shown in FIG. 9 at a predetermined time interval. In addition, the prediction control unit 17 executes the processing of the flowchart shown in FIG. 9 for the latest state vector. In the following description, the latest state vector may be referred to as the "state vector at the current time". Note that, before the processing of this flowchart is executed, the state vectors up to the current time are accumulated in the state vector storage unit 14, and one or more reference vectors are stored in the reference vector storage unit 16.
[0050] In S31, the prediction control unit 17 acquires a state vector at the current time. That is, the prediction control unit 17 acquires the state vector most recently stored in the state vector storage unit 14. In S32, the prediction control unit 17 acquires a reference vector. That is, the prediction control unit 17 acquires one or more reference vectors stored in the reference vector storage unit 16.
[0051] In S33, the prediction control unit 17 calculates the correlation between the state vector at the current time and each reference vector. Then, in S34, the prediction control unit 17 determines whether there is a reference vector whose correlation value with the state vector at the current time exceeds a predetermined prediction control determination threshold. The prediction control determination threshold is determined so that it can be determined whether the state represented by the current state vector and the state represented by the reference vector are sufficiently similar to each other.
[0052] For example, in the example shown in Fig. 10, reference vectors RV1 to RV3 are stored in the reference vector storage unit 16. In this case, every time a new state vector (i.e., a state vector at the current time) is acquired, the prediction control unit 17 calculates the correlation between the new state vector and each of the reference vectors RV1 to RV3. In this embodiment, the prediction control determination threshold is "0.7".
[0053] In the case shown in FIG. 10(a), none of the correlation values exceeds the predictive control judgment threshold. In this case, the judgment in S34 is "No", and the processing of the predictive control unit 17 ends. In contrast, in the case shown in FIG. 10(b), the correlation value representing the correlation between the state vector at the current time and the reference vector RV3 exceeds the predictive control judgment threshold. In this case, the judgment in S34 is "Yes", and the processing of the predictive control unit 17 proceeds to S35.
[0054] When a reference vector is found whose correlation value with the state vector at the current time exceeds the prediction control judgment threshold, the prediction control unit 17 judges that the current state of the virtual network is similar to the state of the virtual network when a symptom of resource shortage appeared in the past. That is, the prediction control unit 17 judges that there is a high possibility that the resources allocated to the virtual network will be insufficient in the near future. Therefore, in S35, the prediction control unit 17 instructs the scaling control unit 12 to increase the resources allocated to the virtual network.
[0055] When the scaling control unit 12 receives an instruction to increase from the prediction control unit 17, it increases the resources allocated to the virtual network. At this time, the scaling control unit 12 executes scaling-out to increase the number of CPUs and / or memory capacity allocated to the virtual network.
[0056] In this way, the virtual network control system 1 according to the embodiment of the present invention can predict in advance a situation in which the load on a virtual network will increase, and when a sign of an increase in the load is detected, executes scaling to increase the resources allocated to the virtual network. This makes it possible to complete scaling before a resource shortage occurs, and prevents degradation of responsiveness and operability for end users.
[0057] Even in a configuration in which the usage rate threshold for determining whether or not scaling is required is set low in the performance monitoring unit 11, it is possible to perform scaling before a resource shortage occurs. However, in this case, scaling processing may be performed in cases where there is no need to increase resources, reducing the operating efficiency of the virtual environment 500. In contrast, in the embodiment of the present invention, such unnecessary scaling processing is reduced, improving the operating efficiency of the virtual environment 500.
[0058] Furthermore, in the embodiment of the present invention, a reference vector for detecting a sign of a resource shortage is accumulated every time a resource shortage is detected by the performance monitoring unit 11. Therefore, the accuracy of the prediction function for detecting a sign of a resource shortage autonomously improves over time.
[0059] <Variations> In the virtual network control system 1 shown in FIG. 1, the prediction control unit 17 determines whether or not scaling processing is required by calculating the correlation between the state vector at the current time and each reference vector stored in the reference vector storage unit 16. Here, in order to execute the scaling processing without delay based on the prediction of the resource utilization rate, the prediction control unit 17 is required to perform real-time processing. On the other hand, when the utilization rate of the resource allocated to the virtual network exceeds the utilization rate threshold, a new reference vector is extracted and stored in the reference vector storage unit 16. Therefore, many reference vectors may be stored in the reference vector storage unit 16. If many reference vectors are stored in the reference vector storage unit 16, there is a risk that the process of the prediction control unit 17 determining whether or not scaling processing is required may be delayed. Therefore, in a variation of the embodiment of the present invention, a function is provided that reduces the load on the prediction control unit 17 and facilitates real-time processing.
[0060] Fig. 11 shows an example of a variation of the virtual network control system according to the embodiment of the present invention. The virtual network control system 1B shown in Fig. 11 further includes a selection unit 18 in addition to the virtual network control system 1 shown in Fig. 1. The selection unit 18 limits the number of reference vectors for which correlations with the state vector at the current time are calculated in the prediction control unit 17.
[0061] The selection unit 18 selects, for example, the latest N reference vectors from among the reference vectors stored in the reference vector storage unit 16. In this case, even if a large number of reference vectors are stored in the reference vector storage unit 16, the prediction control unit 17 only needs to calculate the correlation between the state vector at the current time and each of the N reference vectors. The value of N is determined by simulation or the like, for example, based on the required real-time performance and the computing power of the prediction control unit 17.
[0062] Alternatively, the selection unit 18 may determine a predetermined number of representative reference vectors using statistical processing. For example, the selection unit 18 detects a predetermined number of clusters by grouping the reference vectors stored in the reference vector storage unit 16 by K-means clustering. In the embodiment shown in FIG. 12(a), three clusters CL1 to CL3 are detected. In FIG. 12, the reference vectors are represented in two dimensions to make the drawing easier to see. Also, the triangular symbols indicate the states represented by the respective reference vectors. Then, the selection unit 18 determines the representative reference vectors corresponding to each cluster by calculating the center of gravity of the reference vectors for each cluster. In this embodiment, three representative reference vectors represented by star-shaped symbols in FIG. 12(b) are calculated. In this case, the prediction control unit 17 calculates the correlation between the state vector at the current time and each representative reference vector.
[0063] In this way, according to the variation of the embodiment of the present invention, the number of reference vectors for which correlations with the state vector at the current time are calculated in the prediction control unit 17 is limited. Therefore, there is no delay in the prediction control unit 17 determining whether or not scaling processing is required, and resources can be increased before the load on the virtual network increases.
[0064] Fig. 13 shows an example of another variation of the virtual network control system according to the embodiment of the present invention. The virtual network control system 1C shown in Fig. 13 further includes a normalization / weighting unit 19 in addition to the virtual network control system 1 shown in Fig. 1 or the virtual network control system 1B shown in Fig. 11. The normalization / weighting unit 19 performs normalization processing and weighting processing on each vector (i.e., the state vector at the current time and each reference vector) for which correlation calculation is performed in the prediction control unit 17.
[0065] Normalization corresponds to a process of making the length of a vector "1". Here, the correlation value of two normalized vectors is obtained by calculating the inner product of the two vectors. Therefore, if the state vector and each reference vector at the current time are normalized, the load of the prediction control unit 17 can be reduced.
[0066] Weighting corresponds to a process of emphasizing vector elements that are important in determining whether scaling processing is required among the multiple vector elements that make up the state / reference vector. Weighting is realized, for example, by TF-IDF (Term Frequency Inverse Document Frequency). TF-IDF reduces the weight of elements that appear in many data sets and emphasizes elements that appear only in a specific data set.
[0067] 13, normalization / weighting is performed on the state vector at the current time acquired from the state vector storage unit 14 and each reference vector acquired from the reference vector storage unit 16, but the present invention is not limited to this configuration. For example, normalization / weighting may be performed on the state vector generated by the vector generation unit 13 before it is stored in the state vector storage unit 14. Also, it is not necessary to perform both normalization and weighting, and a configuration may be used in which only one of normalization or weighting is performed.
[0068] <Hardware configuration> 14 shows an example of a hardware configuration of the virtual network control system 1 (1B, 1C). The virtual network control system 1 (1B, 1C) is realized by a computer 100 including a processor 101, a memory 102, a storage device 103, an input / output device 104, a recording medium reader 105, and a communication interface 106.
[0069] The processor 101 controls the operation of the virtual network control system 1 (1B, 1C) by executing a virtual network control program stored in the storage device 103. The virtual network control program includes a program code describing the procedures of the flowcharts shown in FIG. 2, FIG. 3, FIG. 5, and FIG. 9. Thus, the processor 101 executes this program to provide the functions of the performance monitoring unit 11, the scaling control unit 12, the vector generation unit 13, the antecedent event extraction unit 15, and the prediction control unit 17 (and the selection unit 18 and the normalization / weighting unit 19) shown in FIG. 1. The memory 102 is used as a working area for the processor 101. The storage device 103 stores the above-mentioned virtual network control program and other programs. The state vector storage unit 14 and the reference vector storage unit 16 are realized by the memory 102 or the storage device 103.
[0070] The input / output device 104 includes input devices such as a keyboard, a mouse, a touch panel, and a microphone. The input / output device 104 also includes output devices such as a display device and a speaker. The recording medium reader 105 can acquire data and information recorded in the recording medium 110. The recording medium 110 is a removable recording medium that can be attached to and detached from the computer 100. The recording medium 110 is realized by, for example, a semiconductor memory, a medium that records signals by optical action, or a medium that records signals by magnetic action. The virtual network control program may be provided to the computer 100 from the recording medium 110. The communication interface 106 provides a function of connecting to a network. When the virtual network control program is stored in the program server 120, the computer 100 may acquire the virtual network control program from the program server 120. [Explanation of symbols]
[0071] 1 Virtual Network Control System 11 Performance Monitoring Department 12 Scaling control section 13 Vector Generation Unit 14 State vector storage unit 15 Preceding Event Extraction Section 16 Reference Vector Storage Unit 17 Predictive control unit 18 Selection section 19 Normalization / Weighting Section 21 Information gathering function 100 Computers 101 Processor 500 Virtual Environments
Claims
1. A scaling unit that controls an amount of resources to be allocated to a virtual network built on the virtual environment; a monitoring unit that instructs the scaling unit to increase resources allocated to the virtual network when a usage rate of resources allocated to the virtual network exceeds a first threshold; a vector generation unit that generates a state vector representing a state of the virtual network from state information collected in the virtual network; a first storage unit that stores the state vector and a time when the state information was collected in association with each other; an extracting unit that extracts, from the state vectors stored in the first storage unit, a reference vector associated with a warning time that indicates a time that is a predetermined time before a usage rate exceeding time that indicates a time when the usage rate of the resource exceeded the first threshold; a second storage unit configured to store the reference vector extracted by the extraction unit; a prediction control unit that calculates a correlation between a state vector representing a current state of the virtual network and a reference vector stored in the second storage unit, and instructs the scaling unit to increase resources allocated to the virtual network when the correlation is higher than a second threshold; A virtual network control system comprising:
2. a vector element of the state vector is a character string extracted from log information or process information generated in the virtual network, The value of each vector element represents the number of times the character string is detected in the log information or the process information within a predetermined period of time.
2. The virtual network control system according to claim 1.
3. When a new character string is detected in the log information or the process information, the vector generation unit adds the new character string as a vector element of the state vector.
3. The virtual network control system according to claim 2.
4. a vector element of the state vector is information related to a sensor implemented in a computer that provides the virtual environment; The value of each vector element represents a value sensed by the sensor.
2. The virtual network control system according to claim 1.
5. The warning time indicates a time when a correlation between a state vector associated with the utilization rate exceeding time and a state vector associated with a time earlier than the utilization rate exceeding time exceeds a third threshold value.
2. The virtual network control system according to claim 1.
6. A selection unit that selects a predetermined number of the most recent reference vectors from among the reference vectors stored in the second storage unit, The prediction control unit calculates a correlation between a state vector representing a current state of the virtual network and each of the reference vectors selected by the selection unit.
2. The virtual network control system according to claim 1.
7. A selection unit that groups the reference vectors stored in the second storage unit into a plurality of clusters and generates a representative reference vector for each cluster by calculating a center of gravity of the reference vectors belonging to each cluster, The prediction control unit calculates a correlation between a state vector representing a current state of the virtual network and each representative reference vector.
2. The virtual network control system according to claim 1.
8. 1. A virtual network control method for increasing an amount of resources allocated to a virtual network constructed on a virtual environment provided by a computer when a usage rate of resources allocated to the virtual network exceeds a first threshold, comprising: generating a state vector representing a state of the virtual network from state information collected in the virtual network; storing the state vector and the time when the state information was collected in a first storage unit in association with each other; extracting, from the state vectors stored in the first storage unit, a reference vector associated with a time that is a predetermined time prior to the time at which the resource usage rate exceeded the first threshold; The extracted reference vector is stored in a second storage unit; A correlation between a state vector representing a current state of the virtual network and a reference vector stored in the second storage unit is calculated, and an amount of resources allocated to the virtual network is increased when the correlation is higher than a second threshold. A virtual network control method comprising:
Citation Information
Patent Citations
Network performance guarantee system and network performance guarantee method
JP2020123848A
