A method for detecting abnormal network traffic classification based on DBSCAN

The network traffic classification anomaly detection method that combines the DBSCAN algorithm and Mahalanobis distance solves the problems of low accuracy and imprecise feature extraction in the existing technology, achieves more accurate and efficient network traffic anomaly detection, and improves network resource management. and the quality of personalized service.

CN114398971BActive Publication Date: 2024-09-06BEIJING FULE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210018460.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-07
Publication Date
2024-09-06
Estimated Expiration
2042-01-07

AI Technical Summary

Technical Problem

Existing network traffic classification algorithms have problems such as low accuracy and loose application-layer traffic feature extraction, which leads to incorrect data classification that interferes with user behavior recognition and affects the accuracy of judgment.

Method used

Adopt a network traffic classification anomaly detection method based on DBSCAN, obtain network message information, extract network flow features, use the DBSCAN algorithm to detect and calculate feature dimension scores, determine abnormal data, and combine Mahalanobis distance and 3sigma models to improve detection accuracy and efficiency .

Benefits of technology

It improves the accuracy and efficiency of network traffic anomaly detection, ensures precise management of network resources and personalized services, and reduces misjudgments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114398971B
    Figure CN114398971B
Patent Text Reader

Abstract

The embodiments of the present disclosure provide a method, device, equipment and computer-readable storage medium for detecting network traffic classification anomalies based on DBSCAN. The method includes obtaining network message information; classifying the network message information and extracting network flow features from the classified network message information; detecting the network flow features through the DBSCAN algorithm to obtain normal network flow feature data; the normal network flow feature data includes existing network flow feature data and newly acquired network flow feature data; calculating the scores of the newly acquired network flow feature data under each feature dimension to determine whether the current network flow feature data is abnormal. In this way, the efficiency of detecting abnormal data is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure generally relate to the field of network traffic anomaly detection, and more specifically, to a method, apparatus, device, and computer-readable storage medium for detecting network traffic classification anomalies based on DBSCAN. Background Art

[0002] With the rapid development of the Internet, network traffic is increasing day by day, and a large number of new applications are constantly emerging. Each application carries a variety of services and functions, making the network environment extremely large, complex and changeable. In modern network management, the need for refined management of network traffic is driving the research and development of network traffic classification technology. Network traffic classification technology can classify network traffic according to application type, which is of great significance to network management, resource allocation, on-demand services, security systems and network-related research. Through the fine classification and identification of network traffic, it can play a good role in accurately managing network resources, effectively reusing resources and providing personalized services. Therefore, how to accurately classify network traffic and improve network resource reuse and personalized services is a major challenge.

[0003] At present, there are many algorithms that use various identification technologies to classify network traffic, among which deep learning and machine learning algorithms are becoming more and more widely used. However, this also brings with it the problem of low algorithm accuracy or imprecise extraction of application layer traffic fingerprint features. Furthermore, if the classified data is applied to user behavior recognition, then incorrect data classification will interfere with the readiness of behavior recognition and lead to wrong judgments. Summary of the invention

[0004] According to an embodiment of the present disclosure, a DBSCAN-based network traffic classification anomaly detection solution is provided.

[0005] In a first aspect of the present disclosure, a method for detecting network traffic classification anomalies based on DBSCAN is provided. The method comprises:

[0006] Get network message information;

[0007] Classifying the network message information, and extracting network flow features from the classified network message information;

[0008] The network flow characteristics are detected by using a DBSCAN algorithm to obtain normal network flow characteristic data; the normal network flow characteristic data includes existing network flow characteristic data and newly acquired network flow characteristic data;

[0009] Calculate the scores of the newly acquired network flow feature data in each feature dimension to determine whether the current network flow feature data is abnormal.

[0010] Furthermore, the classifying the network message information and extracting network flow features from the classified network message information includes:

[0011] Classifying the network message information into five-tuples to obtain a first group;

[0012] Classify the first group according to a preset rule to obtain a second group;

[0013] According to the network protocols to which the second group belongs, network flow features in the second group are respectively extracted.

[0014] Furthermore, the network flow features are detected by the DBSCAN algorithm to obtain normal network flow feature data including:

[0015] Inputting the network flow characteristics into N prefabricated flow characteristic data tables; wherein N is a positive integer greater than 0;

[0016] The flow feature data table is subjected to multi-threaded detection by the DBSCAN algorithm to obtain normal network flow feature data.

[0017] Furthermore, the multi-thread detection of the flow feature data table by the DBSCAN algorithm to obtain normal network flow feature data includes:

[0018] Based on all the data in the flow feature data table, calculating the covariance matrix of the flow feature data table;

[0019] Based on the covariance matrix, respectively calculating the Mahalanobis distance between any two network flow features;

[0020] Based on the Mahalanobis distance between any two network flow features, the data in the flow feature data table is processed by the DBSCAN algorithm to obtain normal network flow feature data.

[0021] Further, the calculating of scores of the newly acquired network flow feature data in each feature dimension and determining whether the current network flow feature data is abnormal includes:

[0022] Summarizing the normal network flow feature data, and calculating the statistical distribution of each existing network flow feature data in different dimensions;

[0023] Based on the statistical distribution, calculating the scores of the newly acquired network flow feature data in each feature dimension;

[0024] The scores under the various feature dimensions are summed up, and the summed result is compared with a threshold to determine whether the current network flow feature data is abnormal.

[0025] Furthermore, the calculating of scores of the newly acquired network flow feature data in each feature dimension based on the statistical distribution includes:

[0026] If the statistical distribution conforms to the normal distribution, the scores of the newly acquired network flow feature data in each feature dimension are calculated using the 3sigma model.

[0027] Furthermore, the network flow characteristics include duration, number of data packets, size of data packets, payload size and / or time interval of data.

[0028] In a second aspect of the present disclosure, a device for detecting abnormal network traffic classification based on DBSCAN is provided. The device comprises:

[0029] An acquisition module, used to acquire network message information;

[0030] A classification module, used to classify the network message information and extract network flow features from the classified network message information;

[0031] A detection module, used to detect the network flow characteristics through the DBSCAN algorithm to obtain normal network flow characteristic data; the normal network flow characteristic data includes existing network flow characteristic data and newly acquired network flow characteristic data;

[0032] The judgment module is used to calculate the score of each newly acquired network flow feature data in each feature dimension and determine whether the current network flow feature data is abnormal.

[0033] In a third aspect of the present disclosure, an electronic device is provided, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, the method described above is implemented.

[0034] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.

[0035] The DBSCAN-based network traffic classification anomaly detection method provided in the embodiment of the present application obtains network message information; classifies the network message information, and extracts network flow features in the classified network message information; detects the network flow features through the DBSCAN algorithm to obtain normal network flow feature data; calculates the score of each normal network flow feature data in each feature dimension, determines whether the current network flow feature data is abnormal, and improves the detection efficiency of abnormal data.

[0036] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0038] Figure 1 A schematic diagram showing an exemplary operating environment in which embodiments of the present disclosure can be implemented;

[0039] Figure 2 A flow chart of a method for detecting network traffic classification anomalies based on DBSCAN according to an embodiment of the present disclosure is shown;

[0040] Figure 3 A block diagram of a device for detecting abnormal network traffic classification based on DBSCAN according to an embodiment of the present disclosure is shown;

[0041] Figure 4 A block diagram of an exemplary electronic device capable of implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0043] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0044] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the method for detecting anomalies in network traffic classification based on DBSCAN or an apparatus for detecting anomalies in network traffic classification based on DBSCAN of the present application can be applied.

[0045] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0046] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as model training applications, video recognition applications, web browser applications, social platform software, etc.

[0047] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0048] When the terminals 101, 102, and 103 are hardware, a video acquisition device may be installed thereon. The video acquisition device may be any device capable of acquiring video, such as a camera, a sensor, etc. A user may use the video acquisition device on the terminals 101, 102, and 103 to acquire video.

[0049] The server 105 may be a server that provides various services, such as a background server that processes data displayed on the terminal devices 101, 102, and 103. The background server may analyze the received data and feed back the processing results (such as detection results) to the terminal device.

[0050] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, multiple software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0051] It should be understood that Figure 1 The number of terminal devices, networks and servers in the above is only illustrative. According to the implementation requirements, there may be any number of terminal devices, networks and servers. In particular, when the target data does not need to be acquired remotely, the above system architecture may not include a network, but only include terminal devices or servers.

[0052] like Figure 2 , is a flow chart of a method for detecting abnormal network traffic classification based on DBSCAN according to an embodiment of the present application. Figure 2 It can be seen that the method for detecting abnormal network traffic classification based on DBSCAN in this embodiment includes the following steps:

[0053] S210, obtaining network message information.

[0054] In this embodiment, the execution subject (eg Figure 1 The server shown) can obtain network message information through wired or wireless connection.

[0055] Furthermore, the execution subject may obtain an electronic device (eg Figure 1 The network message information sent by the terminal device shown in the figure may also be the network message information pre-stored locally.

[0056] In some embodiments, the network message information is usually obtained through a network card.

[0057] S220, classify the network packet information, and extract network flow features from the classified network packet information.

[0058] In some embodiments, the acquired network message information needs to be first classified into five-tuples, that is, data with the same source IP address, source port, destination IP address, destination port and transport layer protocol are classified into one category to obtain a first category group;

[0059] Further, the first group is classified according to a preset rule to obtain a second group, and the classification result belongs to a specific network protocol;

[0060] Specifically, the preset rules include matching the seventh layer data in the network message according to regular rules; for example, .*baidu.com.*, for the seventh layer data in each packet, find out whether it contains the 9 consecutive characters of baidu.com. If so (the match is successful), it indicates that the packet is related to Baidu, and it can be judged that it is likely to belong to the Baidu app.

[0061] In some embodiments, according to the type of network protocol to which the second category group belongs, corresponding network flow characteristics (statistical values ​​extracted from the flow) are extracted from the second category group respectively; the network flow characteristics include duration, number of data packets, data packet size, payload size and / or time interval between data, etc.

[0062] S230, detecting the network flow characteristics through the DBSCAN algorithm to obtain normal network flow characteristic data.

[0063] In some embodiments, the network flow features are input into N prefabricated flow feature data tables; N is a positive integer greater than 0, such as 1000;

[0064] The flow feature data table is subjected to multi-thread detection by the DBSCAN algorithm to obtain normal network flow feature data, that is, each flow feature data table is used as a unit, and multi-threaded abnormal data detection is performed according to the DBSCAN abnormality detection method, and finally the correct flow is left;

[0065] The normal network flow feature data includes existing (already acquired) network flow feature data and newly acquired (latest acquired) network flow feature data.

[0066] In some embodiments, based on the data in the flow feature data table, a covariance matrix is ​​calculated;

[0067] According to the covariance matrix, the Mahalanobis distance between any two network flow features is calculated respectively, and the data in the flow feature data table is processed by the DBSCAN algorithm to obtain normal network flow feature data;

[0068] Among them, the Mahalanobis distance is not affected by the dimension. The so-called dimension refers to the statistical unit between the various features of a piece of data. The Mahalanobis distance between two pieces of data is independent of the measurement unit of the original data. The Mahalanobis distance between two pieces of data calculated by standardized data and centered data (that is, the difference between the original data and the mean) is the same. In addition, the Mahalanobis distance can also eliminate the interference of the correlation between variables. For example, a piece of information about height will bring about a piece of information about weight because the two are related.

[0069] Specifically, a distance threshold c and a minimum number minPts of data contained within the distance threshold are defined, the flow feature data table is traversed, the number of all feature data contained within the distance threshold c of each network flow feature data is calculated, and the data greater than minPts is defined as a core object, and the remaining data is defined as a non-core object;

[0070] Taking any core object as the starting point, if other core objects are included within the distance threshold c, density connection is performed; if other non-core objects exist, the other non-core objects are used as new starting points for expansion until no other non-core objects are included; the core objects included in the above process and the non-core objects included within the distance threshold c are defined as a cluster; all flow features in a cluster belong to the same category;

[0071] Furthermore, core objects that have not been clustered are selected and the above clustering operation is repeated until all network flow feature objects are assigned to one cluster. Clusters with less feature data (determined according to the actual application scenario) are filtered to obtain normal (correct) network flow feature data.

[0072] It should be noted that if the distance from the flow feature object to the nearest core object is greater than the distance threshold c, then the flow feature object will not belong to any cluster. In this case, this solution will directly filter out this flow feature data (misclassified flow).

[0073] S240, calculating the scores of the newly acquired network flow feature data in each feature dimension, and determining whether the current network flow feature data is abnormal.

[0074] In some embodiments, the normal network flow feature data is summarized to calculate the statistical distribution of each existing network flow feature data in different dimensions;

[0075] If the distributions are approximately normal distributions, they can be regarded as normal distributions in the present disclosure. The scores of the newly acquired network flow feature data in each feature dimension are calculated by the 3sigma model; the feature dimensions include size, quantity, etc. (single attribute).

[0076] Specifically, the size of the score is determined by the position of the specific eigenvalue in the normal distribution. The closer it is to the mean u of the random variable in the normal distribution, the higher the score. The final score is calculated based on the proportion of the numerical distribution in the data in the normal distribution.

[0077] Among them, the 3sigma principle is also known as the Laida criterion. Specifically, first assume that a set of test data contains only random errors, calculate and process the original data to obtain the standard deviation, and then determine an interval according to a certain probability. It is considered that the error exceeding this interval is an abnormal value. The probability of positive and negative 3sigma is 99.7%, and the probability of the value appearing outside the incentive average value 3sigma is p(|xu|3σ)=0.003, that is, the probability of the value being distributed in (μ-σ,μ+σ) is 0.6827; the probability of the value being distributed in (μ-2σ,μ+2σ) is 0.9545; the probability of the value being distributed in (μ-3σ,μ+3σ) is 0.9973; it can be obtained that the values ​​of normal values ​​are almost concentrated in the interval (μ-3σ,μ+3σ), and the probability of exceeding this range is less than 0.3%.

[0078] Furthermore, the values ​​of the newly acquired network flow feature data in each feature dimension are calculated and summed to obtain a final score for the network flow feature data. The final score is compared with a preset scoring threshold. If the final score is less than the scoring threshold, it is abnormal data. The scoring threshold can be set according to the actual application scenario.

[0079] According to the time threshold, the feature extraction of the next stage is triggered, and the above steps are repeated to determine whether each network flow feature in the second group is abnormal, and the adaptive update of feature calculation is maintained.

[0080] It should be noted that if the data does not completely conform to the normal distribution, it can be described by how many times the standard deviation is away from the mean.

[0081] According to the embodiments of the present disclosure, the following technical effects are achieved:

[0082] This paper combines the DBSCAN clustering algorithm in machine learning and applies it to the detection of abnormal data. The Mahalanobis distance is applied to the DBSCAN anomaly detection algorithm to improve the accuracy of discrimination; at the same time, in order to improve the efficiency of judgment, the bucketing idea of ​​massive data processing is used, so that the detection algorithm can fully utilize multi-core computing resources; the feature distribution is combined with the 3sigma model for fast flow feature judgment, which further improves the efficiency of calculation.

[0083] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present disclosure is not limited by the order of the actions described, because according to the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present disclosure.

[0084] The above is an introduction to the method embodiment. The following is a further explanation of the scheme disclosed in the present invention through an apparatus embodiment.

[0085] Figure 3 FIG. 3 is a block diagram of a device 300 for detecting abnormal network traffic classification based on DBSCAN according to an embodiment of the present disclosure. Figure 3 As shown, the device 300 includes:

[0086] The acquisition module 310 is used to acquire network message information;

[0087] A classification module 320, used to classify the network message information and extract network flow features from the classified network message information;

[0088] The detection module 330 is used to detect the network flow characteristics through the DBSCAN algorithm to obtain normal network flow characteristic data; the normal network flow characteristic data includes existing network flow characteristic data and newly acquired network flow characteristic data;

[0089] The judgment module 340 is used to calculate the scores of the newly acquired network flow feature data in each feature dimension to determine whether the current network flow feature data is abnormal.

[0090] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0091] Figure 4A schematic block diagram of an electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. As shown, the device 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 402 or loaded from a storage unit 408 into a random access memory (RAM) 403. In RAM 403, various programs and data required for the operation of the device 400 can also be stored. CPU 401, ROM 402 and RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0092] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0093] The processing unit 401 performs the various methods and processes described above, such as the method 200. For example, in some embodiments, the method 200 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the CPU 701, one or more steps of the method 200 described above may be performed. Alternatively, in other embodiments, the CPU 701 may be configured to perform the method 200 in any other suitable manner (e.g., by means of firmware).

[0094] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip systems (SOCs), load programmable logic devices (CPLDs), and the like.

[0095] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0096] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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), 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 foregoing.

[0097] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

[0098] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for detecting abnormal network traffic classification based on DBSCAN, It is characterized in that include: Get network message information; Classifying the network message information and extracting network flow features from the classified network message information, including: performing five-tuple classification on the network message information to obtain a first group; classifying the first group according to a preset rule to obtain a second group; and extracting network flow features from the second group according to the network protocol to which the second group belongs; The network flow characteristics are detected by the DBSCAN algorithm to obtain normal network flow characteristic data, and the normal network flow characteristic data includes existing network flow characteristic data and newly acquired network flow characteristic data; the network flow characteristics are detected by the DBSCAN algorithm to obtain normal network flow characteristic data, including: inputting the network flow characteristics into N prefabricated flow characteristic data tables; N is a positive integer greater than 0; performing multi-threaded detection on the flow characteristic data table by the DBSCAN algorithm to obtain normal network flow characteristic data; the flow characteristic data table is detected by the DBSCAN algorithm to obtain normal network flow characteristic data, including: based on all data in the flow characteristic data table, calculating the covariance matrix of the flow characteristic data table; based on the covariance matrix, respectively calculating the Mahalanobis distance between any two network flow characteristics; based on the Mahalanobis distance between any two network flow characteristics, processing the data in the flow characteristic data table by the DBSCAN algorithm to obtain normal network flow characteristic data; Calculate the scores of the newly acquired network flow feature data in each feature dimension to determine whether the current network flow feature data is abnormal, including: summarizing the normal network flow feature data, calculating the statistical distribution of each existing network flow feature data in different dimensions; based on the statistical distribution, calculate the scores of the newly acquired network flow feature data in each feature dimension; sum the scores in each feature dimension, compare the summed result with a threshold, and determine whether the current network flow feature data is abnormal.

2. The method according to claim 1, It is characterized in that The calculating the scores of the newly acquired network flow feature data in each feature dimension based on the statistical distribution includes: If the statistical distribution conforms to the normal distribution, the scores of the newly acquired network flow feature data in each feature dimension are calculated using the 3sigma model.

3. The method according to claim 2, It is characterized in that The network flow characteristics include duration, number of data packets, size of data packets, payload size and / or time interval of data.

4. A detection device for network traffic classification anomaly based on DBSCAN, It is characterized in that include: An acquisition module, used to acquire network message information; A classification module, used to classify the network message information and extract network flow features from the classified network message information, including: performing five-tuple classification on the network message information to obtain a first group; classifying the first group according to a preset rule to obtain a second group; and extracting network flow features from the second group according to the network protocol to which the second group belongs; A detection module, used to detect the network flow characteristics through the DBSCAN algorithm to obtain normal network flow characteristic data; the normal network flow characteristic data includes existing network flow characteristic data and newly acquired network flow characteristic data; the detection of the network flow characteristics through the DBSCAN algorithm to obtain normal network flow characteristic data includes: inputting the network flow characteristics into N prefabricated flow characteristic data tables; N is a positive integer greater than 0; performing multi-threaded detection on the flow characteristic data table through the DBSCAN algorithm to obtain normal network flow characteristic data; the multi-threaded detection of the flow characteristic data table through the DBSCAN algorithm to obtain normal network flow characteristic data includes: based on all data in the flow characteristic data table, calculating the covariance matrix of the flow characteristic data table; based on the covariance matrix, respectively calculating the Mahalanobis distance between any two network flow characteristics; based on the Mahalanobis distance between any two network flow characteristics, processing the data in the flow characteristic data table through the DBSCAN algorithm to obtain normal network flow characteristic data; The judgment module is used to calculate the scores of the newly acquired network flow feature data in each feature dimension and determine whether the current network flow feature data is abnormal, including: summarizing the normal network flow feature data and calculating the statistical distribution of each existing network flow feature data in different dimensions; based on the statistical distribution, calculating the scores of the newly acquired network flow feature data in each feature dimension; summing the scores in each feature dimension, comparing the summed result with a threshold, and determining whether the current network flow feature data is abnormal.

5. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory. It is characterized in that When the processor executes the program, the method according to any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.