A network visualization method
By applying deep learning technology in network traffic monitoring to extract the essential semantic features of network traffic, it solves the problem of difficulty in detecting network traffic anomalies with traditional methods, achieves intelligent anomaly detection and visual display, and ensures the security and stability of the network. .
Patent Information
- Application Number
- CN202410241700.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-04
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-03-04
AI Technical Summary
Traditional methods are difficult to effectively extract the timing pattern characteristics of network traffic, which affects the accuracy and efficiency of anomaly detection, making it difficult to detect and handle network traffic anomalies in a timely manner.
Visual methods and deep learning-based image processing technology are used to perform image conversion and analysis on network traffic data, extract the essential semantic features of traffic in network traffic data, and perform intelligent anomaly detection and visual display through deep learning models.
It achieves accurate detection and visual display of network traffic anomalies, improves the decision-making efficiency of network administrators, and ensures the security and stability of the network.
Smart Images

Figure CN118199941B
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security, and more specifically, to a network visualization method. Background Art
[0002] With the popularization of the Internet and the improvement of the level of informatization, network security issues have become increasingly important. Network traffic is an important indicator of network operation, reflecting the usage and performance of the network. Network traffic anomaly refers to the phenomenon of sudden increase or decrease in network traffic, which may cause network congestion, service interruption or security threats. Specifically, network traffic anomaly may indicate unauthorized access, malicious attacks or system failures.
[0003] In order to timely discover and handle network traffic anomalies, it is necessary to effectively monitor, analyze and visualize network traffic. However, due to the high-dimensional, nonlinear, and dynamic characteristics of network traffic, traditional statistical methods are difficult to effectively extract the temporal pattern characteristics of network traffic, thus affecting the accuracy and efficiency of anomaly detection. Therefore, an optimized solution is expected. Summary of the invention
[0004] In view of this, the present application proposes a network visualization method, which can utilize visualization methods and deep learning-based image processing technology to perform image conversion and analysis on network traffic data, thereby extracting the essential semantic feature distribution of traffic in network traffic data, and based on this, realize intelligent anomaly detection and visualization display.
[0005] According to one aspect of the present application, a network visualization method is provided, which includes:
[0006] Obtaining a time series of network traffic values collected by a network traffic monitor;
[0007] Extracting the local time series characteristics of the network traffic value time series to obtain a sequence of network traffic local time series characteristic vectors;
[0008] Inputting the sequence of the local time series feature vectors of the network traffic into an essential feature extraction network to obtain an essential semantic feature vector of the network traffic time series;
[0009] Determining whether the network traffic is abnormal based on the network traffic time series essential semantic feature vector; and
[0010] Whether there is an abnormality in the network traffic is visually displayed.
[0011] In the above network visualization method, extracting the local time series characteristics of the network traffic value time series to obtain a sequence of network traffic local time series characteristic vectors includes:
[0012] Performing data preprocessing on the time series of the network traffic value to obtain a sequence of local time series of the network traffic;
[0013] Inputting each local time series of network traffic in the sequence of local time series of network traffic into a network traffic grayscale image converter to obtain a sequence of local time series grayscale images of network traffic;
[0014] Performing feature distribution correction on the sequence of local time-series grayscale images of network traffic to obtain a sequence of corrected local time-series grayscale images of network traffic; and
[0015] A deep learning network model is used to extract time series pattern features from the sequence of the corrected local time series grayscale images of the network traffic to obtain a sequence of local time series feature vectors of the network traffic.
[0016] In the above network visualization method, data preprocessing is performed on the time series of the network traffic value to obtain a sequence of local time series of the network traffic, including:
[0017] The time series of the network traffic value is segmented based on a predetermined time scale to obtain a sequence of local time series of the network traffic.
[0018] In the above-mentioned network visualization method, the deep learning network model is a network traffic timing pattern feature extractor based on a convolutional neural network model.
[0019] In the above network visualization method, a deep learning network model is used to extract time series pattern features from the sequence of the corrected local time series grayscale images of the network traffic to obtain a sequence of local time series feature vectors of the network traffic, including:
[0020] The sequence of the corrected network traffic local time series grayscale images is passed through the network traffic time series pattern feature extractor based on the convolutional neural network model to obtain the sequence of the network traffic local time series feature vectors.
[0021] In the above network visualization method, the sequence of the local time series feature vectors of the network traffic is input into the essential feature extraction network to obtain the network traffic time series essential semantic feature vector, including:
[0022] The sequence of the local time series feature vectors of the network traffic is processed by the following essential feature extraction formula to obtain the network traffic time series essential semantic feature vector; wherein the essential feature extraction formula is:
[0023]
[0024]
[0025] in, is the first in the sequence of local time series feature vectors of network traffic A local time series feature vector of network traffic, is the first in the sequence of local time series feature vectors of network traffic A local time series feature vector of network traffic, represents the 1-norm of the eigenvector, is the length of the sequence of the local time series feature vector of the network traffic -1, is the representation of the sequence of local time series feature vectors of the network traffic, represents the characteristic difference coefficient, represents the natural exponential function operation, represents the total number of feature difference coefficients, is the essential semantic feature vector of the network traffic timing.
[0026] In the above network visualization method, determining whether network traffic is abnormal based on the network traffic time series essential semantic feature vector includes:
[0027] The network traffic time series essential semantic feature vector is passed through a classifier-based monitor to obtain a monitoring result, and the monitoring result is used to indicate whether there is an abnormality in the network traffic.
[0028] In the above network visualization method, the network traffic time series essential semantic feature vector is passed through a classifier-based monitor to obtain a monitoring result, which is used to indicate whether the network traffic is abnormal, including:
[0029] Using the fully connected layer of the classifier-based monitor to fully connect encode the network traffic time series essential semantic feature vector to obtain an encoded classification feature vector; and
[0030] The encoded classification feature vector is input into the Softmax classification function of the classifier-based monitor to obtain the monitoring result.
[0031] In the above network visualization method, visually displaying whether the network traffic is abnormal includes:
[0032] Display the monitoring results and a sequence of local time-series grayscale graphs of network traffic.
[0033] In the present application, the time series of network traffic values collected by the network traffic monitor is first obtained, then the local time series characteristics of the network traffic value time series are extracted to obtain a sequence of network traffic local time series feature vectors, then the sequence of network traffic local time series feature vectors is input into an essential feature extraction network to obtain a network traffic time series essential semantic feature vector, then, based on the network traffic time series essential semantic feature vector, it is determined whether the network traffic is abnormal, and finally, whether the network traffic is abnormal is visualized. In this way, the security and stability of the network can be ensured.
[0034] Other features and aspects of the present application will become apparent from the following detailed description of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the present application and, together with the description, serve to explain the principles of the present application.
[0036] Figure 1 A flow chart of a network visualization method according to an embodiment of the present application is shown.
[0037] Figure 2 A schematic diagram showing the architecture of a network visualization method according to an embodiment of the present application is shown.
[0038] Figure 3 A flowchart of sub-step S120 of the network visualization method according to an embodiment of the present application is shown.
[0039] Figure 4 A block diagram of a network visualization system according to an embodiment of the present application is shown.
[0040] Figure 5 An application scenario diagram of a network visualization method according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0041] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work also fall within the scope of protection of the present application.
[0042] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0043] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0044] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.
[0045] In response to the above technical problems, the technical concept of this application is to use visualization methods and deep learning-based image processing technology to perform image conversion and analysis on network traffic data, thereby extracting the distribution of traffic essential semantic features in network traffic data, and based on this, to achieve intelligent anomaly detection and visualization display. In this way, network administrators can understand the situation of network traffic more intuitively, facilitate decision-making and management, and ensure the security and stability of the network.
[0046] Based on this, Figure 1 A flow chart of a network visualization method according to an embodiment of the present application is shown. Figure 2 FIG. 1 is a schematic diagram showing an architecture of a network visualization method according to an embodiment of the present application. Figure 1 and Figure 2 As shown, according to the network visualization method of the embodiment of the present application, the steps include: S110, obtaining the time series of network traffic values collected by the network traffic monitor; S120, extracting the local time series characteristics of the time series of the network traffic values to obtain a sequence of local time series feature vectors of the network traffic; S130, inputting the sequence of local time series feature vectors of the network traffic into the essential feature extraction network to obtain the network traffic time series essential semantic feature vector; S140, determining whether the network traffic is abnormal based on the network traffic time series essential semantic feature vector; and, S150, visually displaying whether the network traffic is abnormal.
[0047] It should be understood that in step S110, raw network traffic data is collected from a network traffic monitor to form a time series. Here, a network traffic monitor is a tool for collecting and analyzing network traffic data, which can be deployed at different locations in the network, such as routers, switches, or dedicated servers. A network traffic monitor can perform various functions, including: capturing each data packet flowing through the network and storing it for further analysis; analyzing network traffic to identify patterns, trends, and anomalies, which can help network administrators detect security threats, troubleshoot network problems, and optimize network performance. There are many types of network traffic monitors, each with its own unique characteristics and functions. The following are some common types of network traffic monitors: host-based traffic monitors: installed on a single host or server and monitor network traffic on the host; network-based traffic monitors: deployed in the network and monitor all traffic on the network; cloud-based traffic monitors: provided as a cloud service and monitor network traffic connected to the cloud. In step S120, local time series features, such as trends, periodicity, volatility, etc., are extracted from the raw network traffic time series to form a sequence of local time series feature vectors of network traffic. In step S130, an essential feature extraction network (such as a convolutional neural network or a recurrent neural network) is used to extract higher-level semantic features from local time series features to form a network traffic time series essential semantic feature vector. In step S140, based on the extracted essential semantic features, a classifier or anomaly detection algorithm can be used to determine whether the network traffic is abnormal. In step S150, the anomaly detection results are presented in a visual manner, such as highlighting abnormal traffic or providing a traffic distribution diagram, so as to intuitively understand the abnormal situation of network traffic.
[0048] Specifically, in the technical solution of the present application, first, a time series of network traffic values collected by a network traffic monitor is obtained. Among them, a network traffic monitor is a tool or device for monitoring network traffic, which can collect and record network traffic data in real time. Network traffic refers to the amount of data transmitted in a network, usually measured in units such as bits / second or packets / second. The time series of network traffic values refers to a sequence of network traffic values collected at different time points arranged in chronological order. By recording the changes in network traffic values over time, subsequent models can understand the network usage, performance status, and possible anomalies. It is worth mentioning that time series data helps to reveal the periodicity, trend, and sudden changes in network traffic, providing a basis for further analysis and processing.
[0049] Then, the time series of the network traffic value is segmented based on a predetermined time scale to obtain a sequence of local time series of network traffic. Here, the continuous time series data is divided into local time series with a certain time span by sequence segmentation, thereby obtaining a sequence of local time series of network traffic. In this way, the local characteristics and specific behavior patterns of network traffic data in a short-term serial port can be revealed, which helps to deeply understand the dynamic change law of network traffic.
[0050] Next, the local time series of each network flow in the sequence of local time series of the network flow is input into the network flow grayscale image converter to obtain a sequence of local time series grayscale images of the network flow. Among them, converting and mapping the local time series of each network flow into local time series grayscale images of each network flow can provide an intuitive visual representation. Specifically, mapping the time series data to the grayscale image space can convert complex numerical changes into intuitive image pixel changes, thereby converting the change patterns, trends and abnormal conditions in the time series data into texture, shape and other features in the grayscale image, reflecting the dynamic pattern characteristics of the network flow.
[0051] In an embodiment of the present application, the process of inputting the local time series of network traffic into the network traffic grayscale image converter to obtain the local time series grayscale image of network traffic includes: first deleting the Ethernet header, and the flag segments SYN, ACK, and FIN generated in the process of establishing or completing the connection. Because the physical link information in the Ethernet header has no specific meaning for the application identification or traffic classification task, at the same time, the flag segments SYN, ACK, and FIN are generated in the process of establishing or completing the connection. They are used for host name resolution and are generated in the process of accessing and establishing the connection. They are also irrelevant to traffic analysis. Next, since the header sizes of the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP) are different, the header length of TCP is generally 20 bytes, while that of UDP is 8 bytes. In order to make the transport layer segment length consistent, 0 is added to the end of the UDP segment header to make it equal to the length of the TCP segment header. Finally, through traffic cleaning, some other irrelevant content is deleted, such as some data packets have no application layer, so the final result folder is empty; and some fields used for domain name resolution, these irrelevant contents can be deleted. It should be understood that one byte is equal to 8 bits, and these 8 bits can be mapped to unsigned values from 0 to 255. For example, the binary number 10000101 can be converted to the decimal number 133. One byte represents one pixel, and the corresponding unsigned integer 0 represents black and 255 represents white. For example, a 784-byte file can be converted into a 28×28 grayscale image in the manner of one byte per pixel.
[0052] Subsequently, the sequence of the local time series grayscale images of the network traffic is passed through a network traffic time series pattern feature extractor based on a convolutional neural network model to obtain a sequence of local time series feature vectors of the network traffic. The convolutional neural network model has a multi-level convolution layer, which can extract the hidden patterns and change rules in each of the local grayscale images of the network traffic, thereby capturing the time series change characteristics of the traffic data within each local time span.
[0053] Accordingly, if Figure 3 As shown, in step S120, the local time series characteristics of the time series of the network traffic value are extracted to obtain a sequence of local time series feature vectors of the network traffic, including: S121, data preprocessing is performed on the time series of the network traffic value to obtain a sequence of local time series of the network traffic; S122, each local time series of the network traffic in the sequence of local time series of the network traffic is input into a network traffic grayscale image converter to obtain a sequence of local time series grayscale images of the network traffic; S123, feature distribution correction is performed on the sequence of local time series grayscale images of the network traffic to obtain a sequence of corrected local time series grayscale images of the network traffic; and, S124, time series pattern feature extraction is performed on the sequence of corrected local time series grayscale images of the network traffic using a deep learning network model to obtain a sequence of local time series feature vectors of the network traffic.
[0054] It should be understood that step S121 preprocesses the original network traffic time series, such as smoothing, normalization or sliding window segmentation, to extract local time series; step S122 converts each local time series into a grayscale image, in which the pixel value represents the traffic value, thereby forming a local time series grayscale map of the network traffic; step S123 corrects the difference in feature distribution in the grayscale map to enhance the robustness of subsequent feature extraction; step S124 uses a deep learning network (such as a convolutional neural network) to extract time series pattern features from the corrected grayscale image sequence, which can capture the local dynamic changes of the traffic.
[0055] Wherein, in step S121, data preprocessing is performed on the time series of the network traffic value to obtain a sequence of local time series of the network traffic, including: based on a predetermined time scale, the time series of the network traffic value is segmented to obtain a sequence of local time series of the network traffic. It is worth mentioning that when the time series of the network traffic value is preprocessed in step S121, the sequence segmentation is used to segment the time series into smaller local time series. This has several advantages: local time series can better capture local dynamic changes in traffic, such as trends, periodicity, and self-similarity; segmenting time series can reduce the data dimension input to subsequent feature extraction steps, thereby improving computational efficiency; local time series have less impact on noise and outliers, thereby enhancing the robustness of feature extraction; deep learning models usually require fixed-length inputs, and sequence segmentation can convert variable-length time series into fixed-length local time series. The predetermined time scale is used to determine the length of the local time series, which should be selected based on the characteristics of the traffic data and the expected duration of the anomaly type to be detected.
[0056] In step S124, the deep learning network model is a network traffic time series pattern feature extractor based on a convolutional neural network model. Specifically, the deep learning network model is used to extract time series pattern features from the sequence of corrected network traffic local time series grayscale images to obtain a sequence of network traffic local time series feature vectors, including: passing the sequence of corrected network traffic local time series grayscale images through the network traffic time series pattern feature extractor based on a convolutional neural network model to obtain a sequence of network traffic local time series feature vectors.
[0057] It is worth mentioning that convolutional neural network (CNN) is a deep learning model that is specifically designed to process data with grid-like structures, such as images and time series. The core component of a convolutional neural network is the convolution layer, which slides over the input data using a sliding window called a kernel or filter. The kernel is multiplied by the input data elements one by one, and the results are summed to produce a feature map. The pooling layer is used to reduce the spatial dimension of the feature map. Pooling operations (such as maximum pooling or average pooling) combine adjacent elements in the feature map into a single value, thereby reducing the resolution. After the convolution layer and the pooling layer, the convolutional neural network usually has one or more fully connected layers, which convert the extracted features into a fixed-length vector that can be used for classification or regression tasks. In network traffic temporal pattern feature extraction, the convolutional neural network-based model can: Extract local features: The convolutional layer of the convolutional neural network can extract local temporal features in the traffic grayscale image sequence, such as trends, periodicity, and self-similarity; Learn hierarchical features: The multi-layer structure of the convolutional neural network allows it to learn hierarchical features of traffic patterns, from low-level local features to high-level global features; Robustness: The convolutional neural network is robust to noise and outliers, which is very important for network traffic analysis because traffic data usually contains noise and anomalies; Scalability: The convolutional neural network can process input sequences of different lengths and resolutions, making it applicable to a variety of network traffic datasets. In summary, the convolutional neural network-based model is very suitable for extracting temporal pattern features from network traffic grayscale image sequences, thereby achieving accurate anomaly detection.
[0058] Considering that there may be repeated and redundant data in the time series of network traffic values collected by the network traffic monitor, these redundant data may be retained or even amplified in the above-mentioned feature extraction process, which will affect the accuracy of anomaly detection. Therefore, in order to reduce the impact of these redundant information on traffic analysis and anomaly detection, in the technical solution of the present application, the sequence of the local time series feature vectors of the network traffic is further input into the essential feature extraction network to capture the time series expression of the overall network traffic change characteristics, thereby obtaining the network traffic time series essential semantic feature vector. Specifically, the essential feature extraction network can automatically select and emphasize features that have a greater contribution to the task of identifying abnormal network traffic, while weakening or ignoring those redundant features. At the same time, the essential feature extraction network can help achieve data dimensionality reduction and compression while further extracting and learning the distribution of network traffic data time series features, thereby reducing the dimension and complexity of the data while retaining important information in the data.
[0059] Accordingly, in step S130, the sequence of the local time series feature vectors of the network traffic is input into the essential feature extraction network to obtain the network traffic time series essential semantic feature vector, including: processing the sequence of the local time series feature vectors of the network traffic with the following essential feature extraction formula to obtain the network traffic time series essential semantic feature vector; wherein the essential feature extraction formula is:
[0060]
[0061]
[0062] in, is the first in the sequence of local time series feature vectors of network traffic A local time series feature vector of network traffic, is the first in the sequence of local time series feature vectors of network traffic A local time series feature vector of network traffic, represents the 1-norm of the eigenvector, is the length of the sequence of the local time series feature vector of the network traffic -1, is the representation of the sequence of local time series feature vectors of the network traffic, represents the characteristic difference coefficient, represents the natural exponential function operation, represents the total number of feature difference coefficients, is the essential semantic feature vector of the network traffic timing.
[0063] Here, the 1-norm of a feature vector is the sum of the absolute values of its elements. The 1-norm is a measure of the sparsity of a vector, with sparse vectors having many zero elements, while dense vectors have many non-zero elements, and vectors with smaller 1-norm are considered to be sparser. The 1-norm has many applications in machine learning and signal processing, including: Sparse representation: The 1-norm minimization problem can be used to find sparse solutions where many elements of the solution vector are zero, which is useful in applications such as compressed sensing and feature selection. Robust regression: 1-norm regularization can be used to train regression models that are robust to outliers. This is useful when dealing with noisy or anomalous data. Feature selection: 1-norm regularization can be used to select features with high information content and discriminative power, which is useful in high-dimensional data analysis and classification tasks.
[0064] It is worth mentioning that the Essential Feature Extraction Network (EFEN) is a deep learning model used to extract essential features from data. Essential features are invariant and meaningful features in data that are essential for understanding and analyzing data. The Essential Feature Extraction Network uses a convolutional neural network (CNN) or other deep learning models as a feature extractor. The Essential Feature Extraction Network is able to extract essential features from data that are essential for understanding and analyzing data.
[0065] Furthermore, the network traffic time series essential semantic feature vector is passed through a classifier-based monitor to obtain a monitoring result, and the monitoring result is used to indicate whether there is an anomaly in the network traffic; and the monitoring result and the sequence of the local time series grayscale map of the network traffic are displayed. Among them, the classifier learns the boundaries between different categories (i.e., "there is an anomaly in the network traffic" and "there is no anomaly in the network traffic") during the training process, so that the network traffic time series essential semantic feature vector can be effectively classified into different categories. In this way, it is determined whether the detected network traffic data conforms to the normal mode, so as to identify potential abnormal traffic. In the actual application scenario of the present application, displaying the monitoring results and the sequence of the local time series grayscale map of the network traffic can promptly remind relevant technical personnel to take corresponding measures when encountering anomalies in network traffic to ensure the security of the network.
[0066] Accordingly, in step S140, based on the network traffic time series essential semantic feature vector, it is determined whether there is an anomaly in the network traffic, including: passing the network traffic time series essential semantic feature vector through a classifier-based monitor to obtain a monitoring result, and the monitoring result is used to indicate whether there is an anomaly in the network traffic.
[0067] Specifically, the network traffic timing essential semantic feature vector is passed through a classifier-based monitor to obtain a monitoring result, and the monitoring result is used to indicate whether there is an abnormality in the network traffic, including: using the fully connected layer of the classifier-based monitor to fully connect encode the network traffic timing essential semantic feature vector to obtain an encoded classification feature vector; and inputting the encoded classification feature vector into the Softmax classification function of the classifier-based monitor to obtain the monitoring result.
[0068] It should be understood that the role of the classifier is to use the given categories and known training data to learn classification rules and classifiers, and then classify (or predict) unknown data. Logistic regression, SVM, etc. are often used to solve binary classification problems. For multi-class classification problems, logistic regression or SVM can also be used, but multiple binary classifications are required to form a multi-classification, but this is prone to errors and inefficient. Commonly used multi-classification methods include the Softmax classification function.
[0069] Further, in step S150, whether the network traffic is abnormal is visualized, including: displaying the monitoring results and the sequence of the local time series grayscale map of the network traffic. In one example, the visualization of network traffic anomaly detection can take multiple forms, depending on the specific methods and tools used. The following are available visualization display methods: time series graph: the time series graph shows the changes in network traffic over time, which can help identify anomalies, such as a surge or drop in traffic, changes in traffic patterns, or outliers; heat map: the heat map shows the distribution of different features or events in network traffic, which can help identify patterns and trends, such as abnormal activities of a specific IP address or port; scatter plot: the scatter plot shows the relationship between two different features in network traffic, which can help identify correlations or outliers, such as the relationship between traffic size and duration; histogram: the histogram shows the distribution of different values in network traffic, which can help identify patterns and outliers, such as the distribution of a specific traffic type; radar map: the radar map shows the combination of multiple features in network traffic, which can help identify anomalies, such as changes in traffic patterns or feature distributions. Visual display is critical to network traffic anomaly detection because it enables network administrators to quickly and easily identify anomalies, such as traffic surges, pattern changes, or outliers. It can help network administrators understand the nature of the anomaly, such as whether the anomaly is caused by a specific IP address, port, or traffic type. It can help network administrators take corrective actions to resolve the anomaly, such as blocking malicious IP addresses or adjusting firewall rules. Overall, visual display is an important part of network traffic anomaly detection because it enables network administrators to easily identify, understand, and resolve anomalies.
[0070] In the technical solution of the present application, each local time series grayscale map of network traffic in the sequence of local time series grayscale maps of network traffic respectively expresses the local time domain grayscale features of the network traffic value in the local time domain determined from the global time domain through sequence segmentation. Therefore, considering the amplifying effect of grayscale image conversion on the time series distribution fluctuation, if the distribution integrity of the sequence of local time series grayscale maps of network traffic can be improved, the feature extraction effect of the sequence of local time series grayscale maps of network traffic through the network traffic time series pattern feature extractor based on the convolutional neural network model will also be improved, thereby improving the expression effect of the network traffic time series essential semantic feature vector obtained by inputting the sequence of network traffic local time series feature vectors into the essential feature extraction network.
[0071] Based on this, the applicant of the present application first converts each feature matrix in the sequence of local time-series grayscale graphs of network traffic into a square matrix through a linear transformation, and then corrects the sequence of local time-series grayscale graphs of network traffic based on the optimization of adjacent feature matrices, taking the feature matrix as a unit.
[0072] Accordingly, in one example, in step S123, the sequence of local time-series grayscale images of network traffic is subjected to feature distribution correction to obtain a sequence of corrected local time-series grayscale images of network traffic, including: performing feature distribution correction on the sequence of local time-series grayscale images of network traffic using the following correction formula to obtain a sequence of corrected local time-series grayscale images of network traffic; wherein the correction formula is:
[0073]
[0074] in, and are the first and feature matrix, and and They are the feature matrices and The global mean of represents the multiplication of feature maps, represents the transpose operation, It means point multiplication by position. is the first in the sequence of the corrected local time series grayscale graph of network traffic A feature matrix.
[0075] Here, by taking the center of the feature matrix of the sequence of local time series grayscale images of network traffic along the channel distribution as the seed point of the scene transfer in the channel dimension, each eigenvalue of the feature matrix of the sequence of local time series grayscale images of network traffic is robustly aggregated and sub-sampled through matrix multiplication, so that the distribution bounding box transfer directional constraints of adjacent feature matrices are performed on the basis of the participation of each eigenvalue of the feature matrix of the sequence of local time series grayscale images of network traffic, so as to improve the integrity of the feature representation of the sequence of local time series grayscale images of network traffic on the basis of the overall bottom-up context association along the channel dimension, thereby improving the feature extraction effect of the network traffic time series pattern feature extractor based on the convolutional neural network model, so as to improve the expression effect of the essential semantic feature vector of the network traffic time series, and improve the accuracy of the classification result obtained by the classifier.
[0076] In summary, the network visualization method according to the embodiment of the present application can ensure the security and stability of the network.
[0077] Figure 4 FIG. 1 is a block diagram of a network visualization system 100 according to an embodiment of the present application. Figure 4 As shown, according to the network visualization system 100 of the embodiment of the present application, it includes: a data acquisition module 110, which is used to obtain the time series of network traffic values collected by a network traffic monitor; a local time series feature extraction module 120, which is used to extract the local time series features of the time series of the network traffic values to obtain a sequence of local time series feature vectors of the network traffic; an essential feature extraction module 130, which is used to input the sequence of local time series feature vectors of the network traffic into an essential feature extraction network to obtain a network traffic time series essential semantic feature vector; an anomaly detection module 140, which is used to determine whether the network traffic is abnormal based on the network traffic time series essential semantic feature vector; and a visualization display module 150, which is used to visualize whether the network traffic is abnormal.
[0078] Here, those skilled in the art can understand that the specific functions and operations of the various units and modules in the above network visualization system 100 have been described in detail above. Figures 1 to 3 The network visualization method has been introduced in detail in the description of the network visualization method, and therefore, its repeated description will be omitted.
[0079] As described above, the network visualization system 100 according to the embodiment of the present application can be implemented in various wireless terminals, such as a server with a network visualization algorithm. In a possible implementation, the network visualization system 100 according to the embodiment of the present application can be integrated into the wireless terminal as a software module and / or a hardware module. For example, the network visualization system 100 can be a software module in the operating system of the wireless terminal, or can be an application developed for the wireless terminal; of course, the network visualization system 100 can also be one of the many hardware modules of the wireless terminal.
[0080] Alternatively, in another example, the network visualization system 100 and the wireless terminal may also be separate devices, and the network visualization system 100 may be connected to the wireless terminal via a wired and / or wireless network, and transmit interactive information in accordance with an agreed data format.
[0081] Figure 5 FIG. 1 shows an application scenario diagram of a network visualization method according to an embodiment of the present application. Figure 5 As shown, in this application scenario, first, a time series of network traffic values collected by a network traffic monitor is obtained (for example, Figure 5 Then, the time series of the network traffic value is input to a server (e.g., Figure 5 In S) as shown in , the server can use the network visualization algorithm to process the time series of the network traffic value to obtain a monitoring result indicating whether there is an abnormality in the network traffic.
[0082] In an exemplary embodiment, there is also provided a non-volatile computer-readable storage medium, such as a memory including computer program instructions, which can be executed by a processing component of an apparatus to perform the above method.
[0083] The present application may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.
[0084] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0085] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can also be executed in the opposite order sometimes, depending on the function involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be realized by a dedicated hardware-based system that performs the function or action of the specification, or can be realized by a combination of special-purpose hardware and computer instructions.
[0086] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A network visualization method, characterized in that: include: Obtaining a time series of network traffic values collected by a network traffic monitor; Extracting the local time series characteristics of the network traffic value time series to obtain a sequence of network traffic local time series characteristic vectors; Inputting the sequence of the local time series feature vectors of the network traffic into an essential feature extraction network to obtain an essential semantic feature vector of the network traffic time series; Determining whether network traffic is abnormal based on the network traffic time series essential semantic feature vector; as well as Visually display whether there is an abnormality in the network traffic; The process of extracting the local time series characteristics of the network traffic value time series to obtain a sequence of network traffic local time series characteristic vectors includes: Performing data preprocessing on the time series of the network traffic value to obtain a sequence of local time series of the network traffic; Inputting each local time series of network traffic in the sequence of local time series of network traffic into a network traffic grayscale image converter to obtain a sequence of local time series grayscale images of network traffic; Performing feature distribution correction on the sequence of local time-series grayscale images of network traffic to obtain a sequence of corrected local time-series grayscale images of network traffic; and Using a deep learning network model, extracting time series pattern features from the sequence of the corrected local time series grayscale images of the network traffic to obtain a sequence of local time series feature vectors of the network traffic; The method of inputting the sequence of the local time series feature vectors of the network traffic into an essential feature extraction network to obtain the network traffic time series essential semantic feature vector comprises: The sequence of the local time series feature vectors of the network traffic is processed by the following essential feature extraction formula to obtain the network traffic time series essential semantic feature vector; wherein the essential feature extraction formula is: in, is the first in the sequence of local time series feature vectors of network traffic A local time series feature vector of network traffic, is the first in the sequence of local time series feature vectors of network traffic A local time series feature vector of network traffic, represents the 1-norm of the eigenvector, is the length of the sequence of the local time series feature vector of the network traffic -1, is the representation of the sequence of local time series feature vectors of the network traffic, represents the characteristic difference coefficient, represents the natural exponential function operation, represents the total number of feature difference coefficients, is the essential semantic feature vector of the network traffic timing.
2. The network visualization method according to claim 1, characterized in that: Performing data preprocessing on the time series of the network traffic value to obtain a sequence of local time series of the network traffic, including: The time series of the network traffic value is segmented based on a predetermined time scale to obtain a sequence of local time series of the network traffic.
3. The network visualization method according to claim 2, characterized in that: The deep learning network model is a network traffic timing pattern feature extractor based on a convolutional neural network model.
4. The network visualization method according to claim 3, characterized in that: Using a deep learning network model to extract time series pattern features from the sequence of the corrected local time series grayscale images of the network traffic to obtain a sequence of local time series feature vectors of the network traffic, including: The sequence of the corrected network traffic local time series grayscale images is passed through the network traffic time series pattern feature extractor based on the convolutional neural network model to obtain the sequence of the network traffic local time series feature vectors.
5. The network visualization method according to claim 4, characterized in that: Based on the network traffic time series essential semantic feature vector, determining whether the network traffic is abnormal includes: The network traffic time series essential semantic feature vector is passed through a classifier-based monitor to obtain a monitoring result, and the monitoring result is used to indicate whether there is an abnormality in the network traffic.
6. The network visualization method according to claim 5, characterized in that: The network traffic time series essential semantic feature vector is passed through a classifier-based monitor to obtain a monitoring result, which is used to indicate whether the network traffic is abnormal, including: Using the fully connected layer of the classifier-based monitor to fully connect encode the network traffic time series essential semantic feature vector to obtain an encoded classification feature vector; and The encoded classification feature vector is input into the Softmax classification function of the classifier-based monitor to obtain the monitoring result.
7. The network visualization method according to claim 6, characterized in that: Visually display whether the network traffic is abnormal, including: Display the monitoring results and a sequence of local time-series grayscale graphs of network traffic.
