Network communication anomaly identification method, system and medium based on deep learning

Through deep learning-based methods, deep inspection and model training are used to solve the problem of low efficiency of anomaly identification in communication networks, achieve real-time and accurate anomaly detection and rapid repair, and improve the detection efficiency and accuracy of communication networks.

CN118509340BActive Publication Date: 2024-10-01上海景瑞阳实业有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410981670.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-01
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

The identification efficiency of communication network abnormalities in the existing technology is low, making it difficult for operation and maintenance personnel to locate and repair problems in a timely manner, affecting communication efficiency.

Method used

A method based on deep learning is used to perform preliminary anomaly inspection by randomly intercepting network data streams, obtain relevant information and fault information, establish an inspection example matrix and training data set, train weight network models and detection network models, and fuse the models for anomaly identification.

Benefits of technology

It achieves real-time and accurate anomaly detection of communication networks, improves detection efficiency and accuracy, can quickly identify and repair network problems, and meets the detection needs of communication networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118509340B_ABST
    Figure CN118509340B_ABST
Patent Text Reader

Abstract

The present invention provides a method, system and medium for identifying abnormalities in network communication based on deep learning, the method comprising the following steps: randomly intercepting a network data stream, performing a preliminary abnormality check on the network data stream to obtain a first inspection result; forming a reference data set according to fault-related information; establishing an inspection example matrix, establishing a weight training data set according to fault-related information and the reference data set, and establishing an inspection result training data set according to the reference data set and the second inspection result; training a weight initial model with the weight training data set to obtain a weight network model, and training the result initial model with the inspection result training data set to obtain a detection network model; obtaining a target network model by fusion training the weight network model and the detection network model, and identifying abnormalities in network communication based on the target network model. The present invention effectively improves the detection efficiency and accuracy of communication network abnormalities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication technology, and in particular relates to a method, system and medium for identifying network communication anomalies based on deep learning. Background Art

[0002] A network is a data link that connects isolated workstations or hosts using physical links. A communication network physically connects isolated devices, enabling information exchange between people, computers, and computers, thereby achieving resource sharing and communication. A typical communication network is composed of numerous network nodes. A network node is a computer or other device connected to a network with a unique address and the ability to transmit or receive data. When transmitting a variety of network information, each network node will have a certain degree of influence on its neighbors. In a time series, when data anomalies occur between different nodes or within the same node, timely warning and monitoring are difficult.

[0003] Currently, when an anomaly occurs in a communication network, operations and maintenance personnel typically locate the cause of the anomaly by checking each possible cause listed in the instruction manual or based on experience. This method is inefficient and cannot be repaired in a timely manner, which has a serious impact on communication efficiency. Summary of the Invention

[0004] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide a network communication anomaly identification method, system and medium based on deep learning, which are used to solve the problem of low recognition efficiency when communication network anomalies occur in the prior art.

[0005] To achieve the above and other related purposes, the present invention provides a method for identifying network communication anomalies based on deep learning, comprising the following steps:

[0006] During the communication process, randomly intercepting a network data stream, and performing a preliminary abnormality check on the network data stream to obtain a first check result;

[0007] After determining that the network data flow is abnormal according to the first inspection result, obtaining communication network related information and fault related information, matching corresponding reference data in a sample database according to the fault related information to form a reference data set;

[0008] establishing an inspection example matrix based on the communication network related information and the fault related information, performing a deep inspection on the network data flow using the inspection example matrix to obtain a second inspection result, establishing a weight training dataset based on the fault related information and the reference dataset, and establishing an inspection result training dataset based on the reference dataset and the second inspection result;

[0009] The weight training data set is used to train the weight initial model to obtain a weight network model, and the inspection result training data set is used to train the result initial model to obtain a detection network model;

[0010] The weight network model and the detection network model are fused and trained to obtain a target network model, and abnormalities in network communication are identified based on the target network model.

[0011] Optionally, randomly intercepting a network data stream and performing a preliminary abnormality check on the network data stream to obtain a first check result includes:

[0012] Capturing data corresponding to the generated random sequence in the communication data stream to obtain the network data stream;

[0013] Matching a corresponding first verification instruction in a pre-stored instruction library according to the random sequence;

[0014] The first verification instruction is called to perform an abnormality check on the network data flow to obtain current hardware parameters and network configuration parameters, and to determine whether there is an abnormality in the communication network based on the hardware parameters and the network configuration parameters.

[0015] Optionally, acquiring communication network related information and fault related information, and matching corresponding reference data in a sample database according to the fault related information to form a reference data set includes:

[0016] Acquire the communication network related information according to the type of the communication network, and determine the current fault related information according to the hardware parameters and the network configuration parameters;

[0017] Extracting characteristic type data from the fault related information, and performing difference fitting between the characteristic type data and preset type data to obtain a comparative fitting curve;

[0018] The reference data set is formed by matching the corresponding reference data in the sample database according to the comparison fitting curve.

[0019] Optionally, the fault-related information includes a fault type, which includes a hardware fault, a software fault, and a user abnormality. The establishing of an inspection example matrix based on the communication network-related information and the fault-related information includes:

[0020] After determining that a hardware fault exists in the fault type, calling a first check instruction and storing it in a check instruction set; after determining that a software fault exists in the fault type, calling a second check instruction and storing it in the check instruction set; after determining that a user abnormality exists in the fault type, calling a third check instruction and storing it in the check instruction set;

[0021] Classifying the communication network related information according to the fault type to obtain three groups of branch related information;

[0022] The inspection instruction set stored in the plurality of inspection instructions is matrix-fused with the branch related information to form the inspection example matrix.

[0023] Optionally, performing a deep inspection on the network data flow using the inspection example matrix to obtain a second inspection result includes:

[0024] performing a normalization process on the inspection example matrix to form a standard example matrix;

[0025] Performing an inspection test on the communication network according to the examples in the inspection example matrix to obtain an inspection result matrix, and searching for a corresponding standard result matrix in past communication records according to the elements in the standard example matrix;

[0026] The second inspection result is obtained according to the difference between each item of the inspection result matrix and the standard result matrix.

[0027] Optionally, extracting characteristic type data from the fault-related information, and performing difference fitting on the characteristic type data and preset type data to obtain a comparative fitting curve includes:

[0028] Classify and extract the fault-related information according to a preset classification table to obtain characteristic type data of different categories;

[0029] Calculating the relative difference rate between the characteristic type data and the preset type data;

[0030] Fitting the characteristic type data and the preset type data according to the relative difference rate to obtain two sets of fitting data, calculating average values ​​of the two sets of fitting data to obtain a set of mean data, and establishing the comparative fitting curve based on the mean data;

[0031] The matching corresponding reference data in the sample database according to the comparison fitting curve to form a reference data set includes:

[0032] A calculation formula for the comparative fitting curve is obtained, and corresponding parameter data is matched in the sample database according to the range of the formula parameters to form a reference data set.

[0033] Optionally, establishing a weight training dataset based on the fault-related information and the reference dataset, and establishing an inspection result training dataset based on the reference dataset and the second inspection result includes:

[0034] Splitting the reference data set into a standard parameter data set and a standard result data set;

[0035] Comparing the fault-related information with the standard parameter data set to obtain the same parameters and different parameters between the two, and establishing the weight training data set according to the same parameters and the different parameters;

[0036] Comparing the standard result dataset with the second inspection result to obtain identical results and different results between the two, and establishing the inspection result training dataset based on the identical results and different results;

[0037] Wherein, the weight training data set and the inspection result training data set are both data sets divided by a cross-validation method.

[0038] Optionally, performing a deep inspection on the network data flow using the inspection example matrix to obtain a second inspection result includes:

[0039] respectively acquiring the first inspection instruction, the second inspection instruction, the third inspection instruction, and the branch related information according to the inspection example matrix;

[0040] inputting the first inspection instruction into the communication network to obtain first feedback information, a base station device protocol IP address, and a connection device IP address, determining that the communication network generates a hardware report based on the first feedback information, the base station device protocol IP address, and the connection device IP address, and determining whether there is a hardware fault based on the hardware report and the corresponding branch-related information;

[0041] inputting the second inspection instruction to the communication network to obtain second feedback information, obtaining a local parameter configuration and a network parameter configuration of the communication network according to the second feedback information, generating a configuration report according to the local parameter configuration and the network parameter configuration, and determining whether a software fault exists according to the configuration report and the corresponding branch-related information;

[0042] inputting the third check instruction to the communication network to obtain third feedback information, generating a matching index report according to the third feedback information, and determining whether there is a user abnormality according to the matching index report and the corresponding branch-related information;

[0043] The second inspection result includes a hardware report, a configuration report, and a matching index report.

[0044] Optionally, inputting the third check instruction to the communication network to obtain third feedback information, and generating a matching index report according to the third feedback information includes:

[0045] Obtain a user information list in the communication network, and match corresponding target user information in the user information list according to the third check instruction, wherein the target user information includes user IP address, time period information, traffic characteristic information, and attack information;

[0046] inputting the third inspection instruction into the communication network to obtain the third feedback information, wherein the third feedback information includes a feedback IP address, a feedback time period, feedback traffic characteristics, and feedback attack characteristics;

[0047] Performing similarity fitting on the feedback IP address, the feedback time period, the feedback traffic characteristics, and the feedback attack characteristics with the user IP address, the time period information, the traffic characteristic information, and the attack information, respectively, to obtain a first matching degree, a second matching degree, a third matching degree, and a fourth matching degree, respectively;

[0048] The matching index report is generated according to the first matching degree, the second matching degree, the third matching degree, and the fourth matching degree.

[0049] Optionally, the obtaining a target network model by performing fusion training on the weight network model and the detection network model includes:

[0050] Generate N random probability arrays through a probabilistic random model, and fuse each of the random probability arrays with the weight network model and the detection network model to obtain N groups of auxiliary weight network models and N groups of auxiliary detection network models, where N is an integer greater than 10;

[0051] Establishing N groups of auxiliary weight network models and the weight network model as a first model group, and establishing N groups of auxiliary detection network models and the detection network model as a second model group;

[0052] According to the fusion model, the models in the first model group and the models in the second model group are randomly combined and fused to obtain M groups of combined models, where M = (N+1) (N+1), M is the number of the combination models, and M is a positive integer;

[0053] Inputting the inspection example matrix into M groups of the combination models to obtain corresponding combination model output results, and calculating the similarity between each group of the combination model output results and the corresponding second inspection result;

[0054] The combined model with the highest similarity is selected as the target network model.

[0055] The present invention discloses a network communication anomaly identification system based on deep learning, comprising:

[0056] A preliminary inspection module is used to randomly intercept a network data stream during a communication process and perform a preliminary abnormality inspection on the network data stream to obtain a first inspection result;

[0057] An information collection module is configured to, after determining that the network data flow is abnormal according to the first inspection result, obtain communication network related information and fault related information, and match corresponding reference data in a sample database according to the fault related information to form a reference data set;

[0058] a data set establishment module, configured to establish an inspection example matrix based on the communication network related information and the fault related information, perform a deep inspection on the network data flow using the inspection example matrix to obtain a second inspection result, establish a weight training data set based on the fault related information and the reference data set, and establish an inspection result training data set based on the reference data set and the second inspection result;

[0059] A modeling module, configured to train the weight initial model using the weight training data set to obtain a weight network model, and to train the result initial model using the inspection result training data set to obtain a detection network model;

[0060] The fusion identification module is used to obtain a target network model by performing fusion training on the weight network model and the detection network model, and to identify abnormalities in network communication based on the target network model.

[0061] The present invention also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements the above-mentioned network communication anomaly identification method based on deep learning.

[0062] As mentioned above, the complete invention title of the present invention has the following beneficial effects:

[0063] The network communication anomaly identification method based on deep learning described in the present invention obtains accurate detection results by performing real-time detection on the communication network, and establishes a reference data set that matches the obtained detection results. Subsequently, a weight training data set and an inspection result training data set are respectively established according to the detection results and the reference data set, and model training is performed using the weight training data set and the inspection result training data set to obtain a weight network model and a detection network model, so as to facilitate model fusion of the weight network model and the detection network model to obtain an accurate target network model. In the subsequent communication process, the target network model can be used to perform rapid and real-time detection of communication network anomalies, effectively improving the detection efficiency and accuracy, and meeting the detection needs of the communication network. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 Shown is a flowchart of the network communication anomaly identification method based on deep learning of the present invention.

[0065] Figure 2 Shown is a structural block diagram of the network communication anomaly identification system based on deep learning of the present invention. DETAILED DESCRIPTION

[0066] The following describes the embodiments of the present invention through specific embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other unless they conflict.

[0067] It should be noted that the illustrations provided in the following embodiments are merely schematic illustrations of the basic concept of the present invention. The illustrations only show components related to the present invention and are not drawn according to the number, shape, and size of components in actual implementation. In actual implementation, the type, quantity, and proportion of each component may be changed arbitrarily, and the component layout may also be more complex.

[0068] like Figure 1 As shown, in one embodiment, a method for identifying network communication anomalies based on deep learning of the present invention includes the following steps:

[0069] S1. During a communication process, randomly intercept a network data stream and perform a preliminary abnormality check on the network data stream to obtain a first check result.

[0070] By randomly intercepting the network data stream during the communication process, a preliminary abnormality check is performed based on the intercepted network data stream and a corresponding first inspection result is obtained, so as to judge whether there is an abnormality in the current communication network based on the first inspection result. By performing a preliminary inspection on the communication network, abnormal situations in the communication network are discovered in time, so as to facilitate subsequent detailed abnormality inspections.

[0071] In some embodiments, randomly intercepting a network data stream and performing a preliminary abnormality check on the network data stream to obtain a first check result includes:

[0072] Capturing data corresponding to the generated random sequence in the communication data stream to obtain the network data stream;

[0073] Matching a corresponding first verification instruction in a pre-stored instruction library according to the random sequence;

[0074] The first verification instruction is called to perform an abnormality check on the network data flow to obtain current hardware parameters and network configuration parameters, and to determine whether there is an abnormality in the communication network based on the hardware parameters and the network configuration parameters.

[0075] Specifically, in order to ensure the randomness of the intercepted network data stream, a random sequence is generated to capture corresponding data in the communication data stream to obtain the intercepted network data stream. At the same time, a preliminary abnormality check is performed on the network data stream according to the random sequence in the pre-stored instruction library and the matching corresponding first verification instruction, so as to obtain the hardware parameters and network configuration parameters of the current communication network, so as to determine whether there is any abnormality in the current communication network based on the hardware parameters and network configuration parameters.

[0076] S2. After determining that the network data flow is abnormal according to the first inspection result, obtain communication network related information and fault related information, match corresponding reference data in the sample database according to the fault related information and form a reference data set.

[0077] In some embodiments, acquiring communication network related information and fault related information, and matching corresponding reference data in a sample database according to the fault related information to form a reference data set includes:

[0078] Acquire the communication network related information according to the type of the communication network, and determine the current fault related information according to the hardware parameters and the network configuration parameters;

[0079] Extracting characteristic type data from the fault related information, and performing difference fitting between the characteristic type data and preset type data to obtain a comparative fitting curve;

[0080] The reference data set is formed by matching the corresponding reference data in the sample database according to the comparison fitting curve.

[0081] After intercepting the network data stream and conducting a preliminary anomaly check on the communication network to determine if an anomaly exists, the current fault-related information is determined based on the obtained hardware parameters and network configuration parameters. This information is then matched with corresponding reference data in the sample database to form a reference dataset, facilitating subsequent in-depth inspections and obtaining accurate inspection results. The fault-related information includes information such as the fault type, characteristic fault type, fault onset time, and fault duration.

[0082] Specifically, first, the communication network related information is obtained according to the type of the current communication network, mainly including protocol information, IP address information, base station equipment information and communication load capacity information. After obtaining the hardware parameters and network configuration parameters in the communication network, the current fault related information is determined, and the characteristic type data in the fault related information is extracted. The characteristic type data and the preset type data are differentially fitted to obtain the corresponding comparative fitting curve. Subsequently, the corresponding reference data can be matched in the sample database according to the comparative fitting curve to form a reference data set.

[0083] In some other embodiments, extracting characteristic type data from the fault-related information, and performing difference fitting on the characteristic type data and preset type data to obtain a comparative fitting curve includes:

[0084] Classify and extract the fault-related information according to a preset classification table to obtain characteristic type data of different categories;

[0085] Calculating the relative difference rate between the characteristic type data and the preset type data;

[0086] Fitting the characteristic type data and the preset type data according to the relative difference rate to obtain two sets of fitting data, calculating average values ​​of the two sets of fitting data to obtain a set of mean data, and establishing the comparative fitting curve based on the mean data;

[0087] Furthermore, matching corresponding reference data in the sample database according to the comparison fitting curve to form a reference data set includes:

[0088] A calculation formula for the comparative fitting curve is obtained, and corresponding parameter data is matched in the sample database according to the range of the formula parameters to form a reference data set.

[0089] Specifically, since the acquired fault-related information includes different types of feature type data, the fault-related information is classified and extracted according to a preset classification table to obtain feature type data of different categories corresponding to the fault-related information, and then the relative difference rate between each feature type data and the corresponding preset type data is calculated to determine the gap between each feature of the current communication network and the standard value, and the feature type data and the preset type data are fitted according to the relative difference rate to obtain two sets of fitting data, and the mean of the two sets of fitting data is calculated to obtain a set of mean data, and a comparison fitting curve is established based on the mean data, and then the corresponding parameter data are matched in the sample database according to the range of the formula parameters of the comparison fitting curve to form a reference data set.

[0090] For example, the i-th feature type data is recorded as Ai, and the corresponding i-th preset type data is recorded as Bi. The calculation process of the relative difference rate Si is:

[0091]

[0092] Afterwards, two sets of fitting data are obtained by fitting the feature type data and the preset type data according to the relative difference rate. Subsequently, a set of mean data is obtained according to the average of the two sets of fitting data, and a comparative fitting curve is established based on the mean data, so as to match the corresponding parameter data in the sample database according to the formula parameters of the comparative fitting curve to form a reference data set.

[0093] The calculation process of the mean data Li satisfies the following formula:

[0094]

[0095] The mean data obtained through the above calculation process can fully adapt to the feature type data and the corresponding preset type data, so that the subsequent comparative fitting curve can fully reflect the characteristics of the feature type data and the preset type data, so as to obtain a reference data set that meets the reference requirements, provide a reference basis for the subsequent inspection process, and ensure the accuracy of the subsequent inspection results.

[0096] S3. Establish an inspection example matrix based on the communication network related information and the fault related information, and perform a deep inspection on the network data flow through the inspection example matrix to obtain a second inspection result, establish a weight training data set based on the fault related information and the reference data set, and establish an inspection result training data set based on the reference data set and the second inspection result.

[0097] In yet other embodiments, the fault type includes hardware fault, software fault, and user abnormality, and establishing an example inspection matrix based on the communication network-related information and the fault-related information includes:

[0098] After determining that a hardware fault exists in the fault type, calling a first check instruction and storing it in a check instruction set; after determining that a software fault exists in the fault type, calling a second check instruction and storing it in the check instruction set; after determining that a user abnormality exists in the fault type, calling a third check instruction and storing it in the check instruction set;

[0099] Classifying the communication network related information according to the fault type to obtain three groups of branch related information;

[0100] The inspection instruction set stored in the plurality of inspection instructions is matrix-fused with the branch related information to form the inspection example matrix.

[0101] Specifically, after obtaining the communication network-related information and fault-related information, the basic information of the current communication network fault can be determined and a corresponding inspection example matrix can be established in advance to facilitate subsequent in-depth inspections. Based on the aforementioned fault-related information, the current fault type is determined, and the corresponding inspection instructions are called and stored in the inspection instruction set. At the same time, the communication network-related information is classified into three groups of branch-related information, so that the stored inspection instruction set can be matched with each group of branch-related information, facilitating subsequent comparison after calling the inspection example matrix for inspection.

[0102] In some other embodiments, when the inspection items of the communication network are lower than the preset inspection item values, in order to speed up the inspection, the following method is used for inspection: The in-depth inspection of the network data flow using the inspection example matrix to obtain the second inspection result includes:

[0103] performing a normalization process on the inspection example matrix to form a standard example matrix;

[0104] Performing an inspection test on the communication network according to the examples in the inspection example matrix to obtain an inspection result matrix, and searching for a corresponding standard result matrix in past communication records according to the elements in the standard example matrix;

[0105] The second inspection result is obtained according to the difference between each item of the inspection result matrix and the standard result matrix.

[0106] In this embodiment, after the inspection example matrix is ​​obtained through the above process, the inspection example matrix is ​​normalized to form a standard example matrix, including

[0107] The standardized example matrix is ​​a set of standard inspection examples when the communication network is in normal working state. The standard results of the example matrix when the communication network is in normal working state are used as a reference to compare the current state of the communication network.

[0108] Specifically, examples in the inspection example matrix are input into the communication network for inspection and testing to obtain a corresponding inspection result matrix. Based on the example elements in the standard example matrix, corresponding standard results are searched in previous communication records. Each result in the inspection result matrix is ​​then compared with the corresponding standard result to obtain a second inspection result, thereby determining abnormalities in the current communication network. For example, if the difference between each result in the inspection result matrix and the corresponding standard result is within a preset range, the inspection result is determined to be normal; otherwise, it is abnormal. This allows the determination of any abnormalities in the current communication network.

[0109] The power consumption and load in the inspection instructions in the inspection example matrix are adjusted proportionally according to the actual situation of the current communication network, so that the inspection instructions adapt to the inspection conditions of the current communication network and reduce the impact of the inspection process on the communication network.

[0110] In some other embodiments, when the inspection items of the communication network are higher than the preset inspection item values, in order to ensure inspection efficiency, the following method is used for inspection: The in-depth inspection of the network data flow using the inspection example matrix to obtain the second inspection result further includes:

[0111] respectively acquiring the first inspection instruction, the second inspection instruction, the third inspection instruction, and the branch related information according to the inspection example matrix;

[0112] inputting the first inspection instruction into the communication network to obtain first feedback information, a base station device protocol IP address, and a connection device IP address, determining that the communication network generates a hardware report based on the first feedback information, the base station device protocol IP address, and the connection device IP address, and determining whether there is a hardware fault based on the hardware report and the corresponding branch-related information;

[0113] inputting the second inspection instruction to the communication network to obtain second feedback information, obtaining a local parameter configuration and a network parameter configuration of the communication network according to the second feedback information, generating a configuration report according to the local parameter configuration and the network parameter configuration, and determining whether a software fault exists according to the configuration report and the corresponding branch-related information;

[0114] inputting the third check instruction to the communication network to obtain third feedback information, generating a matching index report according to the third feedback information, and determining whether there is a user abnormality according to the matching index report and the corresponding branch-related information;

[0115] The second inspection result includes a hardware report, a configuration report, and a matching index report.

[0116] Specifically, first, the corresponding first inspection instruction, second inspection instruction, third inspection instruction, and branch-related information are obtained according to the inspection example matrix. Then, the first inspection instruction, second inspection instruction, and third inspection instruction are respectively input into the communication network. After inputting the first inspection instruction, first feedback information, base station device protocol IP address, and connection device IP address are obtained. The first feedback information includes the working status of the physical port, the hardware operation status, and the connection status of the physical port, so as to determine the hardware working status according to the working status of the physical port, the hardware operation status, and the physical port connection status. Subsequently, the communication network generates a hardware report based on the first feedback information, the base station device protocol IP address, and the connection device IP address, and determines whether there is a hardware fault based on the hardware report.

[0117] Specifically, after obtaining the hardware report, if it is determined based on the first feedback information, the base station equipment protocol IP address and the connection equipment IP address that there is hardware with operation failure, there is a physical port with connection error, and / or there is a physical port whose working status does not comply with the preset working status in the base station, then the transmission communication abnormality is related to the hardware status of the base station; if it is determined based on the first feedback information, the base station equipment protocol IP address and the connection equipment IP address that the hardware operation in the base station is fault-free, the physical port connections are correct, and the working status of the physical ports complies with the preset working status, then the transmission communication abnormality is not related to the hardware status of the base station.

[0118] After inputting the second check instruction to the communication network, second feedback information is obtained. Based on the second feedback information, the local parameter configuration and the network parameter configuration of the communication network are obtained, and a configuration report is generated based on the local parameter configuration and the network parameter configuration. Based on the configuration report and the corresponding branch-related information, whether a software configuration fault exists is determined. Specifically, if either the local parameter configuration or the network parameter configuration does not meet the requirements, it is determined that a software configuration fault exists in the current communication network; otherwise, no software configuration fault exists.

[0119] The third check instruction is input to the communication network to obtain third feedback information, and a matching index report is generated according to the third feedback information, so as to determine whether there is a user abnormality according to the matching index report and the corresponding branch related information.

[0120] Specifically, inputting the third check instruction to the communication network to obtain third feedback information, and generating a matching index report according to the third feedback information includes:

[0121] Obtain a user information list in the communication network, and match corresponding target user information in the user information list according to the third check instruction, wherein the target user information includes user IP address, time period information, traffic characteristic information, and attack information;

[0122] inputting the third inspection instruction into the communication network to obtain the third feedback information, wherein the third feedback information includes a feedback IP address, a feedback time period, feedback traffic characteristics, and feedback attack characteristics;

[0123] Performing similarity fitting on the feedback IP address, the feedback time period, the feedback traffic characteristics, and the feedback attack characteristics with the user IP address, the time period information, the traffic characteristic information, and the attack information, respectively, to obtain a first matching degree, a second matching degree, a third matching degree, and a fourth matching degree, respectively;

[0124] The matching index report is generated according to the first matching degree, the second matching degree, the third matching degree, and the fourth matching degree.

[0125] In this embodiment, after inputting the third check instruction into the communication network to obtain third feedback information, the feedback IP address, feedback time period, feedback traffic characteristics, and feedback attack characteristics corresponding to the user in the communication network are obtained. Since the user's IP address, communication time period, and traffic characteristics are generally relatively fixed in conventional communication networks, this information can be used to quickly determine whether the user in the communication network is abnormal, and determine whether the communication contains attack behavior based on the feedback attack characteristics. Specifically, the feedback IP address, the feedback time period, the feedback traffic characteristics, and the feedback attack characteristics are respectively subjected to similarity fitting with the user's IP address, the time period information, the traffic characteristics information, and the attack information to obtain a first matching degree, a second matching degree, a third matching degree, and a fourth matching degree, respectively. The first matching degree, the second matching degree, the third matching degree, and the fourth matching degree are obtained by similarity comparison, but may also be calculated using other methods, which are not particularly limited in this embodiment. If the content of the feedback attack characteristics is empty, the fourth matching degree between the feedback attack characteristics and the attack information is 0.

[0126] The feedback traffic characteristics are the data traffic consumed by each communication of the user in the communication network. The corresponding traffic characteristics can be obtained by calculating the data traffic consumed by each communication of the user within a specific time.

[0127] Subsequently, the matching index report is generated according to the first matching degree, the second matching degree, the third matching degree, and the fourth matching degree. It can be determined whether there is any abnormality in the current user of the communication network according to the matching index report.

[0128] Furthermore, since the first, second, third, and fourth matching degrees each correspond to a standard value, when any one of them exceeds the standard value, it can be determined that the current user has an abnormality. If the first, second, third, and fourth matching degrees are all within the standard value, the first, second, third, and fourth matching degrees are weighted using the analytic hierarchy process, and the total matching degree is calculated based on the corresponding weights. This allows the total matching degree to be used to determine whether there is a risk of user abnormality in the current communication process.

[0129] It should be noted that the preset value of the inspection item is related to the number of nodes and the complexity of the communication network. The more the number of nodes and the more complex the communication network, the larger the preset value of the inspection item.

[0130] In yet other embodiments, establishing a weight training dataset based on the fault-related information and the reference dataset, and establishing an inspection result training dataset based on the reference dataset and the second inspection result, includes:

[0131] Splitting the reference data set into a standard parameter data set and a standard result data set;

[0132] Comparing the fault-related information with the standard parameter data set to obtain the same parameters and different parameters between the two, and establishing the weight training data set according to the same parameters and the different parameters;

[0133] Comparing the standard result dataset with the second inspection result to obtain identical results and different results between the two, and establishing the inspection result training dataset based on the identical results and different results;

[0134] Wherein, the weight training data set and the inspection result training data set are both data sets divided by a cross-validation method.

[0135] In this embodiment, by splitting the reference data set into a standard parameter data set, it is convenient to compare the fault-related information of the communication network with the standard parameter data set to obtain the same parameters and difference parameters of the two, and to establish a weight training data set based on the same parameters and difference parameters, so as to facilitate subsequent model training to obtain the corresponding weight model. Among them, the weight training data set mainly includes the same parameters, difference parameters and the ratio of the same parameters to the difference parameters, so as to facilitate model training. Similarly, the standard result data set is compared with the second inspection result to obtain the same result and the difference result. According to the same result and the difference result, an inspection result training data set can be established, wherein the inspection result training data set includes the same result, the difference result and the standard result data set.

[0136] S4. Using the weight training data set to train the weight initial model to obtain a weight network model, and using the inspection result training data set to train the result initial model to obtain a detection network model.

[0137] By obtaining the weight network model and the detection network model separately, a more accurate target network model can be obtained through subsequent model fusion.

[0138] S5. Obtain a target network model by performing fusion training on the weight network model and the detection network model, and identify abnormalities in network communication based on the target network model.

[0139] Furthermore, the step of performing fusion training on the weight network model and the detection network model to obtain a target network model includes:

[0140] Generate N random probability arrays through a probabilistic random model, and fuse each of the random probability arrays with the weight network model and the detection network model to obtain N groups of auxiliary weight network models and N groups of auxiliary detection network models, where N is an integer greater than 10;

[0141] Establishing N groups of auxiliary weight network models and the weight network model as a first model group, and establishing N groups of auxiliary detection network models and the detection network model as a second model group;

[0142] According to the fusion model, the models in the first model group and the models in the second model group are randomly combined and fused to obtain M groups of combined models, where M = (N+1) (N+1), M is the number of the combination models, and M is a positive integer;

[0143] Inputting the inspection example matrix into M groups of the combination models to obtain corresponding combination model output results, and calculating the similarity between each group of the combination model output results and the corresponding second inspection result;

[0144] The combined model with the highest similarity is selected as the target network model.

[0145] Specifically, after obtaining the weight network model and the detection network model, after generating N random probability arrays through the probabilistic random model, each of the random probability arrays is fused with the weight network model and the detection network model to obtain N groups of auxiliary weight network models and N groups of auxiliary detection network models. Then, according to the weight network model, the detection network model, the N groups of auxiliary weight network models and the N groups of auxiliary detection network models, the first model group and the second model group are respectively established. Then, according to the fusion model, the models in the first model group and the second model group are randomly combined to obtain M groups of combined models, thereby completing the mutual fusion of multiple groups of models. After obtaining the M groups of combined models, the multiple groups of inspection example matrices are respectively input into the M groups of combined models to obtain multiple groups of combined model output results. Then, the multiple groups of combined model output results are calculated for similarity with the corresponding second inspection results, and the combined model with the highest similarity is selected as the target network model, thereby completing the fusion process of the target network model, ensuring that the fused model has higher accuracy.

[0146] It should be noted that after calculating the similarity, when the similarity of all combined models is lower than the similarity threshold, such as 95%, it is determined that the current combined model cannot meet the requirements, and it is necessary to generate Q random probability arrays through the probabilistic random model again and then re-integrate to ensure the accuracy of the fused model, where Q is at least twice N. The accuracy of model fusion is improved by increasing the number of samples.

[0147] The network communication anomaly identification method based on deep learning described in the present invention obtains accurate detection results by performing real-time detection on the communication network, and establishes a reference data set that matches the obtained detection results. Subsequently, a weight training data set and an inspection result training data set are respectively established according to the detection results and the reference data set, and model training is performed using the weight training data set and the inspection result training data set to obtain a weight network model and a detection network model, so as to facilitate model fusion of the weight network model and the detection network model to obtain an accurate target network model. In the subsequent communication process, the target network model can be used to perform rapid and real-time detection of communication network anomalies, effectively improving the detection efficiency and accuracy, and meeting the detection needs of the communication network.

[0148] It should be noted that the protection scope of the network communication anomaly identification method based on deep learning described in the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing, or replacing steps in the existing technology based on the principles of the present invention are included in the protection scope of the present invention.

[0149] The present invention provides a network communication anomaly identification system based on deep learning, referring to Figure 2 ,include:

[0150] A preliminary inspection module 201 is configured to randomly intercept a network data stream during a communication process and perform a preliminary abnormality inspection on the network data stream to obtain a first inspection result;

[0151] An information collection module 202 is configured to, after determining that the network data flow is abnormal according to the first inspection result, obtain communication network related information and fault related information, match corresponding reference data in a sample database according to the fault related information, and form a reference data set;

[0152] a data set establishment module 203, configured to establish an inspection example matrix based on the communication network related information and the fault related information, perform a deep inspection on the network data flow using the inspection example matrix to obtain a second inspection result, establish a weight training data set based on the fault related information and the reference data set, and establish an inspection result training data set based on the reference data set and the second inspection result;

[0153] A modeling module 204 is configured to train the weight initial model using the weight training data set to obtain a weight network model, and to train the result initial model using the inspection result training data set to obtain a detection network model;

[0154] The fusion identification module 205 is used to obtain a target network model by performing fusion training on the weight network model and the detection network model, and to identify abnormalities in network communications based on the target network model.

[0155] It should be noted that the structure and principles of the deep learning-based network communication anomaly identification system correspond one-to-one to the steps in the above-mentioned deep learning-based network communication anomaly identification method, so they will not be repeated here.

[0156] It should be understood that the division of the modules in the above system is merely a division of logical functions. In actual implementation, they may be fully or partially integrated into a single physical entity or physically separated. Furthermore, these modules may be implemented entirely in software called by a processing element, or entirely in hardware. Alternatively, some modules may be implemented in software called by a processing element, while others may be implemented in hardware. For example, module x may be a separate processing element, or integrated into a chip in the above system. Furthermore, it may be stored in the form of program code in the memory of the above system, called by a processing element in the system to perform the functions of module x. The implementation of other modules is similar. Furthermore, these modules may be fully or partially integrated or implemented independently. The processing element described herein may be an integrated circuit with signal processing capabilities. During implementation, the steps of the above method or the modules above may be performed by hardware integrated logic circuits in the processor element or by software instructions.

[0157] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented by scheduling program code on a processing element, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0158] It should be noted that the deep learning-based network communication anomaly identification system of the present invention can implement the deep learning-based network communication anomaly identification method of the present invention, but the implementation device of the deep learning-based network communication anomaly identification method of the present invention includes but is not limited to the structure of the deep learning-based network communication anomaly identification system listed in this embodiment. All structural deformations and replacements of the existing technology made according to the principles of the present invention are included in the protection scope of the present invention.

[0159] The present invention also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements the above-mentioned network communication anomaly identification method based on deep learning.

[0160] The storage medium of the present invention stores a computer program that, when executed by a processor, implements the following method. The storage medium includes various media capable of storing program code, such as read-only memory (ROM), random access memory (RAM), a magnetic disk, a USB flash drive, a memory card, or an optical disk.

[0161] Any combination of one or more storage media may be used. The storage medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, RAM, ROM, an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in connection with an instruction execution system, apparatus, or device.

[0162] In summary, the network communication anomaly identification method, system and medium based on deep learning of the present invention obtain accurate detection results by performing real-time detection on the communication network, and establish a reference data set that matches the obtained detection results. Subsequently, a weight training data set and an inspection result training data set are respectively established according to the detection results and the reference data set, and model training is performed using the weight training data set and the inspection result training data set to obtain a weight network model and a detection network model, so as to facilitate model fusion of the weight network model and the detection network model to obtain an accurate target network model. In the subsequent communication process, the target network model can be used to perform rapid detection and real-time detection of communication network anomalies, effectively improving detection efficiency and accuracy, and meeting the detection needs of the communication network. Therefore, the present invention effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.

[0163] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the present invention. Anyone skilled in the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by one of ordinary skill in the art without departing from the spirit and technical principles disclosed herein are intended to be covered by the claims of the present invention.

Claims

1. A method for identifying network communication anomalies based on deep learning, characterized in that: The following steps are involved: During the communication process, randomly intercepting a network data stream, and performing a preliminary abnormality check on the network data stream to obtain a first check result; After determining that the network data flow is abnormal according to the first inspection result, obtaining communication network related information and fault related information, matching corresponding reference data in a sample database according to the fault related information and forming a reference data set; Establish an inspection example matrix according to the communication network related information and the fault related information, perform a deep inspection on the network data flow through the inspection example matrix to obtain a second inspection result, establish a weight training data set according to the fault related information and the reference data set, and establish an inspection result training data set according to the reference data set and the second inspection result; The weight training data set is used to train the weight initial model to obtain a weight network model, and the inspection result training data set is used to train the result initial model to obtain a detection network model; A target network model is obtained by fusion training the weight network model and the detection network model, and anomalies of network communication are identified based on the target network model; The acquiring of communication network related information and fault related information, matching corresponding reference data in a sample database according to the fault related information to form a reference data set, comprises: Acquire the communication network related information according to the type of the communication network, and determine the current fault related information according to the hardware parameters and the network configuration parameters; Extracting characteristic type data from the fault related information, and performing difference fitting between the characteristic type data and preset type data to obtain a comparative fitting curve; Matching corresponding reference data in the sample database according to the comparison fitting curve to form a reference data set; The fault related information includes a fault type, and the fault type includes a hardware fault, a software fault, and a user abnormality. The example inspection matrix is ​​established according to the communication network related information and the fault related information, including: After determining that a hardware fault exists in the fault type, calling a first check instruction and storing it in a check instruction set; after determining that a software fault exists in the fault type, calling a second check instruction and storing it in the check instruction set; after determining that a user abnormality exists in the fault type, calling a third check instruction and storing it in the check instruction set; Classifying the communication network related information according to the fault type to obtain three groups of branch related information; Performing matrix fusion on the inspection instruction set stored in the plurality of inspection instructions and the branch related information to form the inspection example matrix; The extracting characteristic type data from the fault related information, and performing difference fitting between the characteristic type data and preset type data to obtain a comparative fitting curve, comprises: Classify and extract the fault-related information according to a preset classification table to obtain feature type data of different categories; Calculating the relative difference rate between the characteristic type data and the preset type data; Fitting the characteristic type data and the preset type data according to the relative difference rate to obtain two groups of fitting data, respectively calculating the average values ​​of the two groups of fitting data to obtain a group of mean data, and establishing the comparative fitting curve according to the mean data; The matching corresponding reference data in the sample database according to the comparison fitting curve to form a reference data set includes: Obtaining a calculation formula for the comparative fitting curve, and matching corresponding parameter data in the sample database according to the range of the formula parameters to form a reference data set; The step of establishing a weight training data set according to the fault-related information and the reference data set, and establishing an inspection result training data set according to the reference data set and the second inspection result includes: Splitting the reference data set into a standard parameter data set and a standard result data set; Comparing the fault-related information with the standard parameter data set to obtain the same parameters and the difference parameters between the two, and establishing the weight training data set according to the same parameters and the difference parameters; Comparing the standard result data set with the second inspection result to obtain the same results and the difference results between the two, and establishing the inspection result training data set according to the same results and the difference results; Wherein, the weight training data set and the inspection result training data set are both data sets divided by a cross-validation method.

2. The method for identifying network communication anomalies based on deep learning according to claim 1 is characterized in that: The randomly intercepting the network data flow and performing a preliminary abnormality check on the network data flow to obtain a first check result includes: correspondingly capturing data in the communication data stream according to the generated random sequence to obtain the network data stream; Matching a corresponding first verification instruction in a pre-stored instruction library according to the random sequence; The first verification instruction is called to perform an abnormality check on the network data flow to obtain current hardware parameters and network configuration parameters, so as to determine whether there is an abnormality in the communication network according to the hardware parameters and the network configuration parameters.

3. The method for identifying network communication anomalies based on deep learning according to claim 1, characterized in that: The performing a deep inspection on the network data flow by using the inspection example matrix to obtain a second inspection result includes: performing a normalization process on the inspection example matrix to form a standard example matrix; Performing inspection tests on the communication network according to the examples in the inspection example matrix to obtain an inspection result matrix, and searching for a corresponding standard result matrix in past communication records according to the elements in the standard example matrix; The second inspection result is obtained according to the difference between each item of the inspection result matrix and the standard result matrix.

4. The method for identifying network communication anomalies based on deep learning according to claim 1, characterized in that: The performing a deep inspection on the network data flow through the inspection example matrix to obtain a second inspection result further includes: respectively acquiring the first inspection instruction, the second inspection instruction, the third inspection instruction and the branch related information according to the inspection example matrix; Inputting the first inspection instruction to the communication network to obtain first feedback information, a base station device protocol IP address, and a connection device IP address, determining that the communication network generates a hardware report according to the first feedback information, the base station device protocol IP address, and the connection device IP address, so as to determine whether there is a hardware fault according to the hardware report and the corresponding branch related information; inputting the second inspection instruction to the communication network to obtain second feedback information, obtaining a local parameter configuration and a network parameter configuration of the communication network according to the second feedback information, generating a configuration report according to the local parameter configuration and the network parameter configuration, and determining whether there is a software fault according to the configuration report and the corresponding branch related information; Inputting the third inspection instruction to the communication network to obtain third feedback information, generating a matching index report according to the third feedback information, and determining whether there is a user abnormality according to the matching index report and the corresponding branch related information; The second inspection result includes a hardware report, a configuration report and a matching index report.

5. The method for identifying network communication anomalies based on deep learning according to claim 4 is characterized in that: The step of inputting the third inspection instruction to the communication network to obtain third feedback information, and generating a matching index report according to the third feedback information, comprises: Obtain a user information list in the communication network, and match corresponding target user information in the user information list according to the third inspection instruction, wherein the target user information includes a user IP address, time period information, traffic feature information, and attack information; Inputting the third inspection instruction into the communication network to obtain the third feedback information, wherein the third feedback information includes a feedback IP address, a feedback time period, feedback traffic characteristics, and feedback attack characteristics; Performing similarity fitting on the feedback IP address, the feedback time period, the feedback traffic characteristics and the feedback attack characteristics with the user IP address, the time period information, the traffic characteristic information and the attack information to obtain a first matching degree, a second matching degree, a third matching degree and a fourth matching degree respectively; The matching index report is generated according to the first matching degree, the second matching degree, the third matching degree and the fourth matching degree.

6. The method for identifying network communication anomalies based on deep learning according to claim 1, characterized in that: The step of performing fusion training on the weight network model and the detection network model to obtain a target network model includes: Generate N random probability arrays through a probabilistic random model, and fuse each of the random probability arrays with the weight network model and the detection network model to obtain N groups of auxiliary weight network models and N groups of auxiliary detection network models, where N is an integer greater than 10; Establishing N groups of auxiliary weight network models and the weight network model as a first model group, and establishing N groups of auxiliary detection network models and the detection network model as a second model group; According to the fusion model, the models in the first model group and the models in the second model group are randomly combined and fused to obtain M groups of combined models, M=(N+1) (N+1), M is the number of the combination models, and M is a positive integer; Input the inspection example matrix into M groups of the combination models respectively to obtain corresponding combination model output results, and calculate the similarity between each group of the combination model output results and the corresponding second inspection result; The combined model with the highest similarity is selected as the target network model.

7. A network communication anomaly identification system based on deep learning, characterized in that: include: A preliminary inspection module, used for randomly intercepting a network data stream during a communication process, and performing a preliminary abnormality inspection on the network data stream to obtain a first inspection result; An information acquisition module, configured to obtain information related to the communication network and information related to the fault after determining that the network data flow is abnormal according to the first inspection result, and to match corresponding reference data in a sample database according to the fault-related information to form a reference data set; a data set establishment module, configured to establish an inspection example matrix according to the communication network related information and the fault related information, perform a deep inspection on the network data flow through the inspection example matrix to obtain a second inspection result, establish a weight training data set according to the fault related information and the reference data set, and establish an inspection result training data set according to the reference data set and the second inspection result; A modeling module, used for training the weight initial model with the weight training data set to obtain a weight network model, and training the result initial model with the inspection result training data set to obtain a detection network model; A fusion identification module, used for obtaining a target network model by performing fusion training on the weight network model and the detection network model, and identifying abnormalities in network communication based on the target network model; The acquiring of the communication network related information and the fault related information, and matching the corresponding reference data in the sample database according to the fault related information to form a reference data set, includes: Acquire the communication network related information according to the type of the communication network, and determine the current fault related information according to the hardware parameters and the network configuration parameters; Extracting characteristic type data from the fault related information, and performing difference fitting between the characteristic type data and preset type data to obtain a comparative fitting curve; Matching corresponding reference data in the sample database according to the comparison fitting curve to form a reference data set; The fault related information includes a fault type, and the fault type includes a hardware fault, a software fault, and a user abnormality. The example inspection matrix is ​​established according to the communication network related information and the fault related information, including: After determining that a hardware fault exists in the fault type, calling a first check instruction and storing it in a check instruction set; after determining that a software fault exists in the fault type, calling a second check instruction and storing it in the check instruction set; after determining that a user abnormality exists in the fault type, calling a third check instruction and storing it in the check instruction set; Classifying the communication network related information according to the fault type to obtain three groups of branch related information; Performing matrix fusion on the inspection instruction set stored in the plurality of inspection instructions and the branch related information to form the inspection example matrix; The extracting characteristic type data from the fault related information, and performing difference fitting between the characteristic type data and preset type data to obtain a comparative fitting curve, comprises: Classify and extract the fault-related information according to a preset classification table to obtain feature type data of different categories; Calculating the relative difference rate between the characteristic type data and the preset type data; Fitting the characteristic type data and the preset type data according to the relative difference rate to obtain two groups of fitting data, respectively calculating the average values ​​of the two groups of fitting data to obtain a group of mean data, and establishing the comparative fitting curve according to the mean data; The matching corresponding reference data in the sample database according to the comparison fitting curve to form a reference data set includes: Obtaining a calculation formula for the comparative fitting curve, and matching corresponding parameter data in the sample database according to the range of the formula parameters to form a reference data set; The step of establishing a weight training data set according to the fault-related information and the reference data set, and establishing an inspection result training data set according to the reference data set and the second inspection result includes: Splitting the reference data set into a standard parameter data set and a standard result data set; Comparing the fault-related information with the standard parameter data set to obtain the same parameters and the difference parameters between the two, and establishing the weight training data set according to the same parameters and the difference parameters; Comparing the standard result data set with the second inspection result to obtain the same results and the difference results between the two, and establishing the inspection result training data set according to the same results and the difference results; Wherein, the weight training data set and the inspection result training data set are both data sets divided by a cross-validation method.

8. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for identifying network communication anomalies based on deep learning described in any one of claims 1 to 6 is implemented.