Cloud platform host network link redundancy status determination method and device

By constructing a training data table and a support vector machine model, the host network link redundancy status identification without manual login to the cloud platform is realized, which solves the problem of relying on manual identification and coupling of monitoring alarms in traditional methods, and improves the efficiency and accuracy of identification. It meets the timeliness requirements of the financial cloud platform.

CN118158090BActive Publication Date: 2024-09-17CHINA ZHESHANG BANK +1
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202410579305.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-11
Publication Date
2024-09-17
Estimated Expiration
2044-05-11

AI Technical Summary

Technical Problem

Traditional cloud platform host network link redundancy status identification methods in the financial field rely on manual identification. The accuracy depends on the experience of managers, the operation is cumbersome, time-consuming, and cannot achieve offline analysis. Moreover, monitoring alarms are coupled to the platform and cannot meet the timeliness requirements. requirements, and the effect of high-dimensional information analysis is not significant.

Method used

By obtaining training samples, constructing a training data table, performing sample labeling and digital feature processing, calculating typical feature expressions, constructing a low-dimensional projection matrix, and using support vector machines to train the discrimination model, offline analysis and discrimination without logging into the cloud platform is achieved.

Benefits of technology

It realizes host network link redundancy status discrimination without embedding into the cloud platform or manual login, reducing the workload, improving the discrimination efficiency and accuracy, eliminating invalid feature dimensions, selecting useful classification features, and improving the classification effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118158090B
    Figure CN118158090B
Patent Text Reader

Abstract

The present invention discloses a method and device for distinguishing the redundant state of a network link of a cloud platform host. The method of the present invention comprises: obtaining training samples and constructing a training data table to mark samples; performing digital feature processing on non-digital features; calculating typical feature expressions of various sample sets; constructing an objective function, simplifying and solving it, and calculating a low-dimensional projection matrix; calculating the low-dimensional feature expression of each sample under the low-dimensional projection matrix, and training a discrimination model based on the low-dimensional feature expression and sample label of the training sample; using the trained discrimination model to predict the sample label of the sample to be tested, and completing the host network link redundant state distinguishing. The method of the present invention does not rely on, does not need to be embedded in, and is parasitic on the cloud platform for operation. It does not require personnel to log in to the production cloud platform, does not rely on the management technology level of management personnel, and runs independently of the cloud platform. It can realize offline and autonomous distinguishing of the redundant state of the network link of the cloud platform host.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of financial technology and relates to a method and device for determining the redundant status of a network link of a cloud platform host in a cloud computing platform in the financial field. Background Art

[0002] In the financial field, VMware cloud platform is an important operating carrier for financial systems, platforms, and products. It carries the operation of these systems and provides computing resources and operating environment such as computing, storage, and network for the system platform. It is particularly important to manage the operation of the cloud platform, accurately determine the redundant status of the host network link, ensure that the host network and services are not interrupted, and ensure that the host provides a stable network operating environment.

[0003] The traditional method of judging the redundant status of the host network link is generally to log in to the cloud platform management interface. Without relying on the customized alarm settings in the platform, it is necessary to click, view, analyze and manually judge each host cluster and each host in the platform one by one. This manual judgment method has the following problems: 1. The host network link status needs to be judged manually. The accuracy and effect of the judgment are heavily dependent on the operation and management experience, technical level and ability level of the management personnel, and there is a possibility of missed analysis and wrong analysis; 2. The operator is not easy to replace and needs to be equipped with full-time technical personnel; 3. Manual operation is required, and there are many operation steps. As the platform size increases and the number of computing nodes increases, the workload increases exponentially, which seriously consumes manpower and reduces work efficiency; especially in financial institutions, whose cloud platforms are large in scale and the number of cloud hosts is large, the manual judgment method takes a long time and it is difficult to meet the timeliness requirements of cloud platform operation and management; 4. It is necessary to log in to the cloud platform and check the operation in the platform manually, which has the risk of wrong operation and has certain operational risks and risks to the operation of the cloud platform.

[0004] In addition, many financial institutions configure monitoring alarms for host network link redundancy status monitoring in the cloud platform. This method is coupled and parasitic on the platform, relying on the accuracy and agility of the platform operation and the platform's own alarm settings. When the alarm configuration fails or problems occur in the cloud management host operation, link redundancy status identification and analysis cannot be achieved; the alarm module is embedded and runs in the cloud platform, and offline analysis cannot be achieved, and off-site analysis and inspection needs cannot be met; in addition, this method still requires personnel to log in to the cloud platform and perform manual operations, and there are still risks and hidden dangers of manual misoperation.

[0005] In addition, some methods are limited to analyzing the original high-dimensional information of the redundant state of the host network link. Due to the high dimensionality of the original information data, there is a linear relationship between features and redundancy between features. Features in some dimensions have low contribution to discrimination or are even useless. In addition, the features of the original information in some dimensions are non-digital and cannot be directly calculated by formulas, so the discrimination effect is not significant. How to perform preliminary digital processing on the original high-dimensional features, perform feature dimensionality reduction, constrain the low-dimensional projection direction, and select features that are beneficial to classification is of great significance to improving the classification effect.

[0006] Therefore, a method for determining the redundant status of a cloud platform host network link is needed, which can be implemented without embedding and running parasitically on the cloud platform, does not require personnel to log in to the production cloud platform, does not rely on the management technology level of management personnel, runs independently of the cloud platform, can realize offline analysis, and can perform digital feature processing on the original features, making them computable, and can process and eliminate invalid, redundant, linear, and low-contribution feature dimensions, and select features that are beneficial for classification. Summary of the invention

[0007] The purpose of the present invention is to address the defects of the traditional financial field cloud platform host network link redundant status judgment method that requires logging into the cloud production environment, relying on management personnel analysis, unable to judge offline, multiple operations, time-consuming and labor-intensive, or monitoring module coupling, parasitism in the platform, dependence on platform operation, and inability to analyze offline. A cloud platform host network link redundant status judgment method and device are proposed, which does not rely on, does not need to be embedded, is parasitic on the cloud platform for operation, does not require personnel to log in to the production cloud platform, does not rely on management personnel to operate and manage technical standards and capabilities, runs independently of the cloud platform, and can realize offline and autonomous analysis.

[0008] According to a first aspect of the present invention, a method for determining a redundant state of a network link of a cloud platform host is provided, comprising:

[0009] Obtain training samples and build a training data table, and mark samples according to the redundancy status of the host network link;

[0010] Perform digital feature processing on non-digital features in the sample and establish digital dictionaries for each non-digital feature dimension;

[0011] Classify samples into normal sample sets and abnormal sample sets according to sample labels, and calculate typical feature expressions of each type of sample set based on the sample features of each type of sample set;

[0012] Construct an objective function, based on maximizing the difference in low-dimensional feature expression of typical feature expressions of sample sets of different categories under the low-dimensional projection matrix, select the most distinguishing direction of sample sets of different categories to perform projection dimensionality reduction on high-dimensional samples; keep the same type of samples in the direction of the typical features of the sample set to which they belong for projection dimensionality reduction, so that the difference between samples of the same type in the low-dimensional projection space is minimized; solve the iterative expression of the low-dimensional projection matrix according to the objective function, set the adjustment parameters, and continuously iterate and calculate to obtain the low-dimensional projection matrix;

[0013] Calculate the low-dimensional feature expression of each sample under the low-dimensional projection matrix, and train the discriminant model based on the support vector machine according to the low-dimensional feature expression and sample label of the training sample;

[0014] The trained discriminant model is used to predict the sample labels of the samples to be tested and complete the host network link redundancy status discrimination.

[0015] Furthermore, the obtaining of training samples and constructing a training data table is specifically as follows:

[0016] The cloud platform operation data is obtained through the RVTools tool, and the data export format is selected as Excel. The 16th data table recording the host network link data in the exported Excel book is converted into rows and columns as the training data table. The sample label of the normal host network link redundancy status is recorded as 1, and the abnormal sample label is recorded as -1.

[0017] Furthermore, different rows of the training data table represent different feature dimensions, indicating network link information with different attributes of the host machine, and different columns represent different samples. When the host machine network link is n uplinks, a sample is constructed based on the n columns of network link data of each host machine.

[0018] Furthermore, according to the column number sequence of the host network link data in the training data table, the data is sequentially input into the memory, the sequence of inputting the features of each feature dimension into the memory is recorded, and the input sequence and the number of occurrences of each feature are counted;

[0019] A corresponding digital dictionary is established for the non-numeric feature dimension, wherein the digital dictionary is established by mapping different numerical values ​​to the features on a certain non-numeric feature dimension according to the input order of the features;

[0020] According to the established digital dictionary, the non-digital features in the sample are processed into digital features by replacing the features with their mapped values.

[0021] Furthermore, the typical feature expression of the sample set is specifically as follows: the feature of each feature dimension in the typical feature expression corresponding to each category of sample set is the feature with the largest number of occurrences among all samples in the corresponding category of sample set that are located in the same feature dimension, namely, the mode feature. If there are multiple mode features in a feature dimension, the mode feature that arrives the most times first is taken.

[0022] Furthermore, in the process of deriving the low-dimensional projection matrix by the objective function, Lagrange multipliers are introduced to ensure that each element of the low-dimensional projection matrix is ​​a non-negative value, and Lagrange multiplier conditions are introduced to perform multiplier iteration to calculate the low-dimensional projection matrix.

[0023] Furthermore, in the process of iteratively calculating the low-dimensional projection matrix, the low-dimensional projection matrix is ​​initialized as a matrix with all values ​​1, and the adjustment parameters are set. When the number of iterations reaches a preset maximum number of iterations or the difference between the low-dimensional projection matrices of two adjacent iterations is less than a preset difference threshold, the iteration is stopped and the current low-dimensional projection matrix is ​​output.

[0024] Furthermore, the training of the discriminant model is specifically as follows:

[0025] According to the low-dimensional feature expression and sample labels of the training samples, the discriminant model based on the support vector machine is trained to obtain the weight vector and intercept of the discriminant model;

[0026] Calculate the training sample label based on the weight vector and intercept calculation of the discriminant model and the low-dimensional feature expression of the training sample, and compare it with the true label of the sample to calculate the discrimination accuracy of the discriminant model;

[0027] If the discrimination accuracy reaches the preset accuracy threshold, the discrimination model is output; otherwise, the adjustment parameters are adjusted, the low-dimensional projection matrix, low-dimensional feature expression, and discrimination model training are re-iteratively solved until the discrimination accuracy reaches the preset accuracy threshold.

[0028] Furthermore, after the digital feature processing of the sample to be tested, the low-dimensional feature expression of the sample to be tested under the low-dimensional projection matrix is ​​calculated, and the low-dimensional feature expression is input into the trained discriminant model to predict the sample label, thereby completing the host network link redundant status discrimination.

[0029] According to a second aspect of the present invention, there is provided a device for determining the redundant status of a network link of a cloud platform host machine, comprising a memory and one or more processors, wherein the memory stores executable code, and when the processor executes the executable code, it is used to implement the above-mentioned method for determining the redundant status of a network link of a cloud platform host machine.

[0030] The advantages and beneficial effects of the present invention are:

[0031] The method of the present invention performs digital feature processing of non-digital features on the original network link data of the host machine, so as to realize the calculation of the original feature formula. Data dimension reduction is performed through feature decomposition, and invalid, redundant, linear, and low-contribution feature dimensions are eliminated, the low-dimensional projection direction is constrained, and the low-dimensional projection direction with the largest discrimination degree of heterogeneous samples is selected to construct low-dimensional features of beneficial classification, so as to achieve the same sample data to be aggregated as much as possible in the low-dimensional space, and the heterogeneous sample data to be distinguished as much as possible in the low-dimensional space, so as to achieve easy distinction of samples. The discriminant model is trained with this, and the samples to be discriminated are input through the discriminant model. After feature processing, the sample label, i.e., the redundant state of the host machine network link, can be directly calculated. The method of the present invention does not rely on, does not need to be embedded, and is parasitic on the cloud platform for operation. It does not require personnel to log in to the production cloud platform, does not rely on the management technology level of management personnel, runs independently outside the cloud platform, and can realize offline and autonomous analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 The present invention is a flow chart of a method for determining the redundant state of a cloud platform host network link, shown as an exemplary embodiment;

[0034] Figure 2 A sample distribution scatter plot of an input sample in the first characteristic dimension of the original high-dimensional space is shown as an exemplary embodiment;

[0035] Figure 3 A sample distribution scatter plot of an input sample in the second characteristic dimension of the original high-dimensional space is shown as an exemplary embodiment;

[0036] Figure 4 A sample distribution scatter plot of an input sample in the third characteristic dimension of the original high-dimensional space is shown as an exemplary embodiment;

[0037] Figure 5 A scatter plot of sample distribution of input samples in a low-dimensional projection space is shown as an exemplary embodiment;

[0038] Figure 6 The present invention is a structural diagram of a cloud platform host network link redundancy status determination device according to an exemplary embodiment. DETAILED DESCRIPTION

[0039] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0040] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0041] like Figure 1 As shown, an embodiment of the present invention provides a method for determining the redundant state of a network link of a cloud platform host. The method of the present invention can effectively determine the redundant state of a network link of a VMware cloud platform host, but is not limited to VMware. The method of the present invention comprises the following steps:

[0042] Step 1: Obtain training samples and construct a training data table. Mark the samples according to the actual status of the host network link redundancy in the training samples. The mark is the sample label.

[0043] To obtain training samples, you can use the RVTools tool to enter the cloud platform IP address, user name and password (the platform where the RVTools tool is deployed must be able to access the cloud platform), click Collect Data, and select Excel as the data export format to obtain the cloud platform operation data. This tool can convert the graphical data of the cloud platform into Excel data, where the host network link data is in the 16th data table in the Excel book, and the table name is vNIC. The vNIC table is converted into rows and columns as the training data table.

[0044] Taking RVTools version 4.3.1.0 as an example, in the exported cloud platform operation data, the 16th data table in the excel book (the table name is vNIC) is the host network link data information, among which the host network link is dual uplink.

[0045] The vNIC table has 14 columns. The first column is the host name (vNicHostName) of the host. The second to fourteenth columns represent the network link information of the host. The second column is the data center name (vNicDatacenter) of the host, the third column is the cluster name (vNicCluster) of the host, the fourth column is the virtual network card device name (vNicDevice), the fifth column is the virtual network card driver name (vNicDriver), the sixth column is the virtual network card speed (vNicSpeed), and the seventh column is whether the virtual network card is duplex (vNicSpeed). NicDuplex), the 8th column is the Mac address of the virtual network card (vNicMac), the 9th column is the name of the virtual switch (vNicSwitch), the 10th column is the name of the virtual network card link port (vNicUplinkPort), the 11th column is the virtual network card location (vNicPci), the 12th column is the virtual network card wake-up (vNicWakeOn), the 13th column is the cloud platform server IP address (vNICVISDKServer), and the 14th column is the universal unique identifier of the virtual network card instance (vNICInstanceUUID). The first column of the sample is the host name of the specific host, and the second to fourteenth columns are the network link information of the host, so the characteristic dimension of the network link information of each host is 13. When the host network link is n-uplink, the n rows of network link data of the host are one data sample. Therefore, the data from row 1 to row n and column 2 to column 14 are the network link data of the first host of the cloud platform, which is the first sample; the data from row n+1 to row 2n and column 2 to column 14 are the network link data of the second host of the cloud platform, which is the second sample; and so on. When the host network link is dual-uplink, each sample is a 2-row 13-column data. The samples are converted from row to column as training samples. Therefore, for dual-uplink, the training sample is a 13-row 2-column data.

[0046] Manually label the samples, specifically: record the link redundancy status of the sample according to the actual status of the host network link redundancy, which is the sample label. Among them, the sample with normal host network link redundancy status has a sample label of ; Samples with abnormal host network link redundancy status, whose sample labels are recorded as .

[0047] The original table is converted into a training data table after row-column conversion, and the network link data of the example sample is shown in Table 1.

[0048] Table 1

[0049]

[0050] The data from the 2nd to the 14th row in Table 1 are the network link characteristics of the host. Each row represents a feature dimension, indicating a certain attribute network link information of the host. The first column is the name of each feature dimension of the host network link information, and the second and third columns are the specific feature values ​​under the specific dimensions. The features of a certain dimension appear in pairs (in this implementation, the host network link is dual-uplinked, and the redundant status of the network link with more uplinks can also be analyzed); therefore, the data from the 2nd to the 14th row, the second column and the third column in Table 1 are the original feature information of the redundant status of the host network link.

[0051] The implementation process is divided into the modeling process and the discrimination test process. In this implementation process, the total number of samples is 600. In the modeling process, there are 400 samples, the host network link redundancy status of the first 200 samples is normal, and the host network link redundancy status of the last 200 samples is abnormal. In the discrimination test process, there are 200 samples, the host network link redundancy status of the first 100 samples is normal, and the host network link redundancy status of the last 100 samples is abnormal.

[0052] During the modeling process, the original feature information of the first four samples is shown in Tables 2 and 3.

[0053] Table 2

[0054]

[0055] Table 3

[0056]

[0057] Among them: "XSZX" is a certain center, "XSZX_SC01" is a certain center production area 01, vmnic is a VMware network card, "qfle3" is the name of a virtual network card driver, "True" is yes, "VDS-Domain" is the production distributed virtual switch, "VDS-BACKUP" is the backup distributed virtual switch, "VDS-MGMT" is the management distributed virtual switch, "uplink1" is the virtual network card link port 1, and "uplink2" is the virtual network card link port 2.

[0058] Step 2: Process the sample digital features of the original input sample.

[0059] The host network link data is input into the memory in sequence according to the column number sequence in the training data table. For example, if the host network link is dual uplink, the first column of the first host network link data is first input into the memory, followed by the second column of the first host network link data, and so on.

[0060] Record the order in which the features of each feature dimension are input into the memory. For example, if a feature is input into the memory first, the input order of the feature is recorded as 1. The feature input second is recorded as 2, and so on. The input order of the features in each feature dimension is obtained. Count the input order and occurrence times of each feature.

[0061] Step 2.1: For non-numeric features in the sample, establish a digital dictionary for each non-numeric feature dimension, which can form a one-to-one mapping relationship between features and numbers. The specific method of establishing the digital dictionary is: for the features on a certain feature dimension, map the values ​​1, 2, 3, 4, 5, ... respectively according to the input order of the features.

[0062] As shown in Table 2, the data in the 2nd and 3rd columns and the 2nd to 14th rows in Table 2 are sample features, reflecting the original data of a host network link. In this implementation, the network link of the original host is dual-uplink, so for a certain feature dimension, features appear in pairs. The 2nd and 3rd columns of the 2nd row are the first feature dimension, and the 2nd and 3rd columns of the 3rd row are the second feature dimension. Except for the features in the 6th row, the features in the remaining dimensions are all non-digital features.

[0063] Taking the 600 samples in this simulation experiment as an example, the method of establishing the digital dictionary for each feature dimension is as follows:

[0064] Among the 600 samples, there are 600 pairs of features on the same feature dimension, totaling 1200. Considering that the feature values ​​of different samples on the same feature dimension may be the same, the number of feature value categories of the features on a certain feature dimension in these 600 samples will be less than or equal to 1200. According to the input order of the feature value categories of the features on a certain feature dimension in these 600 samples into the memory, the values ​​1, 2, 3, 4, 5, ... are mapped respectively.

[0065] Take the first feature dimension, the name of the data center on the host (vNicDatacenter) as an example. Among these 600 samples, there are 600 pairs of feature values ​​in this feature dimension, a total of 1200, and only one feature value category, the corresponding feature value is "XSZX". Therefore, the digital dictionary of the first feature dimension, here called 1.dict, is: .

[0066] Taking the second feature dimension, the cluster name (vNicCluster) on the host as an example, among these 600 samples, there are 600 pairs of feature values ​​in this feature dimension, a total of 1,200, and 11 feature value categories, namely "XSZX_SC01", "XSZX_SC04", "XSZX_SC02", "XSZX_SC03", "XSZX_DMZ01", "XSZX_ZYUY01", "XSZX_DMZ02", "XSZX_MGMT01", "XSZX_BG01", "XSZX_BG02", and "XSZX_ZCTG01". Among them, the feature value "XSZX_SC01" is first input into the memory, and its mapped value is 1; the feature value "XSZX_SC04" is secondly input into the memory, and its mapped value is 2; and so on, the feature value "XSZX_ZCTG01" is lastly input into the memory, and its mapped value is 11. Therefore, the digital dictionary of the second feature dimension, here called 2.dict, is as follows: .

[0067] Similarly, the third feature dimension, virtual network card device name (vNicDevice), has 600 pairs of feature values ​​in these 600 samples, a total of 1200, and 8 feature value categories, specifically vmnic0, vmnic1, vmnic2, vmnic3, vmnic4, vmnic5, vmnic6, and vmnic7. Among them, the feature value vmnic0 is first input into the memory, and in the digital feature processing, its mapped value is 1; the feature value vmnic1 is secondly input into the memory, and in the digital feature processing, its mapped value is 2; and so on, vmnic7 is last input into the memory, and its mapped value is 8. Therefore, the digital dictionary of the third feature dimension, here called 3.dict, is specifically:

[0068] .

[0069] The same processing as above, and so on.

[0070] The fourth feature dimension is the virtual network card driver name (vNicDriver). The digital dictionary of the fourth feature dimension, here called 4.dict, is as follows: .

[0071] The fifth feature dimension is the virtual network card speed (vNicSpeed). The feature value of this feature dimension is a number. The original digital feature can be kept without establishing a digital dictionary.

[0072] The sixth feature dimension is whether the virtual network card is duplex (vNicDuplex). The digital dictionary of the sixth feature dimension, here called 6.dict, is as follows: .

[0073] The seventh feature dimension is the Mac address of the virtual network card (vNicMac). This is different from the previous feature mapping because each feature value of the Mac address of the network card is different. The difference lies in the presence or absence of a value, rather than the specific address information. Therefore, the mapping principle of the digital dictionary for this feature dimension is: if there is a value, the feature value is mapped to 1, and if there is no value, the feature value is mapped to 0; the digital dictionary of the seventh feature dimension, here called 7.dict, is specifically: .

[0074] The eighth feature dimension is the virtual switch name (vNicSwitch). The digital dictionary of the eighth feature dimension, referred to as 8.dict, is as follows: .

[0075] The ninth feature dimension is the virtual network card link port name (vNicUplinkPort). The digital dictionary of the ninth feature dimension, here called 9.dict, is as follows: .

[0076] The 10th feature dimension is the virtual network card position (vNicPci). Because each feature value of the virtual network card position may be different, the difference lies in the presence or absence of a value, rather than the specific location information. Therefore, the mapping principle of the digital dictionary for this feature dimension is: if there is a value, the feature value is mapped to 1, and if there is no value, the feature value is mapped to 0; the digital dictionary of the 10th feature dimension, here called 10.dict, is specifically: .

[0077] The 11th feature dimension is virtual network card wake-up (vNicWakeOn). The digital dictionary of the 11th feature dimension, here called 11.dict, is as follows: .

[0078] The 12th feature dimension is the cloud platform server IP address (vNICVISDKServer). The digital dictionary of the 12th feature dimension, here called 12.dict, is as follows: .

[0079] The 13th feature dimension is the universal unique identifier of the virtual network card instance (vNICInstanceUUID). The digital dictionary of the 13th feature dimension, here called 13.dict, is as follows: .

[0080] Step 2.2: Based on the digital dictionary of each feature dimension established in step 2.1, the non-digital features in the sample are digitally processed by replacing the features with the numbers they are mapped to. In this way, each feature in the sample is digital and can be calculated. The sample at this time is recorded as , for the input samples, denoted as , whose sample labels are recorded as , .

[0081] Taking the original feature information of the first four samples shown in Tables 2 and 3 as an example, after feature conversion, the input features of the first four samples are shown in Table 4.

[0082] Table 4

[0083]

[0084] During the modeling process, the sample distribution scatter plot of the input sample in any feature dimension of the original high-dimensional space is as follows: Figure 2 , Figure 3 , Figure 4 As shown, Figure 2 Taking the first feature dimension as an example, Figure 3 Taking the second feature dimension as an example, Figure 4 Take the third feature dimension as an example, where the circle points represent normal samples and the triangle points represent abnormal samples. Figure 2 , Figure 3 , Figure 4 It can be seen that in the first, second, and third feature dimensions of the original high-dimensional space, normal samples and abnormal samples overlap and cannot be completely distinguished.

[0085] Step 3: Based on the sample labels, the sample labels are The samples are classified as normal samples , the number of samples in the sample set is recorded as ; The sample labels are the same The samples are classified as abnormal samples , the number of samples in the sample set is recorded as .

[0086] During this implementation, the total number of samples was 600. In the modeling process, there were 400 samples, the host network redundancy status of the first 200 samples was normal, and the host network link redundancy status of the last 200 samples was abnormal; in the discrimination test process, there were 200 samples, the host network link redundancy status of the first 100 samples was normal, and the host network link redundancy status of the last 100 samples was abnormal. Therefore, the normal sample set with the same sample label of 1 , the label corresponding to each sample And the number of samples in the normal sample set ; A collection of abnormal samples whose sample labels are all -1 , the label corresponding to each sample And the number of samples in the abnormal sample set .

[0087] Step 4: Calculate the sample set according to the sample characteristics of each type of sample set (in, ) . The feature of each feature dimension in is a sample set All samples in the same feature dimension are located in the same feature dimension. The feature with the most occurrences is the mode feature. If there are multiple mode features in a feature dimension, the mode feature that reaches the most times first can be taken.

[0088] According to all the samples in this implementation process, the normal sample set can be obtained Typical characteristic expression , abnormal sample set Typical characteristic expression As shown in Table 5.

[0089] Table 5

[0090]

[0091] Step 5: Construct the objective function. The objective function establishment process is as follows:

[0092] The feature dimension of the original sample data is high, some features are not helpful for data classification, and there is a linear relationship between some features. The features are redundant. The original sample features are subjected to data dimensionality reduction to sort out the features that are beneficial to the data classification direction.

[0093] The present invention proposes the following objective function:

[0094]

[0095] in, is the objective function, and the overall objective function is minimized, with the intention of feeding back the original information as much as possible when performing low-dimensional feature decomposition on the original sample; To adjust the parameters, ; is the sample size, For the samples, for Matrix of is the low-dimensional projection matrix, for Matrix of For sample In the low-dimensional projection matrix The low-dimensional feature expression under for Therefore, the 13-dimensional original data is transformed into 1-dimensional features through low-dimensional projection to achieve data dimensionality reduction; is the norm of the matrix, the result is the sum of the squares of all elements in the matrix, and then the square root is taken; is the square of the norm of the matrix, so the result is the sum of the squares of all elements in the matrix, that is, and The smaller the distance, the better. Each element in the matrix involved is non-negative.

[0096] The matrix decomposition of the above sample features only achieves dimensionality reduction, but does not guide the dimensionality reduction direction and the solution is not unique. In order to make the projection matrix sparse, improve the generalization ability, and guide the direction of data dimensionality reduction, so that the sample features are reduced in the direction of the maximum difference between heterogeneous samples, the present invention proposes the following objective function:

[0097]

[0098] in, , To adjust the parameters, , ; is the sample size; (in, ) is the sample set (in, ) (in, ) in the low-dimensional projection matrix The above objective function needs to maximize the difference between heterogeneous samples while reducing the dimensionality of the samples. Therefore, the above objective function can be further rewritten as follows:

[0099]

[0100] because , They are low-dimensional feature expressions of typical features of a normal sample set of host network link redundant status and an abnormal sample set of host network link redundant status. When performing sample dimensionality reduction for samples of the same type, the most similar features should be selected, that is, the direction representing the typical features of such samples should be selected for projection. For heterogeneous samples, the direction with the largest difference is selected for projection, that is, in the low-dimensional space, the direction with the most distinguishing degree is selected for projection; in this way, the data can achieve the effect of screening the same type and separating the heterogeneous types. Based on the above ideas, the present invention proposes the following overall objective function:

[0101]

[0102] in, , , To adjust the parameters, , , ; is the number of samples. In this modeling process, ; For the samples; is the low-dimensional projection matrix; , is the sample category; for Class sample set; , They are Class samples, The typical feature expression of the class samples, the values ​​taken in this modeling process are shown in Table 5. In this modeling process, , , ; , , .

[0103] The present invention simplifies and decomposes the objective function as follows:

[0104]

[0105] The objective function is optimized and further decomposed as follows:

[0106]

[0107] in, for Class sample collection The number of samples, is the trace of the matrix.

[0108] The above overall objective function is for the low-dimensional projection matrix To ensure the low-dimensional projection matrix During the derivation process, each element of the matrix is ​​a non-negative value. The present invention introduces the Lagrange multiplier Ψ = [ ψ ij ] , , for The matrix of The i in represents the i-th row and j represents the j-th column. The overall objective function is updated as follows:

[0109]

[0110] Step 6: Solve the objective function and obtain the low-dimensional projection matrix , the objective function is the low-dimensional projection matrix The derivative is:

[0111]

[0112] Introducing the Lagrange multiplier condition , perform multiplier iteration and solve to obtain the low-dimensional projection matrix .

[0113]

[0114] in, The i in the equation represents the i-th row and the j represents the j-th column.

[0115] Low-dimensional projection matrix The final iterative expression is simplified as follows:

[0116]

[0117] Step 7: Initialize the low-dimensional projection matrix It is a matrix with all values ​​1, that is, each feature dimension of the input sample has the same weight and the same discriminant effect. Set the adjustment parameter , , When the number of iterations reaches the preset maximum number of iterations or the number of two consecutive iterations If the difference between them is less than the preset difference threshold, the iteration is stopped and the current low-dimensional projection matrix is ​​output. .

[0118] During this modeling process, , , And the number of iterations is 100, the low-dimensional projection matrix As shown in Table 6.

[0119] Table 6

[0120]

[0121] Step 8: Calculate each sample In the low-dimensional projection matrix Low-dimensional feature expression under , where the sample The sample label is , .

[0122] During this modeling process, , Among them, the low-dimensional feature expressions of the first four input samples are shown in Table 7.

[0123] Table 7

[0124]

[0125] Through data dimensionality reduction, the input samples are projected into the low-dimensional projection space. The sample distribution scatter plot of the input samples in the low-dimensional projection space is as follows: Figure 5 As shown, the circle points represent normal samples and the triangle points represent abnormal samples. Figure 5 It can be seen that normal samples and abnormal samples are completely distinguished in the low-dimensional projection space.

[0126] Step 9: Input all samples in the modeling process Low-dimensional feature expression and its sample labels , training based on support vector machine The discriminant model of the discriminant model is obtained by and the intercept .

[0127] During this modeling process, U = [ -2.33103467e-18,1.63150050e-04 ] T , .

[0128] Step 10: Calculate the training sample labels through the trained discriminant model ,in is a symbolic function, which is compared with the true label of the sample to calculate the discrimination accuracy of the discrimination model. If the accuracy reaches the preset accuracy threshold, it means that the discrimination effect is excellent, and the discrimination model is output and step 11 is executed; otherwise, step 7, step 8, step 9, and step 10 are executed in sequence until the accuracy reaches the preset accuracy threshold, which means that the discrimination effect meets the expected requirements, and the low-dimensional projection matrix of the final output is calculated. And the weight vector of the discriminant model and the intercept .

[0129] During this modeling process, , , When the number of iterations is 100, the discrimination accuracy of the discriminant model is 100%, and the discrimination effect is good.

[0130] Step 11: Get the original test sample, perform digital feature processing on the original test sample to obtain the input test sample, calculate the low-dimensional feature expression of the input test sample under the low-dimensional projection matrix, and input the low-dimensional feature expression into the discriminant model to predict the sample label. In this discriminant test process, the following steps are specifically included:

[0131] Step 11.1: Input the original samples in the discrimination test process through step 1. The first four original test samples are shown in Tables 8 and 9.

[0132] Table 8

[0133]

[0134] Table 9

[0135]

[0136] in:" "For a certain center," " is the isolation area 02 of the XXXX center, vmnic is the VMware network card, " " is the name of a virtual network card driver, "Yes", "For the production of distributed virtual switches, " is the backup distributed virtual switch, " "To manage distributed virtual switches, " is the virtual network card link port 1, " " is the virtual NIC link port 2.

[0137] Step 11.2: Through the digital dictionary pre-established in step 2, the mapping relationship between features and numbers can be obtained. By replacing the features with the numbers they map to, the non-digital features in the sample are digitally processed to obtain the input test sample in the discrimination test process. .

[0138] The first four input test samples of the discriminant test process are shown in Table 10, and their corresponding labels are , , , .

[0139] Table 10

[0140]

[0141] Step 11.3: Calculate the input test samples for the discriminant test process Low-dimensional feature expression .

[0142] Specifically, according to the low-dimensional projection matrix obtained in step 7 And the input test sample obtained in step 11.2 , the input test sample can be calculated Low-dimensional feature expression .

[0143] Low-dimensional feature expression of the first 4 samples in the discriminant test process As shown in Table 11.

[0144] Table 11

[0145]

[0146] Step 11.4: According to the weight vector of the discriminant model obtained in step 10 and the intercept , in the process of calculating the discriminant test, the sample The predicted label .

[0147] The predicted labels for the first 4 samples of are calculated as follows:

[0148]

[0149]

[0150]

[0151]

[0152] Same as step 11.4, complete the label prediction of all samples during the discriminant test: , .

[0153] As can be seen from step 3, the total number of samples in this implementation process is 600. In the modeling process, there are 400 samples in total, and the host network link redundancy status of the first 200 samples is normal, and the host network link redundancy status of the last 200 samples is abnormal; in the discrimination test process, there are 200 samples in total, and the host network link redundancy status of the first 100 samples is normal, and the host network link redundancy status of the last 100 samples is abnormal. The sample with a normal host network link redundancy status is recorded as 1; the sample with an abnormal host network link redundancy status is recorded as -1. Therefore, in the discrimination test process, the sample label is predicted 100% accurately, that is, the actual situation of the host network link redundancy status represented by the sample is 100% accurately judged.

[0154] Corresponding to the above-mentioned embodiment of the method for determining the redundant status of a network link of a cloud platform host machine, the present invention also provides an embodiment of a device for determining the redundant status of a network link of a cloud platform host machine.

[0155] See also Figure 6 The cloud platform host network link redundant status determination device provided in an embodiment of the present invention includes a memory and one or more processors, wherein the memory stores executable code, and when the processor executes the executable code, it is used to implement the cloud platform host network link redundant status determination method in the above embodiment.

[0156] The embodiments of the cloud platform host network link redundancy status determination device of the present invention can be applied to any device with data processing capabilities, and the device with data processing capabilities can be a device or apparatus such as a computer. The device embodiment can be implemented through software, or through hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of any device with data processing capabilities in which it is located reading the corresponding computer program instructions in the non-volatile memory into the memory for execution. From the hardware level, if Figure 6 As shown, it is a hardware structure diagram of any device with data processing capability where the cloud platform host network link redundancy state determination device of the present invention is located, except Figure 6 In addition to the processor, memory, network interface, and non-volatile memory shown, any device with data processing capabilities in which the apparatus in the embodiments is located may also include other hardware, generally based on the actual functions of the device with data processing capabilities, which will not be described in detail.

[0157] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0158] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.

[0159] An embodiment of the present invention further provides a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, the method for determining the redundant status of a network link of a cloud platform host machine in the above embodiment is implemented.

[0160] The computer-readable storage medium may be an internal storage unit of any device with data processing capability described in any of the aforementioned embodiments, such as a hard disk or a memory. The computer-readable storage medium may also be an external storage device of any device with data processing capability, such as a plug-in hard disk, a smart media card (SMC), an SD card, a flash card, etc. equipped on the device. Furthermore, the computer-readable storage medium may also include both an internal storage unit and an external storage device of any device with data processing capability. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capability, and may also be used to temporarily store data that has been output or is to be output.

[0161] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.

Claims

1. A method for determining the redundant state of a cloud platform host network link, characterized in that: include: Obtain training samples and build a training data table, and mark samples according to the redundancy status of the host network link; Perform digital feature processing on non-digital features in the sample and establish digital dictionaries for each non-digital feature dimension; Classify the samples into normal sample sets and abnormal sample sets according to the sample labels, and calculate the typical feature expression of each type of sample set according to the sample features of each type of sample set; the typical feature expression of the sample set is specifically: the feature of each feature dimension in the typical feature expression corresponding to each type of sample set is the feature with the most occurrences in the same feature dimension of all samples in the corresponding category sample set, that is, the mode feature. If there are multiple mode features in a certain feature dimension, take the mode feature that reaches the most times first; Construct an objective function, based on maximizing the difference in low-dimensional feature expression of typical feature expressions of sample sets of different categories under the low-dimensional projection matrix, select the most distinguishing direction of sample sets of different categories to perform projection dimensionality reduction on high-dimensional samples; keep the same type of samples in the direction of the typical features of the sample set to which they belong for projection dimensionality reduction, so that the difference between samples of the same type in the low-dimensional projection space is minimized; solve the iterative expression of the low-dimensional projection matrix according to the objective function, set the adjustment parameters, and continuously iterate and calculate to obtain the low-dimensional projection matrix; Calculate the low-dimensional feature expression of each sample under the low-dimensional projection matrix, and train the discriminant model based on the support vector machine according to the low-dimensional feature expression and sample label of the training sample; The trained discriminant model is used to predict the sample labels of the samples to be tested and complete the host network link redundancy status discrimination.

2. The method for determining the redundant state of a cloud platform host network link according to claim 1, characterized in that: The specific steps of obtaining training samples and constructing a training data table are as follows: The cloud platform operation data is obtained through the RVTools tool, and the data export format is selected as Excel. The 16th data table recording the host network link data in the exported Excel book is converted into rows and columns as the training data table. The sample label of the normal host network link redundancy status is recorded as 1, and the abnormal sample label is recorded as -1.

3. The method for determining the redundant state of a cloud platform host network link according to claim 1, characterized in that: Different rows of the training data table represent different feature dimensions, indicating network link information with different attributes of the host machine, and different columns represent different samples. When the host machine network link is n uplinks, a sample is constructed based on the n columns of network link data of each host machine.

4. The method for determining the redundant state of a cloud platform host network link according to claim 3, characterized in that: According to the column number sequence of the host network link data in the training data table, the data is input into the memory in sequence, the sequence of inputting the features of each feature dimension into the memory is recorded, and the input sequence and the number of occurrences of each feature are counted; A corresponding digital dictionary is established for the non-numeric feature dimension, wherein the digital dictionary is established by mapping different numerical values ​​to the features on a certain non-numeric feature dimension according to the input order of the features; According to the established digital dictionary, the non-digital features in the sample are processed into digital features by replacing the features with their mapped values.

5. The method for determining the redundant state of a cloud platform host network link according to claim 1, characterized in that: In the process of deriving the low-dimensional projection matrix by the objective function, Lagrange multipliers are introduced to ensure that each element of the low-dimensional projection matrix is ​​a non-negative value, and Lagrange multiplier conditions are introduced to perform multiplier iteration to calculate the low-dimensional projection matrix.

6. The method for determining the redundant state of a cloud platform host network link according to claim 1, characterized in that: In the process of iterative calculation of the low-dimensional projection matrix, the low-dimensional projection matrix is ​​initialized as a matrix with all values ​​1, and the adjustment parameters are set. When the number of iterations reaches the preset maximum number of iterations or the difference between the low-dimensional projection matrices of two adjacent iterations is less than the preset difference threshold, the iteration is stopped and the current low-dimensional projection matrix is ​​output.

7. The method for determining the redundant state of a cloud platform host network link according to claim 1, characterized in that: The training of the discriminant model is specifically as follows: According to the low-dimensional feature expression and sample labels of the training samples, the discriminant model based on the support vector machine is trained to obtain the weight vector and intercept of the discriminant model; Calculate the training sample label based on the weight vector and intercept calculation of the discriminant model and the low-dimensional feature expression of the training sample, and compare it with the true label of the sample to calculate the discrimination accuracy of the discriminant model; If the discrimination accuracy reaches the preset accuracy threshold, the discrimination model is output; Otherwise, adjust the adjustment parameters, iteratively solve the low-dimensional projection matrix, low-dimensional feature expression, and train the discriminant model until the discrimination accuracy reaches the preset accuracy threshold.

8. The method for determining the redundant state of a cloud platform host network link according to claim 1, characterized in that: After the digital feature processing of the sample to be tested is performed, the low-dimensional feature expression of the sample to be tested under the low-dimensional projection matrix is ​​calculated, and the low-dimensional feature expression is input into the trained discriminant model to predict the sample label, thereby completing the host network link redundant status discrimination.

9. A cloud platform host network link redundancy status determination device, comprising a memory and one or more processors, wherein the memory stores executable code, characterized in that: When the processor executes the executable code, it is used to implement the cloud platform host network link redundancy status determination method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Data dimension reduction method based on kernel preserving

    CN112116017A

  • Shielding face recognition method based on kernel extension dictionary sparse representation

    CN112966649A

  • Automatic construction of neural network architecture using bayesian graph exploration

    CN115769228A

  • Error state evaluation method, system and device for electric energy meter and storage medium

    CN116028822A

  • Cage access control system and method based on well mining scene perception fusion technology

    CN117201567A