Deployment method, system and electronic device of bare metal vxlan

Through the combination of timing encoder and graph neural network, the computing resources and topological structure characteristics of bare metal virtual machine deployment are extracted, which solves the problem that traditional networks cannot meet the needs of cloud computing, and achieves rational judgment of virtual machine deployment and cloud computing stability. improvement.

CN114884772BActive Publication Date: 2024-10-29CNNC FUJIAN FUQING NUCLEAR POWER
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210489026.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-07
Publication Date
2024-10-29
Estimated Expiration
2042-05-07

AI Technical Summary

Technical Problem

Traditional networks cannot meet the computing resource requirements of virtual machines deployed on bare metal in cloud computing, resulting in limitations in the stability and availability of cloud computing.

Method used

A time series encoder is used to extract the implicit features of computing resource data, and a graph neural network is used to fuse topological structure features and traffic data features to perform feature space search and simultaneous projection to determine the rationality of virtual machine deployment.

Benefits of technology

It realizes the judgment of the rationality of virtual machine deployment, improves the stability and availability of cloud computing, and meets the needs of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114884772B_ABST
    Figure CN114884772B_ABST
Patent Text Reader

Abstract

The present application discloses a method, system and electronic device for deploying bare metal vxlan, which uses a timing encoder to extract implicit correlation features of computing resource data in the time dimension and data dimension, and uses a graph neural network to fuse the topological structure features of the source port and the correlation features between the traffic data at each time point, and further uses the timing features of the computing resources to search the feature space for the low-dimensional feature joint expression of the logical link and the logical node, and uses the timing features to constrain the low-rank expression of the low-dimensional feature joint expression, so as to achieve the joint projection of the feature vector and the feature matrix in the high-dimensional feature space through the class representation of the joint correlation in the space of the feature vector and the feature matrix, so as to obtain the alignment of the feature distribution of the timing features and the logical joint features in the high-dimensional feature space, that is, the representation vector of the feature adaptation degree. In this way, the rationality of the current virtual machine deployment can be judged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent deployment of bare metal VXLAN, and more specifically, to a deployment method, system and electronic device of bare metal VXLAN. Background Art

[0002] With the rapid development of Internet services, network equipment as infrastructure has become a major factor in demand for rapid deployment and reduced investment. Cloud computing can provide available, convenient, and on-demand resources, becoming a common form of current enterprise network construction, and virtualization, which is widely adopted and deployed in cloud computing, has almost become a basic technical model. Deploying virtual machines requires unlimited migration to the target physical location in the network. The rapid growth of virtualization and virtual migration have become a normal business, and traditional networks can no longer meet such needs of enterprises.

[0003] Therefore, in order to enable the virtual machine resources deployed on the bare metal to meet the requirements of the required computing resources to ensure the stability and availability of cloud computing, a bare metal vxlan deployment solution is desired.

[0004] At present, deep learning and neural networks have been widely used in computer vision, natural language processing, speech signal processing and other fields. In addition, deep learning and neural networks have also shown a level close to or even beyond that of humans in image classification, object detection, semantic segmentation, text translation and other fields.

[0005] The development of deep learning and neural networks provides new solutions and solutions for the deployment of bare metal VXLAN. Summary of the invention

[0006] In order to solve the above technical problems, the present application is proposed. The embodiment of the present application provides a deployment method, system and electronic device for bare metal vxlan, which extracts the implicit correlation features of computing resource data in the time dimension and data dimension through a timing encoder, and uses a graph neural network to fuse the topological structure features of the source port and the correlation features between the traffic data at each time point, and further uses the timing features of the computing resources to perform feature space search on the low-dimensional feature joint expression of the logical link and the logical node, and constrains the low-rank expression of the low-dimensional feature joint expression with the timing features, so as to realize the joint projection of the feature vector and the feature matrix in the high-dimensional feature space through the class representation of the joint correlation in the space of the feature vector and the feature matrix, so as to obtain the alignment of the feature distribution of the timing features and the logical joint features in the high-dimensional feature space, that is, the characterization vector of the degree of feature adaptation. In this way, the rationality of the current virtual machine deployment can be judged.

[0007] According to one aspect of the present application, a method for deploying a bare metal vxlan is provided, which includes:

[0008] Acquire UDP message data at multiple time points, and respectively extract computing resource data from the UDP message data at the multiple time points;

[0009] Passing the computing resource data at the plurality of time points through a temporal encoder including a one-dimensional convolutional layer and a fully connected layer to obtain a first feature vector;

[0010] Obtain a topology matrix of source ports in the current virtual machine deployment solution, wherein the values ​​of each non-diagonal position in the topology matrix are the logical link traffic between the corresponding source ports, and the values ​​of each diagonal position in the topology feature are zero;

[0011] Passing the topological matrix through a first convolutional neural network to obtain a first feature matrix;

[0012] Acquire the flow data of each of the source ports at each time point in the multiple time points;

[0013] Passing the flow data of each of the source ports at each time point through a context encoder model including an embedding layer to obtain a plurality of feature vectors, and cascading the plurality of feature vectors to obtain a flow feature vector corresponding to each time point;

[0014] Arranging the flow feature vectors at each time point in two dimensions into a feature matrix and then passing it through a second convolutional neural network to obtain a second feature matrix;

[0015] Passing the first feature matrix and the second feature matrix through a graph neural network to obtain a third feature matrix, wherein the graph neural network generates a matrix representation including irregular topological features and high-dimensional flow correlation features through learnable neural network parameters;

[0016] Calculate a class probability joint correlation vector between the first eigenvector and the third eigenmatrix, wherein the class probability joint correlation vector is obtained by dividing the eigenvalue of each position of the numerator vector by the eigenvalue of each position of the denominator vector, and then using the result as the exponent of a natural function to obtain the eigenvalue of each position of the class probability joint correlation vector, wherein the numerator vector is the first eigenvector multiplied by the third eigenmatrix, and the denominator vector is the position-wise dot product of the Frobenius norm of the first eigenvector and the third eigenmatrix; and

[0017] The class probability and the related vector are combined through a classifier to obtain a classification result, and the classification result is used to indicate whether the current virtual machine deployment solution meets the preset requirements.

[0018] In the above-mentioned bare metal vxlan deployment method, the computing resource data of the multiple time points are passed through a temporal encoder including a one-dimensional convolutional layer and a fully connected layer to obtain a first feature vector, including: arranging the computing resource data of the multiple time points into a one-dimensional input vector corresponding to each of the UDP message data according to the time dimension; using the fully connected layer of the temporal encoder to fully connect the input vector using the following formula to extract the high-dimensional implicit features of the feature values ​​at each position in the input vector, wherein the formula is: Where X is the input vector, Y is the output vector, W is the weight matrix, and B is the bias vector. represents matrix multiplication; using a one-dimensional convolution layer of a temporal encoder to perform one-dimensional convolution encoding on the input vector according to the following formula to extract a high-dimensional implicit correlation feature of the correlation between the eigenvalues ​​at each position in the input vector, wherein the formula is:

[0019]

[0020] Among them, a is the width of the convolution kernel in the x direction, F is the convolution kernel parameter vector, G is the local vector matrix operated with the convolution kernel function, and w is the size of the convolution kernel.

[0021] In the above-mentioned bare metal vxlan deployment method, the topology matrix is ​​passed through a first convolutional neural network to obtain a first feature matrix, including: each layer of the first convolutional neural network performs convolution processing based on a two-dimensional convolution kernel, pooling processing along the channel dimension and activation processing on the input data in the forward pass of the layer to output the first feature matrix by the last layer of the first convolutional neural network, wherein the input of the first layer of the first convolutional neural network is the topology matrix.

[0022] In the above-mentioned bare metal vxlan deployment method, the traffic data of each of the source ports at each time point is passed through a context encoder model including an embedding layer to obtain a plurality of feature vectors, including: using the embedding layer of the context encoder model including the embedding layer to convert the traffic data of each of the source ports at each time point into input vectors respectively to obtain a sequence of input vectors; and, using a converter of the context-based encoder model to perform global context semantic encoding on the sequence of input vectors to obtain the plurality of feature vectors.

[0023] In the above-mentioned bare metal vxlan deployment method, calculating the class probability joint correlation vector between the first eigenvector and the third eigenmatrix includes: calculating the class probability joint correlation vector between the first eigenvector and the third eigenmatrix by the following formula;

[0024] Wherein, the formula is:

[0025]

[0026] Where V1 is the first eigenvector, M3 is the third eigenmatrix, represents the multiplication of a vector and a matrix, ⊙ represents the dot product of a vector and a value, that is, each position of the vector is multiplied by the value, and ‖M3‖ F represents the Frobenius norm of the third characteristic matrix, that is, the square root of the sum of the squares of the absolute values ​​of the eigenvalues ​​of the third characteristic matrix.

[0027] In the above-mentioned bare metal vxlan deployment method, the class probability joint correlation vector is passed through a classifier to obtain a classification result, including: using the classifier to process the class probability joint correlation vector using the following formula to obtain the classification result; wherein the formula is: softmax{(W n ,B n ):…:(W1,B1)|X}, where W1 to W n is the weight matrix, B1 to B n is the bias vector, and X is the class probability joint correlation vector.

[0028] According to another aspect of the present application, a bare metal vxlan deployment system is provided, comprising:

[0029] A computing resource data extraction unit, used to obtain UDP message data at multiple time points, and respectively extract computing resource data from the UDP message data at the multiple time points;

[0030] a temporal encoding unit, configured to pass the computing resource data at the plurality of time points obtained by the computing resource data extraction unit through a temporal encoder including a one-dimensional convolutional layer and a fully connected layer to obtain a first feature vector;

[0031] A topology matrix acquisition unit, used to acquire a topology matrix of a source port in a current virtual machine deployment solution, wherein the value of each non-diagonal position in the topology matrix is ​​the logical link flow between the corresponding source ports, and the value of each diagonal position in the topology feature is zero;

[0032] A first convolution unit, configured to pass the topological matrix obtained by the topological matrix obtaining unit through a first convolutional neural network to obtain a first feature matrix;

[0033] A flow data acquisition unit, used to acquire the flow data of each of the source ports at each time point in the multiple time points;

[0034] A context encoding unit, configured to obtain a plurality of feature vectors by passing the flow data of each source port at each time point obtained by the flow data acquisition unit through a context encoder model including an embedding layer, and cascade the plurality of feature vectors to obtain a flow feature vector corresponding to each time point;

[0035] A second convolution unit is used to arrange the traffic feature vectors at each time point obtained by the context encoding unit in two dimensions into a feature matrix and then pass it through a second convolutional neural network to obtain a second feature matrix;

[0036] A graph neural network unit, configured to obtain a third feature matrix by passing the first feature matrix obtained by the first convolution unit and the second feature matrix obtained by the second convolution unit through a graph neural network, wherein the graph neural network generates a matrix representation containing irregular topological features and high-dimensional flow correlation features through learnable neural network parameters;

[0037] A class probability joint correlation vector generating unit, used for calculating the class probability joint correlation vector between the first eigenvector obtained by the temporal coding unit and the third eigenmatrix obtained by the graph neural network unit, wherein the class probability joint correlation vector is obtained by dividing the eigenvalue of each position of the numerator vector by the eigenvalue of each position of the denominator vector, and then using the eigenvalue of each position of the class probability joint correlation vector as the exponent of a natural function, wherein the numerator vector is the first eigenvector multiplied by the third eigenmatrix, and the denominator vector is the positional point product of the Frobenius norm of the first eigenvector and the third eigenmatrix;

[0038] The classification unit is used to pass the class probability joint correlation vector obtained by the class probability joint correlation vector generation unit through a classifier to obtain a classification result, and the classification result is used to indicate whether the current virtual machine deployment solution meets the preset requirements.

[0039] In the above bare metal vxlan deployment system, the timing encoding unit is further used to: arrange the computing resource data of the multiple time points into a one-dimensional input vector corresponding to each of the UDP message data according to the time dimension; use the fully connected layer of the timing encoder to fully connect the input vector using the following formula to extract the high-dimensional implicit features of the feature values ​​at each position in the input vector, wherein the formula is: Where X is the input vector, Y is the output vector, W is the weight matrix, and B is the bias vector. represents matrix multiplication; using a one-dimensional convolution layer of a temporal encoder to perform one-dimensional convolution encoding on the input vector according to the following formula to extract a high-dimensional implicit correlation feature of the correlation between the eigenvalues ​​at each position in the input vector, wherein the formula is:

[0040]

[0041] Among them, a is the width of the convolution kernel in the x direction, F is the convolution kernel parameter vector, G is the local vector matrix operated with the convolution kernel function, and w is the size of the convolution kernel.

[0042] In the above-mentioned bare metal vxlan deployment system, the first convolution unit is further used for: each layer of the first convolutional neural network performs convolution processing based on a two-dimensional convolution kernel, pooling processing along the channel dimension and activation processing on the input data in the forward pass of the layer so as to output the first feature matrix by the last layer of the first convolutional neural network, wherein the input of the first layer of the first convolutional neural network is the topological matrix.

[0043] In the above-mentioned bare metal vxlan deployment system, the context encoding unit is further used to: use the embedding layer of the context encoder model including the embedding layer to convert the traffic data of each of the source ports at each time point into an input vector to obtain a sequence of input vectors; and use the converter of the context-based encoder model to perform global context semantic encoding on the sequence of input vectors to obtain the multiple feature vectors.

[0044] In the above-mentioned bare metal vxlan deployment system, the class probability joint correlation vector generation unit is further used to: calculate the class probability joint correlation vector between the first feature vector and the third feature matrix according to the following formula;

[0045] Wherein, the formula is:

[0046]

[0047] Where V1 is the first eigenvector, M3 is the third eigenmatrix, represents the multiplication of a vector and a matrix, ⊙ represents the dot product of a vector and a value, that is, each position of the vector is multiplied by the value, and ‖M3‖ F represents the Frobenius norm of the third characteristic matrix, that is, the square root of the sum of the squares of the absolute values ​​of the eigenvalues ​​of the third characteristic matrix.

[0048] In the above bare metal vxlan deployment system, the classification unit is further used to: use the classifier to process the class probability joint correlation vector using the following formula to obtain the classification result; wherein the formula is: softmax{(W n ,B n ):…:(W1,B1)|X}, where W1 to W n is the weight matrix, B1 to Bn is the bias vector, and X is the class probability joint correlation vector.

[0049] According to another aspect of the present application, an electronic device is provided, comprising: a processor; and a memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the bare metal vxlan deployment method as described above.

[0050] According to yet another aspect of the present application, a computer-readable medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the bare metal vxlan deployment method as described above.

[0051] Compared with the prior art, the bare metal vxlan deployment method, system and electronic device provided by the present application extract the implicit correlation features of computing resource data in the time dimension and data dimension through a timing encoder, and use a graph neural network to fuse the topological structure features of the source port and the correlation features between the traffic data at each time point, and further use the timing features of the computing resources to search the feature space for the low-dimensional feature joint expression of the logical link and the logical node, and use the timing features to constrain the low-rank expression of the low-dimensional feature joint expression, so as to realize the joint projection of the feature vector and the feature matrix in the high-dimensional feature space through the class representation of the joint correlation in the space of the feature vector and the feature matrix, so as to obtain the alignment of the feature distribution of the timing features and the logical joint features in the high-dimensional feature space, that is, the representation vector of the degree of feature adaptation. In this way, the rationality of the current virtual machine deployment can be judged. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0053] Figure 1 It is a flowchart of a method for deploying bare metal vxlan according to an embodiment of the present application;

[0054] Figure 2 A schematic diagram of the system architecture of a method for deploying bare metal vxlan according to an embodiment of the present application;

[0055] Figure 3 A block diagram of a bare metal vxlan deployment system according to an embodiment of the present application;

[0056] Figure 4 is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0057] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0058] Scenario Overview

[0059] As mentioned above, with the rapid development of Internet services, network equipment as infrastructure, its rapid deployment and reduced investment have become the main factors of demand. Cloud computing can provide available, convenient, on-demand resources, becoming a regular form of current enterprise network construction, and virtualization, which is widely adopted and deployed in cloud computing, has almost become a basic technical model. Deploying virtual machines requires unlimited migration to the target physical location in the network. The rapid growth of virtualization and virtual migration have become a normal business. Traditional networks can no longer meet such needs of enterprises.

[0060] Therefore, in order to enable the virtual machine resources deployed on the bare metal to meet the requirements of the required computing resources to ensure the stability and availability of cloud computing, a bare metal vxlan deployment solution is desired.

[0061] At present, deep learning and neural networks have been widely used in computer vision, natural language processing, speech signal processing and other fields. In addition, deep learning and neural networks have also shown a level close to or even beyond that of humans in image classification, object detection, semantic segmentation, text translation and other fields.

[0062] The development of deep learning and neural networks provides new solutions and solutions for the deployment of bare metal VXLAN.

[0063] Accordingly, in the technical solution of the present application, when deploying bare metal vxlan, it is expected to obtain the timing characteristics of computing resources and the logical characteristics of the current virtual machine deployment, which can be achieved by using the feature extractor and timing encoder of the deep neural network, and it is hoped to make appropriate feature expressions of the degree of correlation between the timing characteristics of the required computing resources and the logical characteristics of the current virtual machine deployment, so as to determine whether the two are compatible with each other. In essence, this is a classification problem, that is, the rationality of the current virtual machine deployment solution is classified and judged based on the computing resource data in the UDP message at multiple time points and the traffic data and topology data of each source port at each time point in multiple time points.

[0064] Based on this, in the technical solution of the present application, considering how many virtual machine resources are deployed on the bare metal, it is necessary to consider the demand for computing in the time dimension, that is, to obtain UDP message data at multiple time points, and also considering that the key to its acquisition is how many computing resources are needed, the computing resource data is extracted from the UDP message data at multiple time points. The computing resource data in the UDP message data at the multiple time points is further passed through a time series encoder to extract the implicit correlation features of the computing resource data at the multiple time points in the time dimension and the data dimension, thereby obtaining a first feature vector.

[0065] Next, the topology matrix of the source port of the existing virtual machine deployment solution is obtained, where the value of each position on the non-diagonal line in the topology matrix is ​​the logical link flow between the corresponding source ports, and the value of each position on the diagonal line is zero. Then, the topology matrix is ​​passed through the first convolutional neural network to extract the topology association feature information of the source port, thereby obtaining the first feature matrix.

[0066] Furthermore, the flow data of each source port at each time point is obtained, and then the flow data of each source port at each time point is passed through a context-based encoder model to obtain multiple feature vectors with global correlation feature information, and the multiple feature vectors are cascaded to obtain the flow feature vector corresponding to each time point. In this way, the feature vectors of each time point can be arranged in two dimensions and passed through a second convolutional neural network to obtain a second feature matrix.

[0067] Then, the first feature matrix and the second feature matrix are processed through a graph neural network to fuse the first feature matrix and the second feature matrix to obtain a third feature matrix. Here, the graph neural network generates a matrix representation containing irregular topological features and high-dimensional traffic correlation features through learnable neural network parameters.

[0068] Furthermore, when deploying bare metal vxlan, it is expected to be able to appropriately express the degree of correlation between the timing characteristics of the required computing resources and the logical characteristics of the current virtual machine deployment, so as to determine whether the two are compatible with each other.

[0069] Therefore, the class probability joint correlation vector V2 between the first eigenvector and the third eigenmatrix is ​​calculated, which is expressed as:

[0070]

[0071] in represents the multiplication of a vector and a matrix, ⊙ represents the dot product of a vector and a value, that is, each position of the vector is multiplied by the value, and ‖M3‖ FIt represents the Frobenius norm of the third characteristic matrix, that is, the square root of the sum of the squares of the absolute values ​​of the eigenvalues ​​of the third characteristic matrix.

[0072] The calculation process is to divide the eigenvalue of each position of the numerator vector by the eigenvalue of each position of the denominator vector, and then use it as the exponent of the natural function to obtain the eigenvalue of each position of V2.

[0073] Then, the class probability is combined with the related vector V2 through the classifier to obtain the classification result.

[0074] In this way, through the class probability joint correlation vector between the first eigenvector and the third eigenmatrix, feature space searching can be performed on the low-dimensional feature joint expression of the logical link and the logical node with the timing characteristics of the computing resources, and the low-rank expression of the low-dimensional feature joint expression can be constrained with the timing characteristics, so as to realize the joint projection of the eigenvector and the feature matrix in the high-dimensional feature space through the class representation of the joint correlation in the space of the eigenvector and the feature matrix, so as to obtain the alignment of the feature distribution of the timing features and the logical joint features in the high-dimensional feature space, that is, the representation vector of the feature adaptation degree.

[0075] Based on this, the present application proposes a bare metal vxlan deployment method, which includes: obtaining UDP message data at multiple time points, and extracting computing resource data from the UDP message data at the multiple time points respectively; passing the computing resource data at the multiple time points through a temporal encoder including a one-dimensional convolutional layer and a fully connected layer to obtain a first feature vector; obtaining a topological matrix of the source port in the current virtual machine deployment scheme, wherein the values ​​of each position on the non-diagonal line of the topological matrix are the logical link traffic between the corresponding source ports, and the values ​​of each position on the diagonal line of the topological feature are zero; passing the topological matrix through a first convolutional neural network to obtain a first feature matrix; obtaining the traffic data of each source port at each time point in the multiple time points; passing the traffic data of each source port at each time point through a context encoder model including an embedding layer to obtain multiple feature vectors, and cascading the multiple feature vectors to obtain a traffic feature vector corresponding to each time point; After two-dimensional arrangement into a feature matrix, a second convolutional neural network is used to obtain a second feature matrix; the first feature matrix and the second feature matrix are passed through a graph neural network to obtain a third feature matrix, wherein the graph neural network generates a matrix representation containing irregular topological features and high-dimensional traffic correlation features through learnable neural network parameters; the class probability joint correlation vector between the first feature vector and the third feature matrix is ​​calculated, the class probability joint correlation vector is the eigenvalue of each position of the numerator vector divided by the eigenvalue of each position of the denominator vector, and then used as the exponent of a natural function to obtain the eigenvalue of each position of the class probability joint correlation vector, the numerator vector is the first feature vector multiplied by the third feature matrix, and the denominator vector is the positional dot product of the Frobenius norm of the first feature vector and the third feature matrix; and the class probability joint correlation vector is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the current virtual machine deployment solution meets the preset requirements.

[0076] After introducing the basic principles of the present application, various non-limiting embodiments of the present application will be described in detail with reference to the accompanying drawings.

[0077] Exemplary Methods

[0078] Figure 1 The figure shows a flow chart of the bare metal vxlan deployment method. Figure 1As shown, according to the deployment method of bare metal vxlan of the embodiment of the present application, it includes: S110, obtaining UDP message data at multiple time points, and extracting computing resource data respectively from the UDP message data at the multiple time points; S120, passing the computing resource data at the multiple time points through a temporal encoder including a one-dimensional convolutional layer and a fully connected layer to obtain a first feature vector; S130, obtaining the topological matrix of the source port in the current virtual machine deployment scheme, the values ​​of each position on the non-diagonal line of the topological matrix are the logical link traffic between the corresponding source ports, and the values ​​of each position on the diagonal line of the topological feature are zero; S140, passing the topological matrix through a first convolutional neural network to obtain a first feature matrix; S150, obtaining the traffic data of each source port at each time point in the multiple time points; S160, passing the traffic data of each source port at each time point through a context encoder model including an embedding layer to obtain multiple feature vectors, and cascading the multiple feature vectors to obtain the traffic feature vector corresponding to each time point; S170, passing the each The traffic feature vectors at the time points are arranged in two dimensions into a feature matrix and then passed through a second convolutional neural network to obtain a second feature matrix; S180, the first feature matrix and the second feature matrix are passed through a graph neural network to obtain a third feature matrix, wherein the graph neural network generates a matrix representation containing irregular topological features and high-dimensional traffic correlation features through learnable neural network parameters; S190, the class probability joint correlation vector between the first feature vector and the third feature matrix is ​​calculated, the class probability joint correlation vector is the eigenvalue of each position of the numerator vector divided by the eigenvalue of each position of the denominator vector, and then the eigenvalue of each position of the class probability joint correlation vector is obtained as the exponent of a natural function, the numerator vector is the first feature vector multiplied by the third feature matrix, and the denominator vector is the positional dot product of the Frobenius norm of the first feature vector and the third feature matrix; and, S200, the class probability joint correlation vector is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether the current virtual machine deployment solution meets the preset requirements.

[0079] Figure 2 The figure shows a schematic diagram of the architecture of the deployment method of the bare metal vxlan according to the embodiment of the present application. Figure 2 As shown, in the network architecture of the bare metal vxlan deployment method, first, from the obtained UDP message data at the multiple time points (for example, Figure 2 1) respectively extracts computing resource data (for example, Figure 2 Then, the computing resource data at the multiple time points are passed through a temporal encoder including a one-dimensional convolutional layer and a fully connected layer (for example, Figure 2E1 as shown in FIG. 1 ) to obtain the first eigenvector (e.g., Figure 2 Then, the obtained topological matrix (for example, Figure 2 M1 as shown in FIG. 1 ) is passed through a first convolutional neural network (e.g., Figure 2 ) to obtain a first feature matrix (e.g., Figure 2 MF1 shown in the figure); then, the traffic data of each source port at each time point obtained (for example, Figure 2 Q) is passed through a context encoder model including an embedding layer (e.g., Figure 2 E2 as shown in FIG. 2 ) to obtain multiple feature vectors (for example, Figure 2 VF2 shown in FIG. 2 ), and concatenate the multiple feature vectors to obtain the flow feature vector corresponding to each time point (for example, Figure 2 Then, the flow feature vectors at each time point are arranged in two dimensions into a feature matrix (for example, Figure 2 ) and then passed through a second convolutional neural network (e.g., Figure 2 ) to obtain a second feature matrix (e.g., Figure 2 MF2 shown in FIG); then, the first feature matrix and the second feature matrix are passed through a graph neural network (for example, Figure 2 ) to obtain the third feature matrix (e.g., as Figure 2 MF3 shown in FIG); then, calculating the class probability joint correlation vector between the first feature vector and the third feature matrix (for example, Figure 2 and, finally, passing the class probabilities together with the associated vectors through a classifier (e.g., Figure 2 The circle S shown in FIG. 1 is used to obtain a classification result, where the classification result is used to indicate whether the current virtual machine deployment solution meets the preset requirements.

[0080] In step S110 and step S120, UDP message data at multiple time points are obtained, and computing resource data are respectively extracted from the UDP message data at the multiple time points, and the computing resource data at the multiple time points are passed through a timing encoder including a one-dimensional convolutional layer and a fully connected layer to obtain a first feature vector. As mentioned above, in the technical solution of the present application, when deploying a bare metal vxlan, it is expected to obtain the timing characteristics of the computing resources and the logical characteristics of the current virtual machine deployment, which can be achieved using a feature extractor and a timing encoder of a deep neural network, and it is hoped that the degree of correlation between the timing characteristics of the required computing resources and the logical characteristics of the current virtual machine deployment is appropriately expressed, so as to determine whether the two are mutually adapted. In essence, this is a classification problem, that is, the rationality of the current virtual machine deployment scheme is classified and judged based on the computing resource data in the UDP message at the multiple time points and the traffic data and topology data of each source port at each time point in the multiple time points.

[0081] It should be understood that considering how many virtual machine resources are deployed on a bare metal, it is necessary to consider the demand for computing power in the time dimension. Therefore, in the technical solution of the present application, first, the UDP message data at multiple time points is obtained, and considering that the key to obtaining is how many computing resources are needed, the computing resource data is extracted from the UDP message data at the multiple time points. Then, the computing resource data in the UDP message data at the multiple time points is further passed through a temporal encoder including a one-dimensional convolutional layer and a fully connected layer to extract the high-dimensional implicit correlation features of the computing resource data at the multiple time points in the time dimension and the data dimension, thereby obtaining the first feature vector.

[0082] Specifically, in an embodiment of the present application, the process of obtaining a first feature vector by passing the computing resource data of the multiple time points through a temporal encoder including a one-dimensional convolutional layer and a fully connected layer includes: first, arranging the computing resource data of the multiple time points into a one-dimensional input vector corresponding to each of the UDP message data according to the time dimension. Then, the fully connected layer of the temporal encoder is used to perform full connection encoding on the input vector using the following formula to extract the high-dimensional implicit features of the feature values ​​at each position in the input vector, wherein the formula is: Where X is the input vector, Y is the output vector, W is the weight matrix, and B is the bias vector. Represents matrix multiplication. Finally, the one-dimensional convolution layer of the temporal encoder is used to perform one-dimensional convolution encoding on the input vector using the following formula to extract the high-dimensional implicit correlation feature of the correlation between the eigenvalues ​​at each position in the input vector, wherein the formula is:

[0083]

[0084] Among them, a is the width of the convolution kernel in the x direction, F is the convolution kernel parameter vector, G is the local vector matrix operated with the convolution kernel function, and w is the size of the convolution kernel.

[0085] In step S130 and step S140, the topology matrix of the source port in the current virtual machine deployment scheme is obtained, the values ​​of each position on the non-diagonal line in the topology matrix are the logical link traffic between the corresponding source ports, the values ​​of each position on the diagonal line in the topology feature are zero, and the topology matrix is ​​passed through the first convolutional neural network to obtain the first feature matrix. It should be understood that in order to accurately judge the rationality of the current virtual machine deployment scheme, it is also necessary to obtain the logical characteristics of the current virtual machine deployment. That is, in the technical solution of the present application, the topology matrix of the source port in the current virtual machine deployment scheme is further obtained, and the virtual machine is deployed according to the topology matrix of the source port in the current virtual machine deployment scheme. Here, the values ​​of each position on the non-diagonal line in the topology matrix are the logical link traffic between the corresponding source ports, and the values ​​of each position on the diagonal line in the topology feature are zero. Then, the topology matrix is ​​processed through the first convolutional neural network to extract the topological structure feature information of each source port, thereby obtaining the first feature matrix.

[0086] Accordingly, in a specific example, each layer of the first convolutional neural network performs convolution processing based on a two-dimensional convolution kernel, pooling processing along the channel dimension, and activation processing on the input data in the forward pass of the layer so that the last layer of the first convolutional neural network outputs the first feature matrix, wherein the input of the first layer of the first convolutional neural network is the topological matrix.

[0087] In step S150 and step S160, the flow data of each of the source ports at each of the multiple time points is obtained, and the flow data of each of the source ports at each of the time points is passed through a context encoder model including an embedding layer to obtain multiple feature vectors, and the multiple feature vectors are cascaded to obtain the flow feature vectors corresponding to each time point. That is, in the technical solution of the present application, in order to classify and judge the rationality of the current virtual machine deployment solution, it is also necessary to obtain the flow data of each of the source ports at each of the multiple time points from the bare metal on which the virtual machine is deployed. Then, the flow data of each of the source ports at each of the time points is encoded through a context encoder model including an embedding layer to extract the high-dimensional implicit correlation feature information of the flow data of each of the source ports at each of the time points, thereby obtaining multiple feature vectors. In this way, the multiple feature vectors can be cascaded to obtain the flow feature vectors corresponding to each time point.

[0088] Specifically, in an embodiment of the present application, the process of obtaining a plurality of feature vectors by passing the flow data of each of the source ports at each time point through a context encoder model including an embedding layer includes: first, using the embedding layer of the context encoder model including an embedding layer, the flow data of each of the source ports at each time point are respectively converted into input vectors to obtain a sequence of input vectors. Then, using a converter of the context-based encoder model, the sequence of input vectors is semantically encoded based on global context to obtain the plurality of feature vectors. It should be understood that since the converter-based encoder model can encode the input vector based on context, the plurality of feature vectors obtained have global associated feature information of the flow data of each source port.

[0089] In step S170, the traffic feature vectors at each time point are arranged in two dimensions into a feature matrix and then passed through a second convolutional neural network to obtain a second feature matrix. That is, in the technical solution of the present application, after obtaining the traffic feature vectors at each time point, they are further arranged in two dimensions into a feature matrix to integrate the source port traffic data feature information at each time point, and then feature extraction is performed in the second convolutional neural network to obtain the second feature matrix.

[0090] In step S180, the first feature matrix and the second feature matrix are processed through a graph neural network to obtain a third feature matrix, wherein the graph neural network generates a matrix representation containing irregular topological features and high-dimensional flow correlation features through learnable neural network parameters. It should be understood that since the graph neural network can be used to process graph data in irregular non-Euclidean space, it is possible to extract the association information of the data sample due to feature information and irregular topological structure information. Therefore, in the technical solution of the present application, the first feature matrix and the second feature matrix are further processed through a graph neural network to obtain a third feature matrix. Here, the graph neural network generates a matrix representation containing irregular topological features and high-dimensional flow correlation features through learnable neural network parameters. In this way, the obtained third feature matrix can improve the accuracy of classification compared to the feature representation matrix obtained by directly splicing.

[0091] In step S190 and step S200, the class probability joint correlation vector between the first eigenvector and the third feature matrix is ​​calculated, and the class probability joint correlation vector is the eigenvalue of each position of the numerator vector divided by the eigenvalue of each position of the denominator vector, and then the eigenvalue of each position of the class probability joint correlation vector is obtained as the exponent of the natural function, the numerator vector is the first eigenvector multiplied by the third feature matrix, the denominator vector is the positional point multiplication of the Frobenius norm of the first eigenvector and the third feature matrix, and the class probability joint correlation vector is passed through the classifier to obtain a classification result, and the classification result is used to indicate whether the current virtual machine deployment scheme meets the preset requirements. It should be understood that when performing the deployment of bare metal vx l an, it is expected to be able to perform appropriate feature expression on the degree of association between the timing characteristics of the required computing resources and the logical characteristics of the current virtual machine deployment, so as to determine whether the two are mutually adapted. Therefore, in the technical solution of the present application, the class probability joint correlation vector V2 between the first eigenvector and the third feature matrix is ​​further calculated. Then, the class probability joint correlation vector is passed through a classifier to obtain a classification result indicating whether the current virtual machine deployment solution meets the preset requirements. Accordingly, in a specific example, the classifier is used to process the class probability joint correlation vector using the following formula to obtain the classification result; wherein the formula is: softmax{(W n ,B n ):…:(W1,B1)|X}, where W1 to W n is the weight matrix, B1 to B n is the bias vector, and X is the class probability joint correlation vector.

[0092] It should be understood that, through the class probability joint correlation vector between the first feature vector and the third feature matrix, feature space searching can be performed on the low-dimensional feature joint expression of logical links and logical nodes with the timing characteristics of computing resources, and the low-rank expression of the low-dimensional feature joint expression can be constrained with the timing characteristics, so as to realize the joint projection of the feature vector and the feature matrix in the high-dimensional feature space through the class representation of the joint correlation in the space of the feature vector and the feature matrix, so as to obtain the alignment of the feature distribution of the timing features and the logical joint features in the high-dimensional feature space, that is, the characterization vector of the feature adaptation degree, so as to improve the accuracy of the classification results.

[0093] Specifically, in the embodiment of the present application, the process of calculating the class probability joint correlation vector between the first eigenvector and the third eigenmatrix includes: calculating the class probability joint correlation vector between the first eigenvector and the third eigenmatrix according to the following formula;

[0094] Wherein, the formula is:

[0095]

[0096] Where V1 is the first eigenvector, M3 is the third eigenmatrix, represents the multiplication of a vector and a matrix, ⊙ represents the dot product of a vector and a value, that is, each position of the vector is multiplied by the value, and ‖M3‖ F represents the Frobenius norm of the third characteristic matrix, that is, the square root of the sum of the squares of the absolute values ​​of the eigenvalues ​​of the third characteristic matrix.

[0097] In summary, the deployment method of the bare metal vxlan of the embodiment of the present application is explained, which uses a timing encoder to extract the implicit correlation features of the computing resource data in the time dimension and the data dimension, and uses a graph neural network to fuse the topological structure features of the source port and the correlation features between the traffic data at each time point, and further uses the timing characteristics of the computing resources to search the feature space for the low-dimensional feature joint expression of the logical link and the logical node, and uses the timing characteristics to constrain the low-rank expression of the low-dimensional feature joint expression, so as to realize the joint projection of the feature vector and the feature matrix in the high-dimensional feature space through the class representation of the joint correlation in the space of the feature vector and the feature matrix, so as to obtain the alignment of the feature distribution of the timing features and the logical joint features in the high-dimensional feature space, that is, the characterization vector of the degree of feature adaptation. In this way, the rationality of the current virtual machine deployment can be judged.

[0098] Exemplary Systems

[0099] Figure 3 The block diagram of the deployment system of the bare metal vxlan according to the embodiment of the present application is illustrated. Figure 3As shown, according to the bare metal vxlan deployment system 400 of the embodiment of the present application, it includes: a computing resource data extraction unit 410, which is used to obtain UDP message data at multiple time points, and respectively extract computing resource data from the UDP message data at the multiple time points; a timing encoding unit 420, which is used to pass the computing resource data at the multiple time points obtained by the computing resource data extraction unit 410 through a timing encoder including a one-dimensional convolutional layer and a fully connected layer to obtain a first eigenvector; a topology matrix acquisition unit 430, which is used to obtain the topology matrix of the source port in the current virtual machine deployment scheme, the values ​​of each position on the non-diagonal line of the topology matrix are the logical link flows between the corresponding source ports, and the topology features The value of each position on the diagonal position of the feature is zero; the first convolution unit 440 is used to pass the topology matrix obtained by the topology matrix acquisition unit 430 through the first convolution neural network to obtain a first feature matrix; the traffic data acquisition unit 450 is used to obtain the traffic data of each source port at each time point in the multiple time points; the context encoding unit 460 is used to pass the traffic data of each source port at each time point obtained by the traffic data acquisition unit 450 through a context encoder model including an embedding layer to obtain multiple feature vectors, and cascade the multiple feature vectors to obtain the traffic feature vector corresponding to each time point; the second convolution unit 470 is used to encode the context The flow feature vectors of each time point obtained by the unit 460 are arranged in two dimensions into a feature matrix and then passed through a second convolutional neural network to obtain a second feature matrix; a graph neural network unit 480 is used to pass the first feature matrix obtained by the first convolution unit 440 and the second feature matrix obtained by the second convolution unit 470 through a graph neural network to obtain a third feature matrix, wherein the graph neural network generates a matrix representation containing irregular topological features and high-dimensional flow correlation features through learnable neural network parameters; a class probability joint correlation vector generation unit 490 is used to calculate the first feature vector obtained by the time series coding unit 420 and the third feature matrix obtained by the graph neural network unit 480. The class probability joint correlation vector between the feature matrices, the class probability joint correlation vector is obtained by dividing the eigenvalue of each position of the numerator vector by the eigenvalue of each position of the denominator vector, and then using it as the exponent of a natural function to obtain the eigenvalue of each position of the class probability joint correlation vector, the numerator vector is the first eigenvector multiplied by the third feature matrix, and the denominator vector is the positional dot product of the Frobenius norm of the first eigenvector and the third feature matrix; a classification unit 500, used to pass the class probability joint correlation vector obtained by the class probability joint correlation vector generation unit 490 through a classifier to obtain a classification result, and the classification result is used to indicate whether the current virtual machine deployment solution meets the preset requirements.

[0100] In one example, in the above-mentioned bare metal vxlan deployment system 400, the timing encoding unit 420 is further used to: arrange the computing resource data of the multiple time points according to the time dimension into a one-dimensional input vector corresponding to each of the UDP message data; use the fully connected layer of the timing encoder to fully connect the input vector using the following formula to extract the high-dimensional implicit features of the feature values ​​at each position in the input vector, wherein the formula is: Where X is the input vector, Y is the output vector, W is the weight matrix, and B is the bias vector. represents matrix multiplication; using a one-dimensional convolution layer of a temporal encoder to perform one-dimensional convolution encoding on the input vector according to the following formula to extract a high-dimensional implicit correlation feature of the correlation between the eigenvalues ​​at each position in the input vector, wherein the formula is:

[0101]

[0102] Among them, a is the width of the convolution kernel in the x direction, F is the convolution kernel parameter vector, G is the local vector matrix operated with the convolution kernel function, and w is the size of the convolution kernel.

[0103] In one example, in the above-mentioned bare metal vxlan deployment system 400, the first convolution unit 440 is further used for: each layer of the first convolutional neural network performs convolution processing based on a two-dimensional convolution kernel, pooling processing along the channel dimension and activation processing on the input data in the forward pass of the layer so that the last layer of the first convolutional neural network outputs the first feature matrix, wherein the input of the first layer of the first convolutional neural network is the topological matrix.

[0104] In one example, in the above-mentioned bare metal vxlan deployment system 400, the context encoding unit 460 is further used to: use the embedding layer of the context encoder model including the embedding layer to convert the traffic data of each of the source ports at each time point into an input vector to obtain a sequence of input vectors; and use the converter of the context-based encoder model to perform global context semantic encoding on the sequence of input vectors to obtain the multiple feature vectors.

[0105] In one example, in the above-mentioned bare metal vxlan deployment system 400, the class probability joint correlation vector generation unit 490 is further used to: calculate the class probability joint correlation vector between the first feature vector and the third feature matrix according to the following formula;

[0106] Wherein, the formula is:

[0107]

[0108] Where V1 is the first eigenvector, M3 is the third eigenmatrix, represents the multiplication of a vector and a matrix, ⊙ represents the dot product of a vector and a value, that is, each position of the vector is multiplied by the value, and ‖M3‖ F represents the Frobenius norm of the third characteristic matrix, that is, the square root of the sum of the squares of the absolute values ​​of the eigenvalues ​​of the third characteristic matrix.

[0109] In one example, in the above-mentioned bare metal vxlan deployment system 400, the classification unit 500 is further used to: use the classifier to process the class probability joint correlation vector using the following formula to obtain the classification result; wherein the formula is: softmax{(W n ,B n ):…:(W1,B1)|X}, where W1 to W n is the weight matrix, B1 to B n is the bias vector, and X is the class probability joint correlation vector.

[0110] Here, those skilled in the art will appreciate that the specific functions and operations of the various units and modules in the above bare metal vxlan deployment system 400 have been described in detail above. Figure 1 to Figure 2 The deployment method of bare metal vxlan is described in detail in the description, and therefore, its repeated description will be omitted.

[0111] As described above, the bare metal vxlan deployment system 400 according to the embodiment of the present application can be implemented in various terminal devices, such as a server of the bare metal vxlan deployment algorithm. In one example, the bare metal vxlan deployment system 400 according to the embodiment of the present application can be integrated into the terminal device as a software module and / or a hardware module. For example, the bare metal vxlan deployment system 400 can be a software module in the operating system of the terminal device, or it can be an application developed for the terminal device; of course, the bare metal vxlan deployment system 400 can also be one of the many hardware modules of the terminal device.

[0112] Alternatively, in another example, the bare metal vxlan deployment system 400 and the terminal device may also be separate devices, and the bare metal vxlan deployment system 400 may be connected to the terminal device via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.

[0113] Exemplary Electronic Devices

[0114] Below, reference Figure 4To describe the electronic device according to the embodiment of the present application. Figure 4 As shown, the electronic device 10 includes one or more processors 11 and a memory 12. The processor 11 may be a central processing unit (CPU) or other processing units having data processing capability and / or instruction execution capability, and may control other components in the electronic device 10 to perform desired functions.

[0115] The memory 12 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may run the program instructions to implement the functions of the bare metal vxlan deployment method of the various embodiments of the present application described above and / or other desired functions. Various contents such as a first feature matrix, a class probability joint correlation vector, etc. may also be stored in the computer-readable storage medium.

[0116] In one example, the electronic device 10 may further include: an input system 13 and an output system 14, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0117] The input system 13 may include, for example, a keyboard, a mouse, and the like.

[0118] The output system 14 can output various information to the outside, including classification results, etc. The output system 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0119] Of course, to simplify, Figure 4 Only some of the components related to the present application in the electronic device 10 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device 10 may also include any other appropriate components.

[0120] Exemplary computer program products and computer-readable storage media

[0121] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to perform the steps in the functions of the bare metal vxlan deployment method according to various embodiments of the present application described in the above "Exemplary Method" section of this specification.

[0122] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0123] In addition, an embodiment of the present application may also be a computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the processor executes the steps in the bare metal vxlan deployment method described in the above "Exemplary Method" section of this specification.

[0124] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, system or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0125] The basic principles of the present application are described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, effects, etc. mentioned in the present application are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. are required by each embodiment of the present application. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, not for limitation, and the above details do not limit the present application to being implemented by adopting the above specific details.

[0126] The block diagrams of the devices, apparatuses, equipment, and systems involved in this application are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The words "such as" used here refer to the phrase "such as but not limited to", and can be used interchangeably with them.

[0127] It should also be noted that in the apparatus, device and method of the present application, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present application.

[0128] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0129] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A bare metal vxlan deployment method, It is characterized in that include: Acquire UDP message data at multiple time points, and respectively extract computing resource data from the UDP message data at the multiple time points; Passing the computing resource data at the plurality of time points through a temporal encoder including a one-dimensional convolutional layer and a fully connected layer to obtain a first feature vector; Obtain a topology matrix of source ports in the current virtual machine deployment solution, wherein the value of each non-diagonal position in the topology matrix is ​​the logical link traffic between the corresponding source ports, and the value of each diagonal position in the topology matrix is ​​zero; Passing the topological matrix through a first convolutional neural network to obtain a first feature matrix; Acquire the flow data of each of the source ports at each time point in the multiple time points; Passing the flow data of each of the source ports at each time point through a context encoder model including an embedding layer to obtain a plurality of feature vectors, and cascading the plurality of feature vectors to obtain a flow feature vector corresponding to each time point; Arranging the flow feature vectors at each time point in two dimensions into a feature matrix and then passing it through a second convolutional neural network to obtain a second feature matrix; Passing the first feature matrix and the second feature matrix through a graph neural network to obtain a third feature matrix, wherein the graph neural network generates a matrix representation including irregular topological features and high-dimensional flow correlation features through learnable neural network parameters; Calculating a class probability joint correlation vector between the first eigenvector and the third eigenmatrix, wherein the class probability joint correlation vector is obtained by dividing the eigenvalue of each position of the numerator vector by the eigenvalue of each position of the denominator vector, and then using the result as an exponent of a natural function to obtain the eigenvalue of each position of the class probability joint correlation vector, wherein the numerator vector is the first eigenvector multiplied by the third eigenmatrix, and the denominator vector is the position-wise dot product of the Frobenius norm of the first eigenvector and the third eigenmatrix; and The class probability and the related vector are combined through a classifier to obtain a classification result, and the classification result is used to indicate whether the current virtual machine deployment solution meets the preset requirements.

2. The method for deploying bare metal vxlan according to claim 1, in, Passing the computing resource data at the plurality of time points through a temporal encoder including a one-dimensional convolutional layer and a fully connected layer to obtain a first feature vector includes: Arrange the computing resource data at the multiple time points into one-dimensional input vectors corresponding to the respective UDP message data according to the time dimension; The input vector is fully connected encoded using the fully connected layer of the temporal encoder according to the following formula to extract high-dimensional implicit features of the feature values ​​at each position in the input vector, wherein the formula is: Where X is the input vector, Y is the output vector, W is the weight matrix, and B is the bias vector. Represents matrix multiplication; The one-dimensional convolution layer of the temporal encoder is used to perform one-dimensional convolution encoding on the input vector according to the following formula to extract the high-dimensional implicit correlation feature of the correlation between the feature values ​​at each position in the input vector, wherein the formula is: Among them, a is the width of the convolution kernel in the x direction, F is the convolution kernel parameter vector, G is the local vector matrix operated with the convolution kernel function, and w is the size of the convolution kernel.

3. The method for deploying bare metal vxlan according to claim 2, in, Passing the topological matrix through a first convolutional neural network to obtain a first feature matrix includes: In the forward pass of the layer, each layer of the first convolutional neural network performs convolution processing based on a two-dimensional convolution kernel, pooling processing along the channel dimension, and activation processing on the input data so that the last layer of the first convolutional neural network outputs the first feature matrix, wherein the input of the first layer of the first convolutional neural network is the topological matrix.

4. The method for deploying bare metal vxlan according to claim 3, in, Passing the flow data of each of the source ports at each time point through a context encoder model including an embedding layer to obtain a plurality of feature vectors, including: Using an embedding layer based on a context encoder model, the flow data of each of the source ports at each time point is converted into an input vector to obtain a sequence of input vectors; and The converter based on the context encoder model is used to perform global context semantic encoding on the sequence of the input vectors to obtain the multiple feature vectors.

5. The method for deploying bare metal vxlan according to claim 4, in, Calculating a class probability joint correlation vector between the first feature vector and the third feature matrix includes: The class probability joint correlation vector between the first feature vector and the third feature matrix is ​​calculated by the following formula; Wherein, the formula is: Where V 1 is the first eigenvector, M 3 is the third characteristic matrix, represents the multiplication of a vector and a matrix, ⊙ represents the dot product of a vector and a value, that is, each position of the vector is multiplied by the value, and ||M 3 || F represents the Frobenius norm of the third characteristic matrix, that is, the square root of the sum of the squares of the absolute values ​​of the eigenvalues ​​of the third characteristic matrix.

6. The method for deploying bare metal vxlan according to claim 5, in, Passing the class probability and the associated vector together through a classifier to obtain a classification result includes: Using the classifier to process the class probability joint related vector according to the following formula to obtain the classification result; Wherein, the formula is: softmax{(W n ,B n ):…:(W 1 ,B 1 )|X}, where W 1 To W n is the weight matrix, B 1 To B n is the bias vector, and X is the class probability joint correlation vector.

7. A bare metal vxlan deployment system, It is characterized in that include: A computing resource data extraction unit, used to obtain UDP message data at multiple time points, and respectively extract computing resource data from the UDP message data at the multiple time points; a temporal encoding unit, configured to pass the computing resource data at the plurality of time points obtained by the computing resource data extraction unit through a temporal encoder including a one-dimensional convolutional layer and a fully connected layer to obtain a first feature vector; A topology matrix acquisition unit, used to acquire a topology matrix of a source port in a current virtual machine deployment solution, wherein the value of each non-diagonal position in the topology matrix is ​​the logical link flow between the corresponding source ports, and the value of each diagonal position in the topology matrix is ​​zero; A first convolution unit, configured to pass the topological matrix obtained by the topological matrix obtaining unit through a first convolutional neural network to obtain a first feature matrix; A flow data acquisition unit, used to acquire the flow data of each of the source ports at each time point in the multiple time points; A context encoding unit, configured to obtain a plurality of feature vectors by passing the flow data of each source port at each time point obtained by the flow data acquisition unit through a context encoder model including an embedding layer, and cascade the plurality of feature vectors to obtain a flow feature vector corresponding to each time point; A second convolution unit is used to arrange the traffic feature vectors at each time point obtained by the context encoding unit in two dimensions into a feature matrix and then pass it through a second convolutional neural network to obtain a second feature matrix; A graph neural network unit, configured to obtain a third feature matrix by passing the first feature matrix obtained by the first convolution unit and the second feature matrix obtained by the second convolution unit through a graph neural network, wherein the graph neural network generates a matrix representation containing irregular topological features and high-dimensional flow correlation features through learnable neural network parameters; A class probability joint correlation vector generating unit, used for calculating the class probability joint correlation vector between the first eigenvector obtained by the temporal coding unit and the third eigenmatrix obtained by the graph neural network unit, wherein the class probability joint correlation vector is obtained by dividing the eigenvalue of each position of the numerator vector by the eigenvalue of each position of the denominator vector, and then using the eigenvalue of each position of the class probability joint correlation vector as the exponent of a natural function, wherein the numerator vector is the first eigenvector multiplied by the third eigenmatrix, and the denominator vector is the positional point product of the Frobenius norm of the first eigenvector and the third eigenmatrix; The classification unit is used to pass the class probability joint correlation vector obtained by the class probability joint correlation vector generation unit through a classifier to obtain a classification result, and the classification result is used to indicate whether the current virtual machine deployment solution meets the preset requirements.

8. The bare metal vxlan deployment system according to claim 7, in, The timing coding unit is further used for: Arrange the computing resource data at the multiple time points according to the time dimension into a one-dimensional input vector corresponding to each of the UDP message data; use the fully connected layer of the temporal encoder to fully connect the input vector using the following formula to extract the high-dimensional implicit features of the feature values ​​at each position in the input vector, wherein the formula is: Where X is the input vector, Y is the output vector, W is the weight matrix, and B is the bias vector. represents matrix multiplication; using a one-dimensional convolution layer of a temporal encoder to perform one-dimensional convolution encoding on the input vector according to the following formula to extract a high-dimensional implicit correlation feature of the correlation between the eigenvalues ​​at each position in the input vector, wherein the formula is: Among them, a is the width of the convolution kernel in the x direction, F is the convolution kernel parameter vector, G is the local vector matrix operated with the convolution kernel function, and w is the size of the convolution kernel.

9. The bare metal vxlan deployment system according to claim 7, in, The context encoding unit is further used for: Using an embedding layer based on a context encoder model, the flow data of each of the source ports at each time point is converted into an input vector to obtain a sequence of input vectors; as well as The converter based on the context encoder model is used to perform global context semantic encoding on the sequence of the input vectors to obtain the multiple feature vectors.

10. An electronic device, include: processor; as well as A memory, in which computer program instructions are stored, and when the computer program instructions are executed by the processor, the processor executes the bare metal vxlan deployment method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Packet loss positioning method and device applied to VXLAN

    CN106341333A

  • Disaster recovery switching management system and method for production management platform

    CN114090333A