Anonymous traffic identification method and system based on single-class neural network

Through an anonymous traffic identification method and system based on a single classification neural network, the OC-GRU model is used to extract and classify traffic data, solving the accuracy and real-time problems of encrypted traffic classification in the existing technology, and achieving a more efficient Anonymous traffic identification and alerting capabilities.

CN114338077BActive Publication Date: 2024-10-01SHANDONG NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111385638.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-22
Publication Date
2024-10-01
Estimated Expiration
2041-11-22

AI Technical Summary

Technical Problem

The existing technology has low accuracy, high alarm rate, high false alarm rate, poor generalization ability, and poor real-time performance when classifying encrypted traffic, making it difficult to effectively identify anonymous traffic.

Method used

Adopt an anonymous traffic identification method and system based on a single classification neural network, use the OC-GRU model to extract and classify real-time monitored traffic data, identify anonymous traffic or normal traffic through the trained single classification neural network, and detect Alert on anonymous traffic.

Benefits of technology

It achieves higher identification accuracy, monitors and analyzes anonymous traffic in real time, and presents the results through situational awareness, providing convenience for traffic monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114338077B_ABST
    Figure CN114338077B_ABST
Patent Text Reader

Abstract

The present invention discloses an anonymous traffic identification method and system based on a single-classification neural network, including: obtaining real-time monitored traffic data; extracting features from the acquired traffic data; inputting the extracted features into a trained single-classification neural network to obtain an identification result of anonymous traffic or normal traffic. The present invention monitors traffic in real time to identify anonymous traffic, and can effectively monitor anonymous traffic. The present invention uses an OC‑GRU algorithm model to effectively capture the features of a single category, learn a scoring function, and output results. When anonymous traffic is detected, an alarm function is enabled to remind relevant personnel, and the results are presented in a situational awareness manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of anonymous traffic identification, and in particular to an anonymous traffic identification method and system based on a single-classification neural network. Background Art

[0002] The statements in this section merely mention background art related to the present invention and do not necessarily constitute prior art.

[0003] Since entering the information age, people's daily lives have become increasingly connected to the Internet. Behaviors on the Internet leave a lot of footprints, which can help service providers better understand user needs. However, more and more information leaks have made people begin to pay attention to privacy protection issues. Fortunately, software engineers have developed many network tools that provide anonymous services, such as crowd, Tarzan, Freenet, and Onion Router. The most famous of these is the Onion Browser, which provides encrypted anonymous network services. Any transaction has two sides, and the anonymity of encrypted network communications has also made it a breeding ground for crime, just like the dark web. The abuse of anonymous communications has brought huge challenges to network supervision. How to classify encrypted traffic more accurately and quickly has become an urgent problem that needs to be solved.

[0004] Traffic classification research has been a hot research field for nearly three centuries. In 2020, the vulnerability of communication applications was raised. Due to the rapid changes in Internet traffic and the high iteration of network technology, traditional rule-based methods, such as deep packet inspection and abnormal port detection, have low accuracy and high alarm rate. Machine learning is a widely used classification technology because it can automatically generalize modules from data sets. Due to the large traffic and complex structure of network data, the processing capacity of machine learning is often limited, and there are generally disadvantages such as high false alarm rate, poor generalization ability, and poor real-time performance. Summary of the invention

[0005] In order to solve the shortcomings of the prior art, the present invention provides an anonymous traffic identification method and system based on a single-classification neural network; real-time monitoring of traffic to identify anonymous traffic, with the functions of a traffic capture module, a traffic data processing module, an anonymous traffic detection module, a detection result alarm module, and a detection result presentation module, which can effectively monitor anonymous traffic.

[0006] In a first aspect, the present invention provides an anonymous traffic identification method based on a single-classification neural network;

[0007] Anonymous traffic identification method based on single-class neural network, including:

[0008] Get real-time monitoring traffic data;

[0009] Extract features from the acquired traffic data;

[0010] The extracted features are input into the trained single-classification neural network to obtain the identification results of anonymous traffic or normal traffic.

[0011] In a second aspect, the present invention provides an anonymous traffic identification system based on a single-classification neural network;

[0012] Anonymous traffic identification system based on single-class neural network, including:

[0013] An acquisition module is configured to: acquire real-time monitored traffic data;

[0014] A feature extraction module is configured to: extract features from the acquired traffic data;

[0015] The identification module is configured to: input the extracted features into the trained single-classification neural network to obtain the identification results of anonymous traffic or normal traffic.

[0016] In a third aspect, the present invention further provides an electronic device, comprising:

[0017] a memory for non-transitory storage of computer-readable instructions; and

[0018] a processor for executing the computer readable instructions,

[0019] When the computer-readable instructions are executed by the processor, the method described in the first aspect is executed.

[0020] In a fourth aspect, the present invention further provides a storage medium that non-temporarily stores computer-readable instructions, wherein when the non-temporary computer-readable instructions are executed by a computer, the instructions of the method described in the first aspect are executed.

[0021] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, wherein the computer program is used to implement the method described in the first aspect when running on one or more processors.

[0022] Compared with the prior art, the present invention has the following beneficial effects:

[0023] The present invention uses the OC-GRU single classification method to realize the function of anonymous traffic identification. After experiments, the accuracy of the algorithm exceeds that of OC-SVM, OC-NN and other models. The system implemented based on the algorithm monitors the traffic in real time through situational awareness. When anonymous traffic appears, it is identified, an alarm is issued and analyzed, which provides convenience for traffic monitoring.

[0024] The present invention monitors traffic in real time to identify anonymous traffic, and can effectively monitor anonymous traffic. The present invention uses the OC-GRU algorithm model to effectively capture the features of a single category, learn the scoring function, and output the results. When anonymous traffic is detected, the alarm function is enabled to remind relevant personnel, and the results are presented in a situation awareness manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0026] Figure 1 This is a flow chart of the method of embodiment 1. DETAILED DESCRIPTION

[0027] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0028] It should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0030] In this embodiment, all data is obtained in compliance with laws and regulations and based on the user's consent, and is used legally.

[0031] Embodiment 1

[0032] This embodiment provides an anonymous traffic identification method based on a single-classification neural network;

[0033] like Figure 1 As shown, the anonymous traffic identification method based on a single-classification neural network includes:

[0034] S101: Acquire real-time monitored traffic data;

[0035] S102: extracting features from the acquired traffic data;

[0036] S103: Input the extracted features into the trained single-classification neural network to obtain the recognition result of anonymous traffic or normal traffic.

[0037] Furthermore, the S101: obtains real-time monitored traffic data; captures network traffic in a network switch, and uses Winpcap software to extract messages in frames from the captured network traffic.

[0038] Furthermore, the S102: extracting features from the acquired traffic data; selecting features using feature engineering; the selected features specifically include: protocol name, number of bytes sent by the source host, and number of connections with the same target host in the first M connections.

[0039] It should be understood that each selected feature can describe each network connection in fine granularity and remove redundant features.

[0040] Furthermore, after said S102: extracting features from the acquired traffic data, and before said S103: inputting the extracted features into the trained single-classification neural network, the method further includes:

[0041] S102-3: Feature data cleaning, numerical processing, normalization processing and structural processing.

[0042] Furthermore, the single-classification neural network is an OC-GRU (One Class-Gate Recurrent Unit) model; the OC-GRU model includes: an input layer, a GRU layer and an output layer connected in sequence.

[0043] Furthermore, the training process of the trained single-class neural network includes:

[0044] Constructing a training set; wherein the training set includes traffic data with known traffic labels;

[0045] Input the training set into the OC-GRU model;

[0046] Use the alternating minimization algorithm to optimize the objective function. First, fix the parameter r, optimize M and V, use the back propagation algorithm, fix the parameters M and V again, optimize r, stop training, and obtain the trained single-classification neural network.

[0047] Furthermore, the objective function is expressed as:

[0048]

[0049] Among them, M represents the weight of the fully connected layer, V represents the weight of the GRU layer, and X n represents the input data, and h(·) is the activation function of GRU.

[0050] When the derivative of the above formula is 0, it is the minimum value, and the optimal solution is calculated as where h n Equal to M·h(VX n ). The final result is the decision score S of each input n To confirm, S n Equal to the difference between the output of the OC-GRU model and the parameter r, when S n When it is greater than or equal to 0, the input is judged to be normal traffic, otherwise it is judged to be anonymous traffic.

[0051] Furthermore, after the step S103: inputting the extracted features into the trained single-classification neural network to obtain the identification result of anonymous traffic or normal traffic, the step further includes:

[0052] S104: Alarm the anonymous traffic.

[0053] It should be understood that when anonymous traffic is detected, the alarm indicator light on the large screen of the visual display lights up, and at the same time the overall security status is evaluated, the corresponding traffic data is acquired and effective information is extracted.

[0054] It should be understood that the algorithm model using OC-GRU can effectively capture the characteristics of a single category, learn the scoring function, and output the results.

[0055] Furthermore, after the S104: alarming the anonymous traffic, the following steps may be further performed:

[0056] S105: Display the proportion, source and type of anonymous traffic.

[0057] It should be understood that through situational awareness and visualization, the large screen can be used to display the proportion of anonymous traffic in real-time traffic, the anonymous operating system from which the anonymous traffic comes, the type of anonymous traffic and its proportion.

[0058] Embodiment 2

[0059] This embodiment provides an anonymous traffic identification system based on a single-classification neural network;

[0060] Anonymous traffic identification system based on single-class neural network, including:

[0061] An acquisition module is configured to: acquire real-time monitored traffic data;

[0062] A feature extraction module is configured to: extract features from the acquired traffic data;

[0063] The identification module is configured to: input the extracted features into the trained single-classification neural network to obtain the identification results of anonymous traffic or normal traffic.

[0064] It should be noted that the acquisition module, feature extraction module and recognition module described above correspond to steps S101 to S103 in Embodiment 1, and the examples and application scenarios implemented by the modules and corresponding steps are the same, but are not limited to the contents disclosed in Embodiment 1. It should be noted that the modules described above as part of the system can be executed in a computer system such as a set of computer executable instructions.

[0065] The description of each embodiment in the above embodiments has different emphases. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0066] The proposed system can be implemented in other ways. For example, the system embodiment described above is only illustrative, and the division of the modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.

[0067] Embodiment 3

[0068] This embodiment also provides an electronic device, including: one or more processors, one or more memories, and one or more computer programs; wherein the processor is connected to the memory, and the one or more computer programs are stored in the memory. When the electronic device is running, the processor executes the one or more computer programs stored in the memory so that the electronic device executes the method described in the above embodiment one.

[0069] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0070] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0071] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software.

[0072] The method in the first embodiment can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.

[0073] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0074] Embodiment 4

[0075] This embodiment further provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the method described in the first embodiment is completed.

[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. An anonymous traffic identification method based on a single-classification neural network is characterized by: include: Get real-time monitoring traffic data; Extract features from the acquired traffic data; The extracted features are input into the trained single-classification neural network to obtain the recognition results of anonymous traffic or normal traffic; Feature extraction of the acquired traffic data is to select features using feature engineering; The selected features specifically include: protocol name, number of bytes sent by the source host, number of connections with the same destination host in the first M connections; After extracting features from the acquired traffic data, and before inputting the extracted features into the trained single-classification neural network, the method further includes: Feature data cleaning, numerical processing, normalization processing and structural processing; The single-classification neural network is an OC-GRU model; the OC-GRU model includes: an input layer, a GRU layer and an output layer connected in sequence; The training process of the trained single-class neural network includes: Constructing a training set; wherein the training set includes traffic data with known traffic labels; Input the training set into the OC-GRU model; Use the alternating minimization algorithm to optimize the objective function. First, fix the parameter r, optimize M and V, use the back propagation algorithm, fix the parameters M and V again, optimize r, stop training, and obtain the trained single-classification neural network. The objective function is expressed as: ; Among them, M represents the weight of the fully connected layer, V represents the weight of the GRU layer, Represents the input data, is the activation function of GRU; When the derivative of the above formula is 0, it is the minimum value, and the optimal solution is calculated as ,in equal ; The final result is the decision score of each input To confirm, is equal to the difference between the output of the OC-GRU model and the parameter r. When it is greater than or equal to 0, the input is judged to be normal traffic, otherwise it is judged to be anonymous traffic; After the extracted features are input into the trained single-classification neural network to obtain the identification result of anonymous traffic or normal traffic, the method further includes: alarming the anonymous traffic; After the anonymous traffic is alarmed, it also includes: displaying the proportion, source and type of anonymous traffic.

2. The anonymous traffic identification method based on a single-classification neural network as claimed in claim 1 is characterized in that: Obtain real-time monitoring traffic data; capture network traffic in the network switch, and use Winpcap software to extract frames from the captured network traffic.

3. An anonymous traffic identification system based on a single-classification neural network, based on the anonymous traffic identification method based on a single-classification neural network as described in any one of claims 1-2, characterized in that: include: An acquisition module is configured to: acquire real-time monitored traffic data; A feature extraction module is configured to: extract features from the acquired traffic data; The identification module is configured to: input the extracted features into the trained single-classification neural network to obtain the identification results of anonymous traffic or normal traffic.

4. An electronic device, comprising: a memory for non-transitory storage of computer readable instructions; as well as a processor for executing the computer readable instructions, When the computer-readable instructions are executed by the processor, the method described in any one of claims 1 to 2 is executed.

5. A storage medium, characterized in that: The computer-readable instructions are non-transitorily stored, wherein when the computer-readable instructions are executed by a computer, the instructions of the method according to any one of claims 1 to 2 are executed.