Encrypted traffic identification method, device, computer equipment and medium integrating one-dimensional Inception structure and ET-BERT model

By fusing the one-dimensional Inception structure and the ET-BERT model, the local and global features of network traffic are extracted and integrated to generate encrypted traffic information, which solves the difficulty of identifying encrypted traffic in the existing technology and achieves rapid classification of encrypted traffic. and integration, improving recognition efficiency and accuracy.

CN116996447BActive Publication Date: 2024-10-01INNER MONGOLIA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311054761.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-22
Publication Date
2024-10-01
Estimated Expiration
2043-08-22

AI Technical Summary

Technical Problem

It is difficult for the existing technology to accurately identify and classify encrypted network traffic without decrypting the encrypted traffic, resulting in the inability to quickly obtain encrypted network traffic data.

Method used

Fusion of the one-dimensional Inception structure and ET-BERT model, by obtaining the characteristic information of network traffic, performs screening, short byte feature extraction, long byte feature extraction, captures local and global feature relationships, and inputs it into the fusion model to generate Encrypt traffic information.

Benefits of technology

It achieves rapid classification, identification and integration of encrypted traffic, improves the efficiency of network traffic management, avoids the decryption operation of encrypted traffic, and improves identification accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116996447B_ABST
    Figure CN116996447B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of encrypted traffic identification, and specifically discloses an encrypted traffic identification method that integrates a one-dimensional Inception structure and an ET-BERT model. The present invention preliminarily screens the network traffic when identifying the network traffic, and inputs the screened traffic information into the one-dimensional Inception structure for training to obtain local features of the network traffic, and at the same time inputs the screened traffic information into the ET-BERT model for training again to obtain global feature information of the network traffic, and then inputs the local features of the network traffic and the spliced ​​byte feature relationship information corresponding to the global feature information of the network traffic into the fusion model to obtain the spliced ​​byte feature fusion information, and then the network traffic can be quickly classified and identified through the local space feature model and the global space feature model, and the network traffic identified by the local space feature model and the global space feature model can be integrated through the fusion model, so that the entire network can be quickly classified and identified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of encrypted traffic identification technology, and in particular to an encrypted traffic identification method, device, computer equipment and medium integrating a one-dimensional Inception structure and an ET-BERT model. Background Art

[0002] In recent years, the rapid development of the Internet has led to a rapid increase in the amount and types of network traffic. Monitoring and classifying network traffic is of great significance in network service quality control and network resource usage planning. With the development of data privacy awareness, many websites have begun to use encryption to transmit data, which has brought certain obstacles to network traffic management.

[0003] As the complexity and diversity of encrypted traffic continues to increase, the difficulty of network detection systems in identifying traffic has increased dramatically. Therefore, without decrypting the encrypted traffic, it is difficult to accurately classify and identify the encrypted traffic, and it is impossible to quickly obtain encrypted network traffic data. Summary of the invention

[0004] The purpose of the present invention is to provide an encrypted traffic identification method, device, computer equipment and medium that integrate the one-dimensional Inception structure and the ET-BERT model to solve the technical problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solutions:

[0006] The encrypted traffic identification method that integrates the one-dimensional Inception structure and the ET-BERT model includes:

[0007] Acquire first characteristic information of network traffic, the first characteristic information including data packet domain name service segment information, address resolution protocol information and dynamic host configuration protocol information;

[0008] Screening the network traffic according to the first characteristic information to obtain screened traffic information;

[0009] The screened traffic information is subjected to short byte feature extraction through a one-dimensional Inception structure to obtain short byte feature information, and the short byte feature information is input into a local space feature model to obtain local feature information of network traffic;

[0010] The screened traffic information is subjected to long-byte feature extraction through the ET-BERT model to obtain long-byte feature information, and the long-byte feature information is input into the global spatial feature model to obtain global feature information of network traffic;

[0011] Capturing the relationship between the local characteristic information of the network traffic and the global characteristic information of the network traffic based on the mask to obtain the associated byte characteristic relationship information;

[0012] splicing the byte features in the local network traffic feature information and the global network traffic feature information according to the associated byte feature relationship information to obtain spliced ​​byte feature relationship information;

[0013] The spliced ​​byte feature relationship information is input into the fusion model to obtain the spliced ​​byte feature fusion information, and the spliced ​​byte feature relationship information is defined as encrypted traffic information.

[0014] Preferably, the step of screening the network traffic according to the first characteristic information to obtain the screened traffic information comprises:

[0015] Determining whether the network traffic includes domain name service segment information;

[0016] If included, the domain name service segment information in the network traffic is removed to obtain first removed traffic information;

[0017] If not included, the network traffic is defined as the first pending traffic information;

[0018] Merging the first eliminated flow information and the first pending flow information to obtain first merged flow information;

[0019] Determining whether the first merged traffic information includes address resolution protocol information;

[0020] If included, the address resolution protocol information in the first combined flow information is removed to obtain second removed flow information;

[0021] If not included, the first merged flow information is defined as the second pending flow information;

[0022] Merging the second eliminated flow information and the second pending flow information to obtain second merged flow information;

[0023] Determining whether the second merged traffic information includes dynamic host configuration protocol information;

[0024] If included, the dynamic host configuration protocol information in the second combined flow information is removed to obtain third removed flow information;

[0025] If not included, the second merged flow information is defined as the third pending flow information;

[0026] Merging the third eliminated flow information and the third pending flow information to obtain third merged flow information;

[0027] Extracting the data packet length information corresponding to the third combined flow information to obtain the data packet length byte;

[0028] Determining whether the bytes corresponding to the network traffic exceed a preset byte length according to the data packet length bytes;

[0029] If it exceeds, the data of the bytes corresponding to the network traffic are truncated to obtain truncated bytes;

[0030] If it does not exceed the limit, the byte data corresponding to the network traffic is defined as normal bytes;

[0031] The truncated bytes and normal bytes are classified and screened to obtain screened flow information.

[0032] Preferably, the step of extracting short byte features from the screened flow information through a one-dimensional Inception structure to obtain short byte feature information, and inputting the short byte feature information into a local space feature model to obtain local feature information of network flow includes:

[0033] Extracting time series features from the short byte feature information through a convolutional neural network;

[0034] Obtaining an average value of historical traffic characteristics of network traffic in a corresponding period according to the time series characteristics;

[0035] Obtaining a standard value of traffic characteristics corresponding to the network traffic in each time period according to the average value of the historical traffic characteristics;

[0036] Obtaining a traffic characteristic value of a current period corresponding to the network traffic;

[0037] The historical traffic characteristic average value, the traffic characteristic value of the current period and the traffic characteristic standard value are input into the local space characteristic model to obtain the local characteristic value of the network traffic, wherein the function of the local space characteristic model is:

[0038] ;

[0039] in, is the local characteristic value of network traffic, is the average value of historical traffic characteristics, is the standard value of flow characteristics, is the traffic characteristic value of the current period, k is the traffic characteristic sample value, and E is the network traffic characteristic deviation coefficient;

[0040] The information corresponding to the local characteristic value of the network traffic is calibrated as the local characteristic information of the network traffic.

[0041] Preferably, the step of extracting long byte features from the screened traffic information through an ET-BERT model to obtain long byte feature information, and inputting the long byte feature information into a global spatial feature model to obtain global feature information of network traffic includes:

[0042] Set up a start time window for the long sequence byte characteristics of traffic;

[0043] Based on the mask, the traffic transmission characteristics before and after the long byte characteristic information in the starting time window are captured to obtain the traffic transmission characteristic information before and after;

[0044] Obtaining a historical traffic transmission average value according to the previous and subsequent traffic transmission characteristic information;

[0045] Obtaining a traffic transmission standard value according to the historical traffic transmission average value;

[0046] Obtaining flow transmission sample information corresponding to the network flow, extracting the flow transmission sample information, and obtaining a flow transmission sample value;

[0047] The traffic transmission standard value, traffic transmission sample value and historical traffic transmission average value are input into the global space feature model to obtain the global feature value of network traffic, wherein the function of the global space feature model is:

[0048] ;

[0049] in, is the global characteristic value of network traffic, is the standard value for flow transmission, Transmit sample value for flow, It is the average value of historical traffic transmission;

[0050] The information corresponding to the network traffic global characteristic value is calibrated as network traffic global characteristic information.

[0051] Preferably, the step of inputting the spliced ​​byte feature relationship information into the fusion model to obtain the spliced ​​byte feature fusion information includes:

[0052] Obtaining local characteristic values ​​of network traffic corresponding to the concatenated byte characteristic relationship information;

[0053] Obtain the global characteristic value of network traffic corresponding to the concatenated byte characteristic relationship information;

[0054] The local feature value of the network traffic corresponding to the spliced ​​byte feature relationship information and the global feature value of the network traffic corresponding to the spliced ​​byte feature relationship information are input into the fusion model to obtain the spliced ​​byte feature fusion value, wherein the function of the fusion model is:

[0055] ;

[0056] Among them, Q is the concatenated byte feature fusion value, The local characteristic value of network traffic corresponding to the splicing byte characteristic relationship information, is the global characteristic value of network traffic corresponding to the concatenated byte characteristic relationship information, and i is the characteristic coefficient of network traffic within a specified time;

[0057] The information corresponding to the splicing byte feature fusion value is calibrated as splicing byte feature fusion information.

[0058] Preferably, before the step of obtaining the first characteristic information of the network traffic, the method further comprises:

[0059] Acquire network extraction flow information, analyze data corresponding to the network extraction flow information, and obtain analysis data information;

[0060] Parsing the ISCX VPN-nonVPN data set in the analysis data information at a data packet level to obtain parsed data information;

[0061] Processing the original PCAP file at a data packet level according to the parsed data information to obtain network data processing information;

[0062] The network data processing information is sliced ​​to obtain the sliced ​​network data information, and the sliced ​​network data information is defined as network traffic.

[0063] The present application also provides an encrypted traffic identification device integrating a one-dimensional Inception structure and an ET-BERT model, including:

[0064] An acquisition module, used to acquire first characteristic information of network traffic, wherein the first characteristic information includes domain name service segment information of a data packet, address resolution protocol information, and dynamic host configuration protocol information;

[0065] A screening module, used for screening the network traffic according to the first characteristic information to obtain screening traffic information;

[0066] The first processing block is used to extract short byte features from the screened traffic information through a one-dimensional Inception structure to obtain short byte feature information, and input the short byte feature information into a local space feature model to obtain local feature information of network traffic;

[0067] The second processing block is used to extract long-byte features from the screened traffic information through the ET-BERT model to obtain long-byte feature information, and input the long-byte feature information into the global spatial feature model to obtain global feature information of network traffic;

[0068] A capture module, which captures the relationship between the local characteristic information of the network traffic and the global characteristic information of the network traffic based on the mask to obtain the associated byte characteristic relationship information;

[0069] A splicing module, used for splicing the byte features in the local feature information of the network traffic and the global feature information of the network traffic according to the associated byte feature relationship information to obtain spliced ​​byte feature relationship information;

[0070] The fusion module is used to input the spliced ​​byte feature relationship information into the fusion model to obtain the spliced ​​byte feature fusion information, and define the spliced ​​byte feature relationship information as encrypted traffic information.

[0071] Preferably, the screening module comprises:

[0072] A first determination unit, configured to determine whether the network traffic includes domain name service segment information;

[0073] If included, the domain name service segment information in the network traffic is removed to obtain first removed traffic information;

[0074] If not included, the network traffic is defined as the first pending traffic information;

[0075] A first merging unit, configured to merge the first eliminated flow information and the first pending flow information to obtain first merged flow information;

[0076] A second determination unit, configured to determine whether the first combined traffic information includes address resolution protocol information;

[0077] If included, the address resolution protocol information in the first combined flow information is removed to obtain second removed flow information;

[0078] If not included, the first merged flow information is defined as the second pending flow information;

[0079] A second merging unit, configured to merge the second eliminated flow information and the second pending flow information to obtain second merged flow information;

[0080] A third determination unit, configured to determine whether the second combined traffic information includes dynamic host configuration protocol information;

[0081] If included, the dynamic host configuration protocol information in the second combined flow information is removed to obtain third removed flow information;

[0082] If not included, the second merged flow information is defined as the third pending flow information;

[0083] A third merging unit, configured to merge the third eliminated flow information and the third pending flow information to obtain third merged flow information;

[0084] A first extraction unit, configured to extract the data packet length information corresponding to the third combined flow information to obtain a data packet length byte;

[0085] A fourth determination unit, configured to determine whether the bytes corresponding to the network traffic exceed a preset byte length according to the length bytes of the data packet;

[0086] If it exceeds, the data of the bytes corresponding to the network traffic are truncated to obtain truncated bytes;

[0087] If it does not exceed the limit, the byte data corresponding to the network traffic is defined as normal bytes;

[0088] The screening unit is used to classify and screen the truncated bytes and normal bytes to obtain screening flow information.

[0089] The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0090] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above method are implemented.

[0091] The beneficial effects of the present application are as follows: when identifying network traffic, the present invention first screens out specific traffic corresponding to the address resolution protocol information and the dynamic host configuration protocol information of the data packet in the network traffic, so that the network traffic can be preliminarily screened, and then after the traffic screening, only the remaining traffic needs to be classified and identified, and the screened traffic information is input into a one-dimensional Inception structure for training, wherein the one-dimensional Inception structure is a convolutional neural network structure, which uses multiple parallel convolution branches, each branch has a convolution kernel of different sizes to capture the characteristics of short bytes of traffic, and each convolution branch contains A series of one-dimensional convolutional layers and pooling layers are connected in series to form a branch, and then the short byte features output by each branch are cascaded together to form the final short byte feature information, and then the short byte feature information is input into the local space feature model for training to obtain the local features of the network traffic, wherein the local space feature model can be a CNN (convolutional neural network), and at the same time, the screening traffic information is input into the ET-BERT model for training again, wherein the ET-BERT model is an encrypted traffic representation model, and the ET-BERT model extracts the long sequence bytes corresponding to the screening traffic information during the training process, and maps the network traffic to the long sequence bytes according to the long sequence bytes. The corresponding long bytes are inputted into the global spatial feature model to obtain the global feature information of the network traffic, wherein the global spatial feature model may be a transformer deep learning model, and the relationship between the local feature information of the network traffic and the global feature information of the network traffic is captured based on the mask to obtain the associated byte feature relationship information, and the byte features in the local feature information of the network traffic and the global feature information of the network traffic are spliced ​​according to the associated byte feature relationship information to obtain the spliced ​​byte feature relationship information, and the spliced ​​byte feature relationship information is inputted into the fusion model to obtain the spliced ​​byte feature fusion information, wherein the fusion model may be Taking the softmax function as an example, firstly, the byte features of the local feature information of the network traffic and the global feature information of the network traffic are input into the tanh activation function for nonlinear transformation, and two weight vector values ​​corresponding to the spliced ​​byte feature relationship information are obtained, and the two weight vector values ​​are input into the softmax function for fusion. The fused spliced ​​byte feature relationship information is defined as encrypted traffic information, and then the network traffic can be quickly classified and identified through the local space feature model and the global space feature model, and the network traffic identified by the local space feature model and the global space feature model can be integrated through the fusion model, so that the entire network can be quickly classified and identified. BRIEF DESCRIPTION OF THE DRAWINGS

[0092] Figure 1 A schematic diagram of a method flow chart of an embodiment of the present application.

[0093] Figure 2 A schematic diagram of the system structure of an embodiment of the present application.

[0094] Figure 3 A schematic diagram of the internal structure of a computer device according to an embodiment of the present application.

[0095] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0096] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0097] like Figure 1-3 As shown, the present application provides an encrypted traffic identification method integrating a one-dimensional Inception structure and an ET-BERT model, including:

[0098] S1. Acquire first characteristic information of network traffic, wherein the first characteristic information includes domain name service segment information, address resolution protocol information, and dynamic host configuration protocol information of the data packet;

[0099] S2. Screening the network traffic according to the first characteristic information to obtain screened traffic information;

[0100] S3, extracting short byte features from the screened traffic information through a one-dimensional Inception structure to obtain short byte feature information, and inputting the short byte feature information into a local space feature model to obtain local feature information of network traffic;

[0101] S4, extracting long byte features from the screened traffic information through the ET-BERT model to obtain long byte feature information, and inputting the long byte feature information into the global spatial feature model to obtain global feature information of network traffic;

[0102] S5. Capturing the relationship between the local characteristic information of the network traffic and the global characteristic information of the network traffic based on the mask to obtain associated byte characteristic relationship information;

[0103] S6. splicing the byte features in the local network traffic feature information and the global network traffic feature information according to the associated byte feature relationship information to obtain spliced ​​byte feature relationship information;

[0104] S7. Input the spliced ​​byte feature relationship information into a fusion model to obtain spliced ​​byte feature fusion information, and define the spliced ​​byte feature relationship information as encrypted traffic information.

[0105] As described in the above steps S1-S7, in recent years, the rapid development of the Internet has led to a rapid increase in the number and types of network traffic, resulting in the continuous improvement of the complexity and diversity of encrypted traffic, which has dramatically increased the difficulty of network detection systems in identifying traffic. Therefore, without decrypting the encrypted traffic, it is difficult to accurately classify and identify the encrypted traffic, and thus it is impossible to quickly obtain the encrypted network traffic data. The present invention, when identifying the network traffic, first screens out the specific traffic corresponding to the domain name service segment information, address resolution protocol information, and dynamic host configuration protocol information of the data packet in the network traffic, so that the network traffic can be preliminarily screened, and then after the traffic screening, only the remaining traffic needs to be classified and identified, and the screened traffic information is sent to the network detection system. The one-dimensional Inception structure is input for training, wherein the one-dimensional Inception structure is a convolutional neural network structure, which uses multiple parallel convolution branches, each branch has a convolution kernel of different sizes to capture the features of short bytes of traffic, and each convolution branch contains a series of one-dimensional convolution layers and pooling layers, which are connected in series to form a branch, and then the features of short bytes output by each branch are cascaded together to form the final short byte feature information, and then the short byte feature information is input into the local space feature model for training to obtain the local features of network traffic, wherein the local space feature model can be a CNN (convolutional neural network), and the screened traffic information is again The information is input into the ET-BERT model for training, wherein the ET-BERT model is an encrypted traffic characterization model. During the training process, the ET-BERT model extracts the long sequence bytes corresponding to the screened traffic information, and maps the long bytes corresponding to the network traffic according to the long sequence bytes, and inputs the long byte feature information into the global space feature model to obtain the global feature information of the network traffic, wherein the global space feature model can be a transformer deep learning model, which captures the relationship between the local feature information of the network traffic and the global feature information of the network traffic based on the mask to obtain the associated byte feature relationship information, and the local feature information of the network traffic and the global feature information are mapped according to the associated byte feature relationship information. The byte features in the global feature information of the network traffic are spliced ​​to obtain the spliced ​​byte feature relationship information, and the spliced ​​byte feature relationship information is input into the fusion model to obtain the spliced ​​byte feature fusion information, wherein the fusion model can be a softmax function, firstly, the byte features of the local feature information of the network traffic and the global feature information of the network traffic are input into the tanh activation function for nonlinear transformation, and two weight vector values ​​corresponding to the spliced ​​byte feature relationship information are obtained, and the two weight vector values ​​are input into the softmax function for fusion, and the fused spliced ​​byte feature relationship information is defined as encrypted traffic information, and then the network traffic can be quickly classified and identified through the local space feature model and the global space feature model.The fusion model can integrate the network traffic identified by the local spatial feature model and the global spatial feature model, so that the entire network can be quickly classified and identified.

[0106] In one embodiment, the step S2 of screening the network traffic according to the first characteristic information to obtain the screened traffic information includes:

[0107] S21, determining whether the network traffic contains domain name service segment information;

[0108] If included, the domain name service segment information in the network traffic is removed to obtain first removed traffic information;

[0109] If not included, the network traffic is defined as the first pending traffic information;

[0110] S22, merging the first eliminated flow information and the first pending flow information to obtain first merged flow information;

[0111] S23, determining whether the first merged traffic information includes address resolution protocol information;

[0112] If included, the address resolution protocol information in the first combined flow information is removed to obtain second removed flow information;

[0113] If not included, the first merged flow information is defined as the second pending flow information;

[0114] S24, merging the second eliminated flow information and the second pending flow information to obtain second merged flow information;

[0115] S25, determining whether the second merged traffic information includes dynamic host configuration protocol information;

[0116] If included, the dynamic host configuration protocol information in the second combined flow information is removed to obtain third removed flow information;

[0117] If not included, the second merged flow information is defined as the third pending flow information;

[0118] S26, merging the third eliminated flow information and the third pending flow information to obtain third merged flow information;

[0119] S27, extracting the data packet length information corresponding to the third combined flow information to obtain the data packet length byte;

[0120] S28, judging whether the bytes corresponding to the network traffic exceed the preset byte length according to the data packet length bytes;

[0121] If it exceeds, the data of the bytes corresponding to the network traffic are truncated to obtain truncated bytes;

[0122] If it does not exceed the limit, the byte data corresponding to the network traffic is defined as normal bytes;

[0123] S29, classify and screen the truncated bytes and normal bytes to obtain screened flow information.

[0124] As described in the above steps S21-S29, when the network traffic is screened, information is first extracted from the network traffic, wherein the data cleaning information includes domain name service segment information, address resolution protocol information, and dynamic host configuration protocol data packet information. Because the name service segment information, address resolution protocol information, and dynamic host configuration protocol data packet information are irrelevant to the specific traffic of the transmission content, there is no need to perform traffic identification on the name service segment information, address resolution protocol information, and dynamic host configuration protocol data packet information. After eliminating unnecessary traffic identification, the data of the bytes corresponding to the required network traffic is truncated to obtain truncated bytes, and the truncated bytes and normal bytes that do not exceed the preset byte length are classified to obtain classification information. In this way, the identified traffic information has a standardized format, and the truncated bytes and normal bytes are classified and screened to obtain screened traffic information. Furthermore, through the above screening and classification, the network traffic data requiring traffic identification will not have irrelevant factors, thereby improving the efficiency of traffic identification.

[0125] In one embodiment, the step S3 of extracting short byte features from the screened flow information through a one-dimensional Inception structure to obtain short byte feature information, and inputting the short byte feature information into a local space feature model to obtain local feature information of network flow includes:

[0126] S31, extracting time series features from the short byte feature information through a convolutional neural network;

[0127] S32, obtaining the average value of the historical traffic characteristics of the network traffic in the corresponding period according to the time series characteristics;

[0128] S33, obtaining the traffic characteristic standard value corresponding to the network traffic in each time period according to the historical traffic characteristic average value;

[0129] S34, obtaining the traffic characteristic value of the current time period corresponding to the network traffic;

[0130] S35, inputting the historical traffic characteristic average value, the traffic characteristic value of the current period and the traffic characteristic standard value into the local space characteristic model to obtain the local characteristic value of the network traffic, wherein the function of the local space characteristic model is:

[0131]

[0132] in, is the local characteristic value of network traffic, is the average value of historical traffic characteristics, is the standard value of flow characteristics, is the traffic characteristic value of the current period, k is the traffic characteristic sample value, and E is the network traffic characteristic deviation coefficient;

[0133] S36. Mark the information corresponding to the local characteristic value of the network traffic as local characteristic information of the network traffic.

[0134] As described in the above steps S31-S36, when it is necessary to obtain local characteristic information of network traffic, the traffic characteristic sample value is substituted into the function of the local spatial characteristic model for calculation. The product of the network traffic characteristic deviation coefficient and the historical traffic characteristic average value is subtracted from the traffic characteristic value of the current time period, and the difference is then divided by the traffic characteristic standard value. In this way, the local characteristic value of the network traffic can be obtained, and then the network traffic can be locally identified based on the local characteristic information of the network traffic.

[0135] In one embodiment, the step S4 of extracting long byte features from the screened traffic information through the ET-BERT model to obtain long byte feature information, and inputting the long byte feature information into the global spatial feature model to obtain global feature information of network traffic includes:

[0136] S41, setting a start time window for the long sequence byte feature of the traffic;

[0137] S42, capturing the traffic transmission characteristics before and after the long byte feature information in the start time window based on the mask to obtain the traffic transmission characteristic information before and after;

[0138] S43, obtaining a historical traffic transmission average value according to the previous and subsequent traffic transmission characteristic information;

[0139] S44, obtaining a flow transmission standard value according to the historical flow transmission average value;

[0140] S45, obtaining flow transmission sample information corresponding to the network flow, extracting the flow transmission sample information, and obtaining a flow transmission sample value;

[0141] S46, inputting the traffic transmission standard value, traffic transmission sample value and historical traffic transmission average value into the global space feature model to obtain the global feature value of the network traffic, wherein the function of the global space feature model is:

[0142]

[0143] in, is the global characteristic value of network traffic, is the standard value for flow transmission, Transmit sample value for flow, It is the average value of historical traffic transmission;

[0144] S47: Mark the information corresponding to the global characteristic value of the network traffic as global characteristic information of the network traffic.

[0145] As described in the above steps S41-S47, when it is necessary to obtain the global characteristic information of the network traffic, the traffic characteristic sample value is substituted into the function of the global spatial characteristic model, and the difference obtained by subtracting the historical traffic transmission average value from the traffic transmission sample value is multiplied by the traffic transmission standard value to obtain the product, and the product is summed to obtain the global characteristic value of the network traffic, and the information corresponding to the global characteristic value of the network traffic is calibrated as the global characteristic information of the network traffic, and then the global characteristics of the network traffic can be quickly identified based on the local characteristic information of the network traffic.

[0146] In one embodiment, the step S7 of inputting the spliced ​​byte feature relationship information into the fusion model to obtain the spliced ​​byte feature fusion information includes:

[0147] S71, obtaining a local characteristic value of network traffic corresponding to the spliced ​​byte characteristic relationship information;

[0148] S72, obtaining a global characteristic value of network traffic corresponding to the spliced ​​byte characteristic relationship information;

[0149] S73, inputting the local characteristic value of the network traffic corresponding to the spliced ​​byte feature relationship information and the global characteristic value of the network traffic corresponding to the spliced ​​byte feature relationship information into a fusion model to obtain a spliced ​​byte feature fusion value, wherein the function of the fusion model is:

[0150]

[0151] Among them, Q is the concatenated byte feature fusion value, The local characteristic value of network traffic corresponding to the splicing byte characteristic relationship information, is the global characteristic value of network traffic corresponding to the concatenated byte characteristic relationship information, and i is the characteristic coefficient of network traffic within a specified time;

[0152] S74. Mark the information corresponding to the splicing byte feature fusion value as splicing byte feature fusion information.

[0153] As described in the above steps S71-S74, the characteristic coefficients of the network traffic within the time are substituted into the function of the fusion model for calculation, and the local characteristic value of the network traffic corresponding to the spliced ​​byte feature relationship information and the global characteristic value of the network traffic corresponding to the spliced ​​byte feature relationship information are multiplied together to obtain the product as the spliced ​​byte feature fusion value, and the information corresponding to the spliced ​​byte feature fusion value is calibrated as the spliced ​​byte feature fusion information, so that the fusion model can integrate the network traffic identified by the local spatial feature model and the global spatial feature model, so that the entire network can be quickly classified and identified.

[0154] In one embodiment, before the step of obtaining the first characteristic information of the network traffic, the following steps are included:

[0155] S8, obtaining network extraction flow information, analyzing data corresponding to the network extraction flow information, and obtaining analysis data information;

[0156] S9, parsing the ISCX VPN-nonVPN data set in the analysis data information at a data packet level to obtain parsed data information;

[0157] S10, processing the original PCAP file at a data packet level according to the parsed data information to obtain network data processing information;

[0158] S11. Slice the network data processing information to obtain the sliced ​​network data information, and define the sliced ​​network data information as network traffic.

[0159] As described in the above steps S8-S11, when obtaining network traffic, it is necessary to analyze the data corresponding to the network extracted traffic information to obtain analysis data information, and parse the ISCX VPN-nonVPN data set in the analysis data information at the data packet level to obtain analysis data information, wherein ISCX VPN-nonVPN is a public network, and the original PCAP file is processed at the data packet level according to the analysis data information to obtain network data processing information, wherein the original PCAP file is the original file format for data storage, and the network data processing information is sliced ​​to obtain the sliced ​​network data information, and the sliced ​​network data information is defined as network traffic, so that the characteristics of the original file format of the network traffic can be identified, and at the same time, slicing can make the processed data single file smaller, thereby making it easier to process the acquired network traffic data.

[0160] The present application also provides an encrypted traffic identification device integrating a one-dimensional Inception structure and an ET-BERT model, including:

[0161] Acquisition module 1, used to acquire first characteristic information of network traffic, wherein the first characteristic information includes domain name service segment information of data packet, address resolution protocol information and dynamic host configuration protocol information;

[0162] Screening module 2, used for screening the network traffic according to the first characteristic information to obtain screening traffic information;

[0163] The first processing block 3 is used to extract short byte features from the screened traffic information through a one-dimensional Inception structure to obtain short byte feature information, and input the short byte feature information into a local space feature model to obtain local feature information of network traffic;

[0164] The second processing block 4 is used to extract long byte features from the screened traffic information through the ET-BERT model to obtain long byte feature information, and input the long byte feature information into the global spatial feature model to obtain global feature information of network traffic;

[0165] A capture module 5 captures the relationship between the local characteristic information of the network traffic and the global characteristic information of the network traffic based on the mask to obtain the associated byte characteristic relationship information;

[0166] A splicing module 6 is used to splice the byte features in the local feature information of the network traffic and the global feature information of the network traffic according to the associated byte feature relationship information to obtain spliced ​​byte feature relationship information;

[0167] The fusion module 7 is used to input the spliced ​​byte feature relationship information into the fusion model to obtain the spliced ​​byte feature fusion information, and define the spliced ​​byte feature relationship information as encrypted traffic information.

[0168] In one embodiment, the screening module comprises:

[0169] A first determination unit, configured to determine whether the network traffic includes domain name service segment information;

[0170] If included, the domain name service segment information in the network traffic is removed to obtain first removed traffic information;

[0171] If not included, the network traffic is defined as the first pending traffic information;

[0172] A first merging unit, configured to merge the first eliminated flow information and the first pending flow information to obtain first merged flow information;

[0173] A second determination unit, configured to determine whether the first combined traffic information includes address resolution protocol information;

[0174] If included, the address resolution protocol information in the first combined flow information is removed to obtain second removed flow information;

[0175] If not included, the first merged flow information is defined as the second pending flow information;

[0176] A second merging unit, configured to merge the second eliminated flow information and the second pending flow information to obtain second merged flow information;

[0177] A third determination unit, configured to determine whether the second combined traffic information includes dynamic host configuration protocol information;

[0178] If included, the dynamic host configuration protocol information in the second combined flow information is removed to obtain third removed flow information;

[0179] If not included, the second merged flow information is defined as the third pending flow information;

[0180] A third merging unit, configured to merge the third eliminated flow information and the third pending flow information to obtain third merged flow information;

[0181] A first extraction unit, configured to extract the data packet length information corresponding to the third combined flow information to obtain a data packet length byte;

[0182] A fourth determination unit, configured to determine whether the bytes corresponding to the network traffic exceed a preset byte length according to the length bytes of the data packet;

[0183] If it exceeds, the data of the bytes corresponding to the network traffic are truncated to obtain truncated bytes;

[0184] If it does not exceed the limit, the byte data corresponding to the network traffic is defined as normal bytes;

[0185] The screening unit is used to classify and screen the truncated bytes and normal bytes to obtain screening flow information.

[0186] like Figure 3 As shown, the present application also provides a computer device, which may be a server, and its internal structure may be as shown in Figure 3As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store all data required for the process of the automatic adjustment method of the output power of the energy storage inverter. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the automatic adjustment method of the output power of the energy storage inverter is implemented.

[0187] Those skilled in the art will understand that Figure 3 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.

[0188] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements any of the above-mentioned encrypted traffic identification methods that integrate the one-dimensional Inception structure and the ET-BERT model.

[0189] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0190] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0191] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

[0192] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

[0193] For the convenience of description, the above devices are described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in one or more software and / or hardware. It should be understood by those skilled in the art that the embodiments of the present invention can be provided as methods, systems or computer program products. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0194] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 The functionality specified in one or more boxes.

[0195] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A function specified in a process or multiple boxes.

[0196] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

Claims

1. The encrypted traffic identification method integrating the one-dimensional Inception structure and the ET-BERT model is characterized by: include: Acquire first characteristic information of network traffic, the first characteristic information including data packet domain name service segment information, address resolution protocol information and dynamic host configuration protocol information; Screening the network traffic according to the first characteristic information to obtain screened traffic information; The screened traffic information is subjected to short byte feature extraction through a one-dimensional Inception structure to obtain short byte feature information, and the short byte feature information is input into a local space feature model to obtain local feature information of network traffic; Extracting time series features from the short byte feature information through a convolutional neural network; Obtaining an average value of historical traffic characteristics of network traffic in a corresponding period according to the time series characteristics; Obtaining a standard value of traffic characteristics corresponding to the network traffic in each time period according to the average value of the historical traffic characteristics; Obtaining a traffic characteristic value of a current period corresponding to the network traffic; The historical traffic characteristic average value, the traffic characteristic value of the current period and the traffic characteristic standard value are input into the local space characteristic model to obtain the local characteristic value of the network traffic, wherein the function of the local space characteristic model is: ; in, is the local characteristic value of network traffic, is the average value of historical traffic characteristics, is the standard value of flow characteristics, is the traffic characteristic value of the current period, k is the traffic characteristic sample value, and E is the network traffic characteristic deviation coefficient; Marking the information corresponding to the local characteristic value of the network traffic as local characteristic information of the network traffic; The screened traffic information is subjected to long-byte feature extraction through the ET-BERT model to obtain long-byte feature information, and the long-byte feature information is input into the global spatial feature model to obtain global feature information of network traffic; Set up a start time window for the long sequence byte characteristics of traffic; Based on the mask, the traffic transmission characteristics before and after the long byte characteristic information in the starting time window are captured to obtain the traffic transmission characteristic information before and after; Obtaining a historical traffic transmission average value according to the previous and subsequent traffic transmission characteristic information; Obtaining a traffic transmission standard value according to the historical traffic transmission average value; Obtaining flow transmission sample information corresponding to the network flow, extracting the flow transmission sample information, and obtaining a flow transmission sample value; The traffic transmission standard value, traffic transmission sample value and historical traffic transmission average value are input into the global space feature model to obtain the global feature value of network traffic, wherein the function of the global space feature model is: ; in, is the global characteristic value of network traffic, is the standard value for flow transmission, Transmit sample value for flow, It is the average value of historical traffic transmission; Marking the information corresponding to the network traffic global characteristic value as network traffic global characteristic information; Capturing the relationship between the local characteristic information of the network traffic and the global characteristic information of the network traffic based on the mask to obtain the associated byte characteristic relationship information; splicing the byte features in the local network traffic feature information and the global network traffic feature information according to the associated byte feature relationship information to obtain spliced ​​byte feature relationship information; The spliced ​​byte feature relationship information is input into the fusion model to obtain the spliced ​​byte feature fusion information, and the spliced ​​byte feature relationship information is defined as encrypted traffic information.

2. According to claim 1, the encrypted traffic identification method integrating the one-dimensional Inception structure and the ET-BERT model is characterized in that: The step of screening the network traffic according to the first characteristic information to obtain screening traffic information includes: Determining whether the network traffic includes domain name service segment information; If included, the domain name service segment information in the network traffic is removed to obtain first removed traffic information; If not included, the network traffic is defined as the first pending traffic information; Merging the first eliminated flow information and the first pending flow information to obtain first merged flow information; Determining whether the first merged traffic information includes address resolution protocol information; If included, the address resolution protocol information in the first combined flow information is removed to obtain second removed flow information; If not included, the first merged flow information is defined as the second pending flow information; Merging the second eliminated flow information and the second pending flow information to obtain second merged flow information; Determining whether the second merged traffic information includes dynamic host configuration protocol information; If included, the dynamic host configuration protocol information in the second combined flow information is removed to obtain third removed flow information; If not included, the second merged flow information is defined as the third pending flow information; Merging the third eliminated flow information and the third pending flow information to obtain third merged flow information; Extracting the data packet length information corresponding to the third combined flow information to obtain the data packet length byte; Determining whether the bytes corresponding to the network traffic exceed a preset byte length according to the data packet length bytes; If it exceeds, the data of the bytes corresponding to the network traffic are truncated to obtain truncated bytes; If it does not exceed the limit, the byte data corresponding to the network traffic is defined as normal bytes; The truncated bytes and normal bytes are classified and screened to obtain screened flow information.

3. According to claim 1, the encrypted traffic identification method integrating the one-dimensional Inception structure and the ET-BERT model is characterized in that: The step of inputting the spliced ​​byte feature relationship information into the fusion model to obtain the spliced ​​byte feature fusion information includes: Obtaining local characteristic values ​​of network traffic corresponding to the concatenated byte characteristic relationship information; Obtain the global characteristic value of network traffic corresponding to the concatenated byte characteristic relationship information; The local feature value of the network traffic corresponding to the spliced ​​byte feature relationship information and the global feature value of the network traffic corresponding to the spliced ​​byte feature relationship information are input into the fusion model to obtain the spliced ​​byte feature fusion value, wherein the function of the fusion model is: ; Among them, Q is the concatenated byte feature fusion value, The local characteristic value of network traffic corresponding to the splicing byte characteristic relationship information, is the global characteristic value of network traffic corresponding to the concatenated byte characteristic relationship information, and i is the characteristic coefficient of network traffic within a specified time; The information corresponding to the splicing byte feature fusion value is calibrated as splicing byte feature fusion information.

4. According to claim 1, the encrypted traffic identification method integrating the one-dimensional Inception structure and the ET-BERT model is characterized in that: Before the step of obtaining the first characteristic information of the network traffic, the method includes: Acquire network extraction flow information, analyze data corresponding to the network extraction flow information, and obtain analysis data information; Parsing the ISCX VPN-nonVPN data set in the analysis data information at a data packet level to obtain parsed data information; Processing the original PCAP file at a data packet level according to the parsed data information to obtain network data processing information; The network data processing information is sliced ​​to obtain the sliced ​​network data information, and the sliced ​​network data information is defined as network traffic.

5. The encrypted traffic identification device integrating the one-dimensional Inception structure and the ET-BERT model is characterized by: include: An acquisition module, used to acquire first characteristic information of network traffic, wherein the first characteristic information includes domain name service segment information of a data packet, address resolution protocol information, and dynamic host configuration protocol information; A screening module, used for screening the network traffic according to the first characteristic information to obtain screening traffic information; The first processing block is used to extract short byte features from the screened traffic information through a one-dimensional Inception structure to obtain short byte feature information, and input the short byte feature information into a local space feature model to obtain local feature information of network traffic; The second processing block is used to extract long-byte features from the screened traffic information through the ET-BERT model to obtain long-byte feature information, and input the long-byte feature information into the global spatial feature model to obtain global feature information of network traffic; A capture module, which captures the relationship between the local characteristic information of the network traffic and the global characteristic information of the network traffic based on the mask to obtain the associated byte characteristic relationship information; A splicing module, used for splicing the byte features in the local feature information of the network traffic and the global feature information of the network traffic according to the associated byte feature relationship information to obtain spliced ​​byte feature relationship information; The fusion module is used to input the spliced ​​byte feature relationship information into the fusion model to obtain the spliced ​​byte feature fusion information, and define the spliced ​​byte feature relationship information as encrypted traffic information.

6. The encrypted traffic identification device integrating the one-dimensional Inception structure and the ET-BERT model according to claim 5 is characterized in that: The screening module comprises: A first determination unit, configured to determine whether the network traffic includes domain name service segment information; If included, the domain name service segment information in the network traffic is removed to obtain first removed traffic information; If not included, the network traffic is defined as the first pending traffic information; A first merging unit, configured to merge the first eliminated flow information and the first pending flow information to obtain first merged flow information; A second determination unit, configured to determine whether the first combined traffic information includes address resolution protocol information; If included, the address resolution protocol information in the first combined flow information is removed to obtain second removed flow information; If not included, the first merged flow information is defined as the second pending flow information; A second merging unit, configured to merge the second eliminated flow information and the second pending flow information to obtain second merged flow information; A third determination unit, configured to determine whether the second combined traffic information includes dynamic host configuration protocol information; If included, the dynamic host configuration protocol information in the second combined flow information is removed to obtain third removed flow information; If not included, the second merged flow information is defined as the third pending flow information; A third merging unit, configured to merge the third eliminated flow information and the third pending flow information to obtain third merged flow information; A first extraction unit, configured to extract the data packet length information corresponding to the third combined flow information to obtain a data packet length byte; A fourth determination unit, configured to determine whether the bytes corresponding to the network traffic exceed a preset byte length according to the length bytes of the data packet; If it exceeds, the data of the bytes corresponding to the network traffic are truncated to obtain truncated bytes; If it does not exceed the limit, the byte data corresponding to the network traffic is defined as normal bytes; The screening unit is used to classify and screen the truncated bytes and normal bytes to obtain screening flow information.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.