A control cluster fault detection method based on QPSO-MSVM
By applying the QPSO-MSVM method in cluster fault detection, using one-to-many support vector machines and quantum particle swarm optimization algorithms, the problems of low detection accuracy and poor versatility in the existing technology are solved, and a more efficient fault detection effect is achieved. .
Patent Information
- Application Number
- CN202211656625.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-12-22
AI Technical Summary
Existing cluster fault detection methods are susceptible to model uncertainty and historical data quality, have poor versatility, and the optimization algorithm easily falls into local convergence, resulting in low detection accuracy.
A control cluster fault detection method based on QPSO-MSVM is used to construct a multi-category SVM model through a one-to-many support vector machine algorithm, and the quantum particle swarm optimization algorithm is used to optimize the model parameters to reduce the complexity of fault information and improve detection accuracy.
It improves the accuracy and efficiency of cluster fault detection, reduces the complexity of fault information, and enhances the versatility and stability of the detection model.
Smart Images

Figure CN115859207B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of cluster high availability, and in particular to a control cluster fault detection method based on multi-class support vector machines and quantum particle swarm optimization. Background Art
[0002] In recent years, due to the rapid development of computer technology, cluster systems have been widely used in various industries. The number of nodes in cluster systems has continued to increase, and the network architecture has become increasingly complex, making the functions of cluster systems increasingly complex, but at the same time, higher requirements have been placed on the availability of cluster systems. SDN-based control cluster systems have good application prospects in the aerospace field. Its failures are usually caused by hardware failures and software failures. These failures are randomly generated and sometimes difficult to reproduce. It is also difficult for system administrators to manually track their status when the system is running. Therefore, fault detection technology must be used in cluster systems, and fault detection is the premise of fault recovery. Due to the complex structure and dynamic change characteristics of the control cluster system, the detection efficiency and accuracy of the existing fault detection methods need to be improved, and the monitoring system needs to collect a large amount of resource monitoring data from various levels of the network and nodes to track the operating status of the nodes. The fault detector will bring huge resource overhead when analyzing such a large amount of data. Therefore, it is urgent to propose a fault detection method that can better adapt to the cluster system to improve the availability of the cluster system.
[0003] Existing fault detection methods can be roughly divided into three categories: model-based methods, data-based methods, and knowledge-based methods. Typical works include: Shao Jiye of Harbin Institute of Technology proposed a method that embeds Bayesian networks into a model-based diagnosis framework, which belongs to a model-based method; Huo Mingyi of Southeast University proposed a fault detection method based on log analysis, which belongs to a data-based method; and Li Qiaoling of the University of Electronic Science and Technology proposed a variable-weighted joint FDA (FisherDiscriminant Analysis) fault diagnosis algorithm, which belongs to a knowledge-based method. However, the above methods have the following defects: they are easily affected by model uncertainty, rely on the quantity and quality of historical data, and have poor versatility. These defects reduce the accuracy of cluster fault detection.
[0004] In recent years, many scholars have combined different data-based fault detection methods and proposed methods based on the combination of unsupervised and supervised methods. Typical works include: Researchers from the National University of Defense Technology proposed a fault detection technology based on the SVM hybrid voting mechanism. However, due to the complexity and diversity of cluster faults, there are many factors affecting fault detection, which reduces the detection accuracy, and the previous optimization algorithms are prone to local convergence. Therefore, it is necessary to apply multi-classification support vector machines to cluster fault detection, and find an optimization algorithm with good convergence performance to improve fault detection performance, while ensuring fewer model adjustment parameters to improve the versatility of fault detection methods. Summary of the invention
[0005] The purpose of the present invention is to provide a control cluster fault detection method based on QPSO-MSVM in response to the problems existing in the prior art. For the first time, one-to-many support vector machine is applied to control cluster fault detection based on SDN, and quantum particle swarm optimization algorithm is introduced, which reduces the complexity of cluster fault information to a certain extent. By analyzing the cluster fault characteristics and constructing a classifier using one-to-many SVM algorithm, a control cluster fault detection classifier is obtained, which effectively improves the accuracy of control cluster fault detection.
[0006] The technical solution to achieve the purpose of the present invention is: a control cluster fault detection method based on QPSO-MSVM, comprising the following steps:
[0007] Step 1: Analyze the target control cluster system, classify the faults of the target control cluster system according to the diversity and complexity of the software and hardware in the SDN-based control cluster system, as well as the performance factors such as network structure and traffic, and construct a feature vector;
[0008] Step 2: Collect feature vectors in real time according to the classification features of the SDN control cluster failure, and divide the collected feature vectors into training samples and test samples;
[0009] Step 3, using one-to-many support vector machine algorithm, construct a control cluster fault detection model based on improved multi-class SVM;
[0010] Step 4, optimizing the parameters of the control cluster fault detection model of multi-class SVM by quantum particle swarm algorithm;
[0011] Step 5, the training samples in the collected feature vectors are divided into four groups, and four different control cluster fault classifiers are obtained by using a one-to-many SVM classification algorithm to construct a multi-class SVM control cluster fault detection classifier;
[0012] Step 6: Take the test sample as the input sample, perform fault detection through the multi-class SVM control cluster fault detection classifier, and output the control cluster fault detection result.
[0013] Furthermore, in step 1, the fault T of the target control cluster system is divided into four categories: T1 is the control cluster system fault feature vector, T2 is the control cluster program fault feature vector, T3 is the control cluster network fault feature vector, and T4 is the control cluster system host node fault feature vector, which are defined as shown in equations (1)-(4) respectively:
[0014] T1=<SRT,SDT,STP,CRU> (1)
[0015] T2=<PDT,POT,PBT,IOC> (2)
[0016] T3=<NFT,ND,NPL,NCP> (3)
[0017] T4=<CP,MP,DP,IOP> (4)
[0018] Among them, T1 includes system running time SRT, system downtime SDT, system throughput STP, and system resource utilization CRU; T2 includes process deadlock time PDT, process timeout time POT, program crash time PBT, and number of illegal operations IOC; T3 includes network failure time NFT, network delay ND, network packet loss rate NPL, and network coverage rate NCP; T4 includes CPU utilization CP, memory utilization MP, disk utilization DP, and I / O utilization IOP.
[0019] Furthermore, in step 2, when collecting feature vectors in real time, the dynamic values of feature vectors T1, T2, T3, and T4 are calculated by the following formulas respectively. The specific steps are as follows:
[0020] Step 2.1: Count the system running time SRT, count the system downtime SDT, calculate the system throughput STP as shown in formula (5), and calculate the system resource utilization CRU as shown in formula (6).
[0021] STP=An / At (5)
[0022] CRU=Rc / Rn (6)
[0023] Among them, An represents the total number of system requests, At represents the total duration of system requests, Rn represents the total amount of system resources, and Rc represents the real-time resource usage of the system;
[0024] Step 2.2, counting the process deadlock time PDT, counting the process timeout time POT, counting the program crash time PBT, and counting the number of illegal operations IOC;
[0025] Step 2.3, count the network failure time NFT, count the network delay ND, calculate the network packet loss rate NPL as shown in formula (7), and calculate the network coverage rate NCP as shown in formula (8).
[0026] NPL=Pl / Pn (7)
[0027] NCP=Cr / Cn (8)
[0028] Among them, Pn represents the total number of transmitted data packets, Pl represents the number of data packets lost, Cn represents the total number of nodes that can be connected to the network, and Cr represents the number of nodes that can be normally connected to the network;
[0029] Step 2.4, the CPU usage CP is calculated as shown in formula (9), the memory usage MP is calculated as shown in formula (10), the disk usage DP is calculated as shown in formula (11), and the I / O usage IOP is calculated as shown in formula (12):
[0030] CP=1-Ft / Tn (9)
[0031] MP=Mu / Mn (10)
[0032] DP=Du / Dn (11)
[0033] IOP=IOt / IOn (12)
[0034] Among them, Tn represents the total CPU time, Ft represents the idle time, Mn represents the total memory size, Mu represents the used memory, Dn represents the total disk space, Du represents the disk space used when the process is running, IOt represents the number of I / Os in the interval time, and IOn represents the total number of I / Os.
[0035] Furthermore, in step 3, a one-to-many support vector machine algorithm is used to construct a control cluster fault detection model based on an improved multi-class SVM, namely, a control cluster fault detection model of MSVM. The model construction steps are as follows:
[0036] Step 3.1, given N training sets X = {x1, x2, ..., x N}, predict all samples in the training set, and their value is y; if the fault type is divided into M categories, then y∈{1, 2, ..., M}, use F i (x) represents the decision function of the i-th cluster fault detection classifier, and its calculation method is as shown in formula (13):
[0037] F i (x)=(w i )T φ(x)+ρ i (13)
[0038] Among them, w i and ρ i is the hyperplane parameter, φ(x) is the feature vector that maps the low-dimensional linearly inseparable x to a high-dimensional linearly separable one through the Gaussian kernel function;
[0039] Step 3.2, construct a binary SVM to separate the i-th class from the other M-1 classes, that is, solve the quadratic programming problem shown in formula (14):
[0040]
[0041]
[0042]
[0043]
[0044] 0<η i <3
[0045] Where t represents the index of the sample, i∈{1,…,M} means that a total of M binary classification SVMs need to be trained, and η i is the fault detection time of the ith classifier, is a slack variable, v∈(0,1] is a regularization parameter;
[0046] Step 3.3, select the largest class i in the decision function as the detection of x, that is, The decision function for classification is as follows:
[0047]
[0048] Step 3.4, use the radial basis function as the kernel function of the binary SVM, with It means that its function is as follows:
[0049]
[0050] Among them, σ>0 is the bandwidth of the Gaussian kernel function.
[0051] Furthermore, in step 4, the parameters in the control cluster fault detection model of the multi-class SVM are optimized by the quantum particle swarm algorithm. The specific steps are as follows:
[0052] Step 4.1, initialize the positions of the q particles of QPSO {l1, l2, ...l q}, let l p =(v p , σp ), p = 1, 2, ..., q, v p and σ p represents the regularization parameter of the pth particle of MSVM and the width of the Gaussian kernel function, and the fitness function f of the individuals in the population is calculated as shown in formula (17):
[0053] f=1-num i / sum (17) where num i is the number of samples detected as type i faults, and sum is the total number of training samples;
[0054] Step 4.2, update the particle position according to formula (18):
[0055]
[0056] in, is the position of the ith particle after update, is the average optimal position of all particles in the tth iteration, represents the historical optimal position of the ith particle in the previous t iterations, μ is a random number in [0, 1], β t To control the parameters;
[0057] Step 4.3, calculate the fitness of all particles according to formula (17), and update the historical optimal position and global optimal position of the particles according to the fitness value. The calculation method of the historical optimal position of the i-th particle is as shown in formula (19):
[0058]
[0059] Where c is a random number in [0, 1], gb represents the position of the global optimal particle;
[0060] Step 4.4, determine whether the fitness function value is within the allowable error range or the current number of iterations has reached the iteration limit. If the condition is met, stop the iteration and output the optimal parameter combination of MSVM, recorded as v and σ; if not, jump to step 4.2 to continue execution.
[0061] Furthermore, the construction steps of the multi-class SVM control cluster fault detection classifier in step 5 are as follows:
[0062] Step 5.1, by repeatedly collecting fault-related information in the fault information database, four different training sample sets D1, D2, D3, and D4 are formed, and the system fault feature vector set V1, the program fault feature vector set V2, the network fault feature vector set V3, and the system host node fault feature vector set V4 are extracted from the four training sample sets respectively;
[0063] Step 5.2: According to the one-to-many SVM classification algorithm, for each fault type, its samples are regarded as +1 class, and all samples of the remaining classes are regarded as -1 class. Four binary SVM classifiers are constructed respectively to build the MSVM control cluster fault detection classifier C = [C1, C2, C3, C4] T , the construction process of the classifier is shown in the following formula (20):
[0064]
[0065] Among them, C1 is the system node fault classifier, C2 is the program fault classifier, C3 is the network fault classifier, and C4 is the system performance fault classifier.
[0066] Furthermore, the steps of fault detection in step 6 are as follows:
[0067] Step 6.1: Input the test sample data set into the classifier, and represent the system node fault detection results, program fault detection results, network fault detection results, and system performance fault detection results as R k , k∈{1,2,3,4}; then R k The weight of the final fault detection result is recorded as The calculation formula is as follows:
[0068]
[0069] Step 6.2: Input the test sample data set into the classifier in sequence, and calculate the decision output value R of the new input sample data according to formula (13): k , the decision classification is calculated according to formula (22) and the control cluster fault detection result R is obtained.
[0070]
[0071] Compared with the prior art, the present invention has the following significant advantages:
[0072] 1) The present invention classifies cluster faults into multiple categories, reduces the complexity of fault information, and establishes a fault detection model for the cluster system, which is easy to understand.
[0073] 2) A parameter optimization algorithm based on quantum particle swarm is used to find the most appropriate parameter combination for the model, thereby improving the detection capability and efficiency of the fault detection model.
[0074] The present invention is further described in detail below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 It is a flow chart of the control cluster fault detection method based on QPSO-MSVM of the present invention.
[0076] Figure 2 This is a flow chart of the training phase and the detection phase of the present invention.
[0077] Figure 3 This is a structural diagram of the SDN-based control cluster fault detection system of the present invention.
[0078] Figure 4 This is a comparison chart of the fault detection accuracy experiment of the present invention.
[0079] Figure 5 This is a comparison chart of the fault detection time experiment of the present invention. DETAILED DESCRIPTION
[0080] In order to make the purpose, technical solution and advantages of the present application more clear, the present application is further described in detail below in conjunction with the accompanying drawings and experiments. It should be understood that the specific implementation methods described herein are only used to explain the present application and are not used to limit the present application.
[0081] It should be noted that if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0082] In one embodiment, a control cluster fault detection method based on QPSO-MSVM (Quantum-behaved Particle Swarm Optimization-Multi-Class SVM) is provided, comprising the following steps:
[0083] Step 1: According to the diversity of control cluster systems and the complexity of networks, control cluster faults T are divided into four categories: T1 is the control cluster system fault feature vector, T2 is the control cluster program fault feature vector, T3 is the control cluster network fault feature vector, and T4 is the control cluster system host node fault feature vector, which are defined as shown in equations (1)-(4):
[0084] T1=<SRT,SDT,STP,CRU> (twenty three)
[0085] T2=<PDT,POT,PBT,IOC> (twenty four)
[0086] T3=<NFT,ND,NPL,NCP> (25)
[0087] T4=<CP,MP,DP,IOP> (26)
[0088] Among them, T1 includes system running time SRT, system downtime SDT, system throughput STP, and system resource utilization CRU; T2 includes process deadlock time PDT, process timeout time POT, program crash time PBT, and number of illegal operations IOC; T3 includes network failure time NFT, network delay ND, network packet loss rate NPL, and network coverage rate NCP; T4 includes CPU utilization rate CP, memory utilization rate MP, disk utilization rate DP, and I / O utilization rate IOP;
[0089] Step 2, the dynamic values of the feature vectors T1, T2, T3, and T4 are calculated by the following methods respectively. The calculation steps are as follows:
[0090] Step 2.1: Count the system running time SRT, count the system downtime SDT, calculate the system throughput STP method as shown in formula (27), and calculate the system resource utilization CRU method as shown in formula (28).
[0091] STP=An / At (27)
[0092] CRU=Rc / Rn (28)
[0093] Among them, An represents the total number of system requests, At represents the total duration of system requests, Rn represents the total amount of system resources, and Rc represents the real-time resource usage of the system;
[0094] Step 2.2: Count the process deadlock time PDT, the process timeout time POT, the program crash time PBT, and the number of illegal operations IOC;
[0095] Step 2.3: Count the network failure time NFT, count the network delay ND, calculate the network packet loss rate NPL as shown in formula (29), and calculate the network coverage rate NCP as shown in formula (30).
[0096] NPL=Pl / Pn (29)
[0097] NCP=Cr / Cn (30)
[0098] Among them, Pn represents the total number of transmitted data packets, Pl represents the number of data packets lost, Cn represents the total number of nodes that can be connected to the network, and Cr represents the number of nodes that can be normally connected to the network;
[0099] Step 2.4: The CPU usage CP is calculated as shown in formula (31), the memory usage MP is calculated as shown in formula (32), the disk usage DP is calculated as shown in formula (33), and the I / O usage IOP is calculated as shown in formula (34).
[0100] CP=1-Ft / Tn (31)
[0101] MP=Mu / Mn (32)
[0102] DP=Du / Dn (33)
[0103] IOP=IOt / IOn (34)
[0104] Among them, Tn represents the total CPU time, Ft represents the idle time, Mn represents the total memory size, Mu represents the used memory, Dn represents the total disk space, Du represents the disk space used by the process when it is running, IOt represents the number of I / Os in the interval time, and IOn represents the total number of I / Os;
[0105] Step 3: Use one-to-many support vector machine algorithm to build the control cluster fault detection model of MSVM. The model construction steps are as follows:
[0106] Step 3.1: Given N training sets X = {x1, x2, ..., x N}, predict all samples in the training set, and their value is y; if the fault type is divided into M categories, then y∈{1, 2, ..., M}, use F i (x) represents the decision function of the f-th cluster fault detection classifier, and its calculation method is as shown in formula (35):
[0107] F i (x)=(w i ) T φ(x)+ρ i (35)
[0108] Among them, w i and ρ i is the hyperplane parameter, φ(x) will map the low-dimensional linearly inseparable x into a high-dimensional linearly separable feature vector through the Gaussian kernel function;
[0109] Step 3.2: Construct a binary SVM to separate the i-th class from the other M-1 classes, that is, solve the quadratic programming problem shown in equation (36):
[0110]
[0111]
[0112]
[0113]
[0114] 0<η i <3
[0115] Where t represents the index of the sample, i∈{1,...,M} means that a total of M binary classification SVMs need to be trained, and η i is the fault detection time of the ith classifier, is a slack variable, v∈(0,1] is a regularization parameter;
[0116] Step 3.3: Select the largest class i in the decision function as the detection of x, that is, The decision function for classification is as follows:
[0117]
[0118] Step 3.4: Use radial basis function as the kernel function of binary SVM, It is represented by the function as shown in formula (38):
[0119]
[0120] Among them, σ>0 is the bandwidth of the Gaussian kernel function;
[0121] Step 4: The algorithm steps of using quantum particle swarm algorithm to optimize the parameters in the multi-class fault detection model are as follows:
[0122] Step 4.1: Initialize the positions of the q particles of QPSO {l1, l2, ...l q}, let l p =(v p , σ p ), p = 1, 2, ... q, v p and σ p Represents the regularization parameter of the pth particle of MSVM and the width of the Gaussian kernel function. The fitness function f of the individuals in the population can be expressed as formula (39):
[0123] f=1-num i / sum (39)
[0124] Among them, num i is the number of samples detected as type i faults, and sum is the total number of training samples;
[0125] Step 4.2: Update the particle position according to equation (40),
[0126]
[0127] in, is the position of the ith particle after update, is the average optimal position of all particles in the tth iteration, represents the historical optimal position of the ith particle in the previous t iterations, μ is a random number in [0, 1], β t To control the parameters;
[0128] Step 4.3: Calculate the fitness of all particles according to formula (39), and update the historical optimal position and global optimal position of the particle according to the fitness value. The calculation method of the historical optimal position of the i-th particle is as shown in formula (41):
[0129]
[0130] Where c is a random number in [0, 1], gb represents the position of the global optimal particle;
[0131] Step 4.4: Determine whether the fitness function value is within the allowable error range or has reached the iteration limit. If the condition is met, stop the iteration and output the optimal parameter combination of MSVM, recorded as v and σ; if not, jump to step 4.2 to continue execution.
[0132] Step 5: The steps for constructing a multi-class SVM control cluster fault detection classifier are as follows:
[0133] Step 5.1: By repeatedly collecting fault-related information in the fault information database, four different training sample sets D1, D2, D3, and D4 are formed, and the system fault feature vector set V1, the program fault feature vector set V2, the network fault feature vector set V3, and the system host node fault feature vector set V4 are extracted from the four training sample sets respectively;
[0134] Step 5.2: According to the one-to-many SVM classification algorithm, for each fault type, its samples are regarded as +1 class, and all samples of the remaining classes are regarded as -1 class. Four binary SVM classifiers are constructed respectively to build the MSVM control cluster fault detection classifier C = [C1, C2, C3, C4] T , the construction process of the classifier is expressed as follows:
[0135]
[0136] Among them, C1 is the system node fault classifier, C2 is the program fault classifier, C3 is the network fault classifier, and C4 is the system performance fault classifier.
[0137] Step 6: The steps of fault detection are as follows:
[0138] Step 6.1: Input the test sample data set into the classifier, and represent the system node fault detection results, program fault detection results, network fault detection results, and system performance fault detection results as R k , k∈{1,2,3,4}; then R k The weight of the final fault detection result is recorded as The calculation is obtained by formula (43):
[0139]
[0140] Step 6.2: Input the test sample data set into the classifier in sequence, and calculate the decision output value R of the new input sample data according to formula (35): k , the decision classification is calculated according to formula (44) and the control cluster fault detection result R is obtained.
[0141]
[0142] In one embodiment, a control cluster fault detection system based on QPSO-MSVM is provided, the system comprising:
[0143] The first module is used to analyze the target control cluster system, classify the faults of the target control cluster system according to the diversity and complexity of the software and hardware in the SDN-based control cluster system, as well as the performance factors such as network structure and traffic, and construct a feature vector;
[0144] The second module is used to collect feature vectors in real time according to the classification characteristics of SDN control cluster failures, and divide the collected feature vectors into training samples and test samples;
[0145] The third module is used to construct a control cluster fault detection model based on an improved multi-class SVM using a one-to-many support vector machine algorithm;
[0146] The fourth module is used to optimize the parameters in the control cluster fault detection model of multi-class SVM through quantum particle swarm algorithm;
[0147] The fifth module is used to divide the training samples in the collected feature vector into four groups, use a one-to-many SVM classification algorithm to obtain four different control cluster fault classifiers, and build a multi-class SVM control cluster fault detection classifier;
[0148] The sixth module is used to take the test sample as an input sample, perform fault detection through a multi-class SVM control cluster fault detection classifier, and output the control cluster fault detection result.
[0149] For the specific definition of the control cluster fault detection system based on QPSO-MSVM, please refer to the definition of the control cluster fault detection method based on QPSO-MSVM above, which will not be repeated here. Each module in the above-mentioned control cluster fault detection system based on QPSO-MSVM can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0150] like Figure 3 As shown, it is a structural diagram of the SDN-based control cluster fault detection system of the present invention. The control cluster system includes three modules: data information collection, fault information analysis and fault detection.
[0151] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0152] Step 1: Analyze the target control cluster system, classify the faults of the target control cluster system according to the diversity and complexity of the software and hardware in the SDN-based control cluster system, as well as the performance factors such as network structure and traffic, and construct a feature vector;
[0153] Step 2: Collect feature vectors in real time according to the classification features of the SDN control cluster failure, and divide the collected feature vectors into training samples and test samples;
[0154] Step 3, using one-to-many support vector machine algorithm, construct a control cluster fault detection model based on improved multi-class SVM;
[0155] Step 4, optimizing the parameters of the control cluster fault detection model of multi-class SVM by quantum particle swarm algorithm;
[0156] Step 5, the training samples in the collected feature vectors are divided into four groups, and four different control cluster fault classifiers are obtained by using a one-to-many SVM classification algorithm to construct a multi-class SVM control cluster fault detection classifier;
[0157] Step 6: Take the test sample as the input sample, perform fault detection through the multi-class SVM control cluster fault detection classifier, and output the control cluster fault detection result.
[0158] For the specific limitations of each step, please refer to the limitations of the control cluster fault detection method based on QPSO-MSVM above, which will not be repeated here.
[0159] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0160] Step 1: Analyze the target control cluster system, classify the faults of the target control cluster system according to the diversity and complexity of the software and hardware in the SDN-based control cluster system, as well as the performance factors such as network structure and traffic, and construct a feature vector;
[0161] Step 2: Collect feature vectors in real time according to the classification features of the SDN control cluster failure, and divide the collected feature vectors into training samples and test samples;
[0162] Step 3, using one-to-many support vector machine algorithm, construct a control cluster fault detection model based on improved multi-class SVM;
[0163] Step 4, optimizing the parameters of the control cluster fault detection model of multi-class SVM by quantum particle swarm algorithm;
[0164] Step 5, the training samples in the collected feature vectors are divided into four groups, and four different control cluster fault classifiers are obtained by using a one-to-many SVM classification algorithm to construct a multi-class SVM control cluster fault detection classifier;
[0165] Step 6: Take the test sample as the input sample, perform fault detection through the multi-class SVM control cluster fault detection classifier, and output the control cluster fault detection result.
[0166] For the specific limitations of each step, please refer to the limitations of the control cluster fault detection method based on QPSO-MSVM above, which will not be repeated here.
[0167] like Figure 4 , Figure 5 As shown, they are respectively a comparison diagram of the fault detection accuracy and the detection time of the present invention. It can be seen from the figure that the control cluster fault detection method based on QPSO-MSVM proposed in the present invention is superior to other methods in both detection capability and efficiency, which proves the superiority of the proposed invention.
[0168] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A control cluster fault detection method based on QPSO-MSVM, characterized in that: The steps include: Step 1: Analyze the target control cluster system, classify the faults of the target control cluster system according to the diversity and complexity of the software and hardware in the SDN-based control cluster system, as well as the performance factors such as network structure and traffic, and construct a feature vector; Step 2: Collect feature vectors in real time according to the classification features of the SDN control cluster failure, and divide the collected feature vectors into training samples and test samples; Step 3, using one-to-many support vector machine algorithm, construct a control cluster fault detection model based on improved multi-class SVM; Step 4, optimizing the parameters of the control cluster fault detection model of multi-class SVM by quantum particle swarm algorithm; Step 5, the training samples in the collected feature vectors are divided into four groups, and four different control cluster fault classifiers are obtained by using a one-to-many SVM classification algorithm to construct a multi-class SVM control cluster fault detection classifier; Step 6, taking the test sample as the input sample, performing fault detection through a multi-class SVM control cluster fault detection classifier, and outputting the control cluster fault detection result; In step 1, the faults T of the target control cluster system are divided into four categories: T1 is the control cluster system fault feature vector, T2 is the control cluster program fault feature vector, T3 is the control cluster network fault feature vector, and T4 is the control cluster system host node fault feature vector, which are defined as shown in equations (1)-(4) respectively: T1=<SRT,SDT,STP,CRU> (1) T2=<PDT,POT,PBT,IOC> (2) T3=<NFT,ND,NPL,NCP> (3) T4=<CP,MP,DP,IOP> (4) Among them, T1 includes system running time SRT, system downtime SDT, system throughput STP, and system resource utilization CRU; T2 includes process deadlock time PDT, process timeout time POT, program crash time PBT, and number of illegal operations IOC; T3 includes network failure time NFT, network delay ND, network packet loss rate NPL, and network coverage rate NCP; T4 includes CPU utilization rate CP, memory utilization rate MP, disk utilization rate DP, and I / O utilization rate IOP; Step 2: When collecting feature vectors in real time, the dynamic values of feature vectors T1, T2, T3, and T4 are calculated using the following formulas. The specific steps are as follows: Step 2.1: Count the system running time SRT, count the system downtime SDT, calculate the system throughput STP as shown in formula (5), and calculate the system resource utilization CRU as shown in formula (6). STP=An / At (5) CRU=Rc / Rn (6) Among them, An represents the total number of system requests, At represents the total duration of system requests, Rn represents the total amount of system resources, and Rc represents the real-time resource usage of the system; Step 2.2, counting the process deadlock time PDT, counting the process timeout time POT, counting the program crash time PBT, and counting the number of illegal operations IOC; Step 2.3, count the network failure time NFT, count the network delay ND, calculate the network packet loss rate NPL as shown in formula (7), and calculate the network coverage rate NCP as shown in formula (8). NPL=Pl / Pn (7) NCP=Cr / Cn (8) Among them, Pn represents the total number of transmitted data packets, Pl represents the number of data packets lost, Cn represents the total number of nodes that can be connected to the network, and Cr represents the number of nodes that can be normally connected to the network; Step 2.4, the CPU usage CP is calculated as shown in formula (9), the memory usage MP is calculated as shown in formula (10), the disk usage DP is calculated as shown in formula (11), and the I / O usage IOP is calculated as shown in formula (12): CP=1-Ft / Tn (9) MP=Mu / Mn (10) DP=Du / Dn (11) IOP=IOt / IOn (12) Among them, Tn represents the total CPU time, Ft represents the idle time, Mn represents the total memory size, Mu represents the used memory size, Dn represents the total disk space, Du represents the disk space occupied by the process when it is running, IOt represents the number of I / Os within the interval time, and IOn represents the total number of I / Os.
2. The control cluster fault detection method based on QPSO-MSVM according to claim 1 is characterized in that: In step 3, a one-to-many support vector machine algorithm is used to construct a control cluster fault detection model based on an improved multi-class SVM, namely, a control cluster fault detection model of MSVM. The model construction steps are as follows: Step 3.1, given N training sets X = {x1, x2, ..., x N }, predict all samples in the training set, and their value is y; if the fault type is divided into M categories, then y∈{1, 2, ..., M}, use F i (x) represents the decision function of the i-th cluster fault detection classifier, and its calculation method is as shown in formula (13): F i (x)=(w i ) T φ(x)+ρ i (13) Among them, w i and ρ i is the hyperplane parameter, φ(x) is the feature vector that maps the low-dimensional linearly inseparable x to a high-dimensional linearly separable one through the Gaussian kernel function; Step 3.2, construct a binary SVM to separate the i-th class from the other M-1 classes, that is, solve the quadratic programming problem shown in formula (14): 0<η i <3 Where t represents the index of the sample, i∈{1,...,M} means that a total of M binary classification SVMs need to be trained, and η i is the fault detection time of the i-th classifier, is a slack variable, v∈(0,1] is a regularization parameter; Step 3.3, select the largest class i in the decision function as the detection of x, that is, The decision function for classification is as follows: Step 3.4, use the radial basis function as the kernel function of the binary SVM, It means that its function is as follows: Among them, σ>0 is the bandwidth of the Gaussian kernel function.
3. The control cluster fault detection method based on QPSO-MSVM according to claim 2 is characterized in that: In step 4, the parameters in the control cluster fault detection model of the multi-class SVM are optimized by the quantum particle swarm algorithm. The specific steps are as follows: Step 4.1, initialize the positions of the q particles of QPSO {l1, l2, ...l q }, let l p =(v p , σ p ), p = 1, 2, ..., q, v p and σ p represents the regularization parameter of the pth particle of MSVM and the width of the Gaussian kernel function, and the fitness function f of the individuals in the population is calculated as shown in formula (17): f=1-number i / am (17) Among them, num i is the number of samples detected as type i faults, and sum is the total number of training samples; Step 4.2, update the particle position according to formula (18): in, is the position of the ith particle after update, is the average optimal position of all particles in the tth iteration, represents the historical optimal position of the ith particle in the previous t iterations, μ is a random number in [0, 1], β t To control the parameters; Step 4.3, calculate the fitness of all particles according to formula (17), and update the historical optimal position and global optimal position of the particles according to the fitness value. The calculation method of the historical optimal position of the i-th particle is as shown in formula (19): Where c is a random number in [0, 1], gb represents the position of the global optimal particle; Step 4.4, determine whether the fitness function value is within the allowable error range or the current number of iterations has reached the iteration limit. If the condition is met, stop the iteration and output the optimal parameter combination of MSVM, recorded as v and σ; if not, jump to step 4.2 to continue execution.
4. The control cluster fault detection method based on QPSO-MSVM according to claim 3 is characterized in that: The steps for constructing the multi-class SVM control cluster fault detection classifier in step 5 are as follows: Step 5.1, by repeatedly collecting fault-related information in the fault information database, four different training sample sets D1, D2, D3, and D4 are formed, and the system fault feature vector set V1, the program fault feature vector set V2, the network fault feature vector set V3, and the system host node fault feature vector set V4 are extracted from the four training sample sets respectively; Step 5.2: According to the one-to-many SVM classification algorithm, for each fault type, its samples are regarded as +1 class, and all samples of the remaining classes are regarded as -1 class. Four binary SVM classifiers are constructed respectively to build the MSVM control cluster fault detection classifier C = [C1, C2, C3, C4] T , the construction process of the classifier is shown in the following formula (20): Among them, C1 is the system node fault classifier, C2 is the program fault classifier, C3 is the network fault classifier, and C4 is the system performance fault classifier.
5. The control cluster fault detection method based on QPSO-MSVM according to claim 4 is characterized in that: The steps for fault detection in step 6 are as follows: Step 6.1: Input the test sample data set into the classifier, and represent the system node fault detection results, program fault detection results, network fault detection results, and system performance fault detection results as R k , k∈{1,2,3,4}; then R k The weight of the final fault detection result is recorded as The calculation formula is as follows: Step 6.2: Input the test sample data set into the classifier in sequence, calculate the decision output value Rk of the new input sample data according to formula (13), calculate the decision classification according to formula (22), and obtain the control cluster fault detection result R:
6. A control cluster fault detection system based on QPSO-MSVM based on the method according to any one of claims 1 to 5, characterized in that: The system comprises: The first module is used to analyze the target control cluster system, classify the faults of the target control cluster system according to the diversity and complexity of the software and hardware in the SDN-based control cluster system, as well as the performance factors such as network structure and traffic, and construct a feature vector; The second module is used to collect feature vectors in real time according to the classification characteristics of SDN control cluster failures, and divide the collected feature vectors into training samples and test samples; The third module is used to construct a control cluster fault detection model based on an improved multi-class SVM using a one-to-many support vector machine algorithm; The fourth module is used to optimize the parameters in the control cluster fault detection model of multi-class SVM through quantum particle swarm algorithm; The fifth module is used to divide the training samples in the collected feature vector into four groups, use a one-to-many SVM classification algorithm to obtain four different control cluster fault classifiers, and build a multi-class SVM control cluster fault detection classifier; The sixth module is used to take the test sample as an input sample, perform fault detection through a multi-class SVM control cluster fault detection classifier, and output the control cluster fault detection result.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
