An IPv6 network security protection system
By using deep learning technologies such as convolutional neural networks in the IPv6 network security protection system to analyze network traffic in real time, it solves the problem of insufficient real-time performance of existing systems in responding to complex threats, and achieves the ability to quickly identify and intercept malicious traffic. Improved protective efficiency.
Patent Information
- Application Number
- CN202410921013.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-10
AI Technical Summary
The existing IPv6 network security protection system has low real-time performance in responding to complex and unpredictable network threats and cannot respond quickly. Its reliance on predefined security specifications makes it difficult for detection methods to effectively respond to new threats.
Using traffic data collection, preprocessing, safety factor calculation, convolutional neural network prediction model construction and real-time security detection module, through preprocessing and feature extraction of network traffic, the safety factor is calculated and comprehensive network security parameters are generated to determine the traffic type in real time. , combined with request frequency and session duration, dynamically adjust security thresholds to quickly identify and intercept malicious traffic.
It improves the protection capabilities against new threats and realizes rapid response to complex network threats. The system is not only effective when first deployed, but can also learn and adapt based on continuous data to keep up with the rapidly evolving network threat environment.
Smart Images

Figure CN118473829B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network communication, and in particular to an IPv6 network security protection system. Background Art
[0002] With the deepening of the informationization process and the rapid development of the Internet, people's work, study and lifestyle are undergoing tremendous changes, efficiency is greatly improved, and information resources are shared to the greatest extent. However, it must be noted that the network security issues that follow the development of informationization are becoming increasingly prominent. If this problem is not well solved, it will inevitably hinder the process of informationization development.
[0003] Although IPv6 technology solves the current problem of IP address shortage, it also brings new changes and challenges to network security protection. Due to its huge address space, IPv6 has a natural advantage in dealing with some security attacks, and improves network security in terms of traceability, anti-hacker sniffing capabilities, neighbor discovery protocol, secure neighbor discovery protocol, and end-to-end IPSec secure transmission capabilities;
[0004] However, under the IPv6 network, new security issues also arise. For example, the detection methods for security detection will become more and more difficult, user privacy will be more easily exposed, and the Internet exposure is also increasing. In the network environment, some organizations or individuals, for some special purpose, leak information, destroy information, infringe on information and infiltrate ideological information, and even carry out political subversion through the Internet, which threatens the national interests, social public interests and the legitimate rights and interests of various entities. Therefore, a protection system that can automatically detect network security is very necessary for network security.
[0005] In the prior art, publication number CN111641639A discloses an IPv6 network security protection system, including a static security protection module and a dynamic security operation module interconnected through an IPv6 network; the static security protection module is used to isolate and control each unit or module through the IPv6 network, adjust the corresponding security specifications and control measures to monitor the static security information of the IPv6 network; the dynamic security operation module is used to discover and manage network security risks through security detection and the cooperation of corresponding security infrastructure, security organization unit, security policy unit and security technology unit, and provide security protection to the terminal network through the IPv6 network. This invention enhances the intranet security of the enterprise; ensures security during the transition period; reports faults. The DNS security protection in the IPv4 network environment provides support for the IPv6 protocol, effectively controls and prevents network security risks and transitional technical security risks; but in this system, the corresponding security specifications are adjusted through the static security protection module, and it is necessary to rely on the formulated security specifications for network security monitoring, resulting in low real-time performance of the system and inability to quickly respond to increasingly complex and unpredictable network threats.
[0006] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention
[0007] The purpose of the present invention is to provide an IPv6 network security protection system to solve the problems raised in the above background technology.
[0008] To achieve the above object, the present invention provides the following technical solutions:
[0009] An IPv6 network security protection system, specifically comprising:
[0010] A traffic data collection module is used to collect historical security event record data, wherein the security event record data includes identified malicious traffic and normal traffic;
[0011] A data preprocessing module is used to obtain traffic data of identified malicious traffic and normal traffic, wherein the traffic data includes source IP address, destination IP address, timestamp, transport layer protocol and packet size, preprocess the traffic data, and map the preprocessed data one by one to generate a detection data set;
[0012] The safety factor calculation module is used to calculate the safety factor of the corresponding flow according to the data in the detection data set, so as to evaluate the safety of the flow;
[0013] The prediction model building module is used to build a convolutional neural network, extract the data in the detection data set as feature vectors, use the extracted feature vectors as the input of the convolutional neural network, and use the safety factor of the corresponding flow as a label to train the initial neural network to obtain a safety prediction model;
[0014] A real-time safety detection module is used to collect real-time traffic data, pre-process the real-time traffic data, and then input the processed real-time data into a safety prediction model obtained by the method of establishing a safety prediction model to obtain a corresponding traffic safety factor;
[0015] The network security protection module is used to generate comprehensive network security parameters based on the obtained traffic safety factor combined with the traffic request frequency and session duration, and determine the type of traffic, which includes malicious traffic and normal traffic. The generated comprehensive network security parameters are compared with the preset security threshold, and the type of traffic is determined according to different comparison results.
[0016] Furthermore, traffic data of identified malicious traffic and normal traffic is obtained, including source IP address, destination IP address, timestamp, transport layer protocol and packet size, and the data is calibrated, with the timestamp being t i , the transport layer protocol is marked as TCP i , the data packet size is calibrated in GB i , where i = 1, 2, ..., n, and n is the number of security event record data collected.
[0017] Furthermore, the logic of preprocessing the traffic data is as follows: the traffic data includes a source IP address, a destination IP address, a timestamp, a transport layer protocol, and a data packet size, wherein the timestamp, the transport layer protocol, and the data packet size are de-dimensionalized, and the source IP address and the destination IP address are converted into numerical features using a hash function to obtain a corresponding fixed-length hash value, and the hash values obtained after the source IP address and the destination IP address are calibrated as IP addresses, respectively. i and IPE i ,The preprocessed data is mapped one by one with the corresponding traffic to generate a detection data set.
[0018] Furthermore, according to the data in the detection data set, the logic for calculating the safety factor of the corresponding flow is:
[0019] The safety factor of the calibrated flow is SAFE i , the formula for calculating the safety factor of the corresponding flow is:
[0020]
[0021] Where a, b, c, d, and e represent the weight coefficients corresponding to the source IP address, destination IP address, transport layer protocol, timestamp, and packet size, respectively. A, b, c, d, and e are all greater than 0 and a>b>c>d>e. R IP Represents a set of hash values of suspicious geographic locations or known malicious IP addresses, R IPj Represents the hash value of the jth IP address in the set of hash values of suspicious geographic locations or known malicious IP addresses, where j = 1, 2, …, m.
[0022] Furthermore, in the safety factor calculation formula for flow, D min (IPS i ,R IPj ) represents the hash value of the i-th source IP address IPS i The minimum Hamming distance calculated one by one from the m malicious IP address hash values in the suspicious geographic location or known malicious IP address hash value set, the u-th destination IP address hash value IPE iThe minimum Hamming distance D calculated from the hash values of the m malicious IP addresses in the suspicious geographic location or known malicious IP address hash value set min (IPE i ,R IPi );
[0023] The formula for calculating the Hamming distance is:
[0024]
[0025] Where D i (IPS i ,R IPj ) represents the hash value of the i-th source IP address IPS i Hash value R with suspicious geographic location or known malicious IP address IPj The Hamming distance, α i and β i IPS i ,R IPj The character at position i, represents an XOR operation, l is the length of the hash value character; then the i-th source IP address hash value IPS i The formula for calculating the minimum Hamming distance between the m malicious IP address hash values in the suspicious geographic location or known malicious IP address hash value set is:
[0026] D min (IPS i ,R IPj )=min[D1(IPS i ,R IPj ),D2(IPS i ,R IPj ),…,D m (IPS i ,R IPj )]
[0027] The hash value of the i-th source IP address IPS i The minimum Hamming distance D calculated from the hash values of the m malicious IP addresses one by one min (IPS i ,R IPj ).
[0028] Furthermore, the established convolutional neural network structure includes an input layer, a convolutional layer, an activation function, a pooling layer and an output layer, wherein the activation function selects the ReLU activation function, extracts the data in the detection data set as a feature vector, uses the extracted feature vector as the input of the convolutional neural network, and uses the safety factor of the corresponding traffic as a label to train the initial neural network to obtain a safety prediction model.
[0029] Further, according to the obtained traffic safety factor, combined with the traffic request frequency and session duration, the logic for generating the comprehensive network security parameter is as follows:
[0030] Calibrate the traffic request frequency as f and the session duration as T to generate the comprehensive network security parameter
[0031] The calculation formula for the comprehensive network security parameter is as follows:
[0032] ZH = x * SAFE ω + y * f + z * T
[0033] In the formula, SAFE ω is the safety factor of the real-time traffic data, f is the request frequency of this traffic, T is the session duration of this traffic, ZH is the comprehensive network security parameter, and x, y, and z are the weight ratio coefficients of the safety factor of the real-time traffic data, the request frequency f of the traffic, and the session duration T of the traffic, respectively. x, y, and z are all greater than 0 and x > y > z.
[0034] Further, according to the generated comprehensive network security parameter, the logic for judging the type of traffic is as follows:
[0035] The types of the traffic include malicious traffic and normal traffic. Calibrate the preset safety threshold as td, compare the generated comprehensive network security parameter with the preset safety threshold, and judge the type of this traffic according to different comparison results:
[0036] When ZH ≥ td, judge that this traffic is malicious traffic, perform an interception operation on this traffic, and prohibit continued access;
[0037] When ZH < td, judge that this traffic is normal traffic, do not perform an interception operation on this traffic, and allow access.
[0038] Compared with the prior art, the beneficial effects of the present invention are as follows: by collecting historical security event record data, the security event record data includes identified malicious traffic and normal traffic; obtaining traffic data of identified malicious traffic and normal traffic, the traffic data includes source IP address, destination IP address, timestamp, transport layer protocol and data packet size, preprocessing the traffic data, and mapping the preprocessed data one by one to generate a detection data set; according to the data in the detection data set, calculating the safety factor of the corresponding traffic, which is used to evaluate the safety of the traffic; constructing a convolutional neural network, extracting the data in the detection data set as a feature vector, using the extracted feature vector as the input of the convolutional neural network, and using the safety factor of the corresponding traffic as a label, training the initial neural network to obtain a security prediction model; collecting real-time traffic data, preprocessing the real-time traffic data, and inputting the processed real-time data into the established The corresponding traffic safety factor is obtained in the security prediction model obtained by the method of the security prediction model; the comprehensive network security parameters are generated according to the obtained traffic safety factor combined with the traffic request frequency and the session duration, and the type of traffic is judged, the type of traffic includes malicious traffic and normal traffic, and the type of the traffic is judged according to different comparison results by comparing the generated comprehensive network security parameters with the preset security threshold; this system uses convolutional neural networks to extract key features from network traffic data, which breaks through the traditional detection method based on manual rules and signatures, thereby improving the protection ability against new threats, and analyzes network traffic behavior in real time through deep learning models. This real-time performance can quickly respond to increasingly complex and unpredictable network threats. At the same time, the system is not only effective when it is first deployed, but also continuously learns and adapts according to new data continuously collected, which enables the security system to keep up with the rapidly evolving network threat environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic diagram of the overall system structure of the present invention. DETAILED DESCRIPTION
[0040] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.
[0041] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0042] Example:
[0043] See also Figure 1 , the present invention provides a system solution:
[0044] An IPv6 network security protection system, specifically comprising:
[0045] A traffic data collection module is used to collect historical security event record data, wherein the security event record data includes identified malicious traffic and normal traffic;
[0046] Methods for obtaining historical security event record data include: system logs: operating systems usually record security-related events, such as login attempts, permission changes, system errors, etc. In Linux systems, these logs may be in the / var / log / directory, such as auth.log, syslog, etc. In Windows systems, they can be accessed through the Event Viewer; firewall, intrusion detection system (IDS) and intrusion prevention system (IPS) logs: these devices usually record all suspicious activities detected, and they may provide detailed information, such as attack type, time, source and destination IP addresses; public databases and blacklists: such as the National Vulnerability Database (NVD), Open Threat Exchange (OTX), and various online threat intelligence platforms.
[0047] A data preprocessing module is used to obtain traffic data of identified malicious traffic and normal traffic, wherein the traffic data includes source IP address, destination IP address, timestamp, transport layer protocol and packet size, preprocess the traffic data, and map the preprocessed data one by one to generate a detection data set;
[0048] Obtain traffic data of identified malicious traffic and normal traffic, including source IP address, destination IP address, timestamp, transport layer protocol, and packet size, and calibrate the data with the timestamp t i , the transport layer protocol is marked as TCP i , the data packet size is calibrated in GB i , where i = 1, 2, ..., n, and n is the number of security event record data collected.
[0049] The logic of preprocessing the traffic data is as follows: the traffic data includes a source IP address, a destination IP address, a timestamp, a transport layer protocol and a data packet size, wherein the timestamp, the transport layer protocol and the data packet size are de-dimensionalized to obtain unitless data; wherein the transport layer protocol is a protocol used in a computer network, which is located at the fourth layer of the OSI model and is mainly responsible for providing end-to-end data transmission services. In network traffic data, the transport layer protocol is usually represented as a numerical value to distinguish TCP and UDP traffic. This information is very important for network security analysis because different protocols may have different security features and vulnerabilities. In an IPv6 network, the transport layer protocol information is usually embedded in the subsequent payload data portion, which can be used to help security systems identify and classify network activities in order to implement more sophisticated security policies and detect possible malicious behaviors;
[0050] The source IP address and the destination IP address use a hash function to convert the IP address into a numerical feature to obtain the corresponding fixed-length hash value. The hash values obtained after the source IP address and the destination IP address preprocessing are IPS i and IPE i , map the preprocessed data with the corresponding traffic one by one to generate a detection data set;
[0051] A hash function is a method of mapping an input (or "message") to a fixed-size string (usually a number). This process is called hashing. SHA-256 (Secure Hash Algorithm 256bit) is a hash function that can map data of any length to a fixed-length (256 bits, or 32 bytes) hash value. The algorithm ensures that even a slight change in the input will result in a significant change in the output hash value. When an IP address is passed as input to the SHA-256 function, it will output a 256-bit hash value. Since the output produced by SHA-256 is of fixed length, no matter how large the input data is, the output will be a string of 64 hexadecimal digits.
[0052] The safety factor calculation module is used to calculate the safety factor of the corresponding flow according to the data in the detection data set, so as to evaluate the safety of the flow;
[0053] According to the data in the detection data set, the logic for calculating the safety factor of the corresponding flow is:
[0054] The safety factor of the calibrated flow is SAFE i , the formula for calculating the safety factor of the corresponding flow is:
[0055]
[0056] Where a, b, c, d, and e represent the weight coefficients corresponding to the source IP address, destination IP address, transport layer protocol, timestamp, and packet size, respectively. A, b, c, d, and e are all greater than 0 and a>b>c>d>e. R IP Represents a set of hash values of suspicious geographic locations or known malicious IP addresses, R IPj Represents the hash value of the jth IP address in the set of hash values of suspicious geographic locations or known malicious IP addresses, where j = 1, 2, ..., m, D min (IPS i ,P IPj ) represents the hash value of the i-th source IP address IPS i The minimum Hamming distance calculated from the hash values of the m malicious IP addresses in the suspicious geographic location or known malicious IP address hash value set, D min (IRE i ,R IPi ) represents the hash value IPE of the i-th destination IP address i The minimum Hamming distance calculated from the hash values of the m malicious IP addresses in the set of hash values of the suspicious geographic location or known malicious IP addresses;
[0057] The formula for calculating the Hamming distance is:
[0058]
[0059] Where D i (IPS i ,R IPj ) represents the hash value of the i-th source IP address IPS i Hash value R with suspicious geographic location or known malicious IP address IPj The Hamming distance, α i and β i IPS i ,R IPj The character at position i, represents an XOR operation, l is the length of the hash value character; then the i-th source IP address hash value IPS i The formula for calculating the minimum Hamming distance between the m malicious IP address hash values in the suspicious geographic location or known malicious IP address hash value set is:
[0060] D min (IPS i ,R IPj )=min[D1(IPS i ,R IPj ),D2(IPS i ,R IPj ),…,D m (IPS i ,R IPj )]
[0061] D min (IPE i ,R IPi ) is calculated in the same way;
[0062] The Hamming distance is calculated by counting how many characters are different in the same position between two strings of equal length. The smaller the Hamming distance between the source IP address and the destination IP address of the target traffic and the hash value of the malicious IP address in the suspicious geographic location or the known malicious IP address hash value set, the higher the similarity between the two, and the safety factor is SAFE. i will increase, indicating that the current traffic is more likely to be malicious traffic;
[0063] Malicious traffic and normal traffic can show some significant differences in data such as source IP address, destination IP address, timestamp, transport layer protocol, packet size, etc. These differences can be used for network security analysis to help identify and classify network traffic to detect and respond to network security threats. For source IP address and destination IP address: malicious traffic source IP may come from a known malicious IP address pool, and destination IP may frequently point to certain specific servers or endpoints, especially control servers or attacked targets. Normal traffic source IP and destination IP are usually relatively stable and come from a trusted or expected network range.
[0064] For timestamps: Malicious traffic activity may occur during non-working hours or abnormal times, especially when launching attacks or conducting data theft. Normal traffic activity usually conforms to the daily usage patterns of business or individuals, such as increased working hours, and the time distribution is relatively uniform, without obvious abnormal peaks;
[0065] For transport layer protocols: Malicious traffic often uses non-standard ports and protocols to communicate in order to evade protocol-based monitoring and filtering. Normal traffic usually uses standard protocols and ports, such as HTTP (port 80) and HTTPS (port 443). The protocol usage meets business needs and network architecture.
[0066] Regarding packet size: Malicious traffic packet size may not conform to regular network traffic patterns, such as abnormally small or large packets. When conducting data theft or distributed denial of service attacks, a series of large packets may be sent. Normal traffic packet size is usually standardized and conforms to the usual use of applications and network protocols. The packet size distribution is relatively consistent and is related to normal operations and tasks in the network.
[0067] The prediction model building module is used to build a convolutional neural network, extract the data in the detection data set as feature vectors, use the extracted feature vectors as the input of the convolutional neural network, and use the safety factor of the corresponding flow as a label to train the initial neural network to obtain a safety prediction model;
[0068] The established convolutional neural network structure includes an input layer, a convolutional layer, an activation function, a pooling layer and an output layer. The activation function selects the ReLU activation function, extracts the data in the detection data set as the feature vector, and uses the extracted feature vector as the input of the convolutional neural network. The safety factor of the corresponding traffic flow is used as the label to train the initial neural network to obtain a safety prediction model.
[0069] A real-time safety detection module is used to collect real-time traffic data, pre-process the real-time traffic data, and then input the processed real-time data into a safety prediction model obtained by the method of establishing a safety prediction model to obtain a corresponding traffic safety factor;
[0070] According to the collected real-time traffic data, it is preprocessed, including dedimensionalization of timestamp, transport layer protocol and data packet size and hash processing of source IP address and destination IP address. The processed real-time data is input into the security prediction model obtained by the method of establishing the security prediction model to obtain the safety factor corresponding to the real-time traffic data.
[0071] A network security protection module is used to generate a comprehensive network security parameter based on the obtained traffic security factor combined with the traffic request frequency and the session duration, and determine the type of traffic, wherein the type of traffic includes malicious traffic and normal traffic, and compare the generated comprehensive network security parameter with a preset security threshold to determine the type of traffic based on different comparison results;
[0072] According to the obtained flow safety factor, the logic for judging the flow type is:
[0073] Generate a comprehensive network security parameter based on the obtained traffic safety factor in combination with the traffic request frequency and session duration
[0074] The calculation formula on which the comprehensive network security parameter is based is as follows:
[0075] ZH = x * SAFE ω + y * f + z * T
[0076] In the formula, SAFE ω is the safety factor of real-time traffic data, f is the request frequency of this traffic, T is the session duration of this traffic, ZH is the comprehensive network security parameter, and x, y, and z are the weight ratio coefficients of the safety factor of real-time traffic data, the request frequency f of the traffic, and the session duration T of the traffic respectively. x, y, and z are all greater than 0 and x > y > z. The larger SAFE ω is, the greater the safety factor of real-time traffic data, and the higher the probability that this traffic is malicious traffic. ZH is directly proportional to SAFE ω and ZH increases as SAFE ω increases. At the same time, if a large number of requests are sent from the same IP address in a very short period of time, then this may be a malicious request. For normal users, the frequency of such requests is very low. Therefore, the higher the request frequency f of this traffic, the higher the probability that this traffic is malicious traffic, and ZH is directly proportional to f as well; some malicious traffic will try to create long connections to occupy server resources, so the duration of the connection can be checked; the longer the session duration, the higher the probability that this traffic is malicious traffic. Considering the three influencing factors and assigning different weight coefficients, the comprehensive network security parameter ZH for judging the type of real-time traffic is obtained;
[0077] The types of the traffic include malicious traffic and normal traffic. Set a preset security threshold as td, compare the generated comprehensive network security parameter with the preset security threshold, and judge the type of this traffic according to different comparison results:
[0078] When ZH ≥ td, judge that this traffic is malicious traffic, perform an interception operation on this traffic, and prohibit further access;
[0079] When ZH < td, judge that this traffic is normal traffic, do not perform an interception operation on this traffic, and allow access.
[0080] According to the comparison between the generated comprehensive network security parameter ZH and the preset security threshold, when the comprehensive network security parameter ZH is greater than the preset security threshold td, it indicates that the traffic meets the standard of malicious traffic, and the traffic is intercepted or access is prohibited to avoid network attacks. When the comprehensive network security parameter ZH is less than the preset security threshold td, it indicates that the traffic is normal traffic and continued access is allowed. The threshold can be automatically adjusted according to different network environments to make the detection more sensitive and accurate.
[0081] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0082] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. Those skilled in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software methods depends on the specific application and design constraints of the technical solution.
[0083] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0084] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. An IPv6 network security protection system, characterized in that: Specifically include: A traffic data collection module for collecting historical security event record data, where the security event record data includes identified malicious traffic and normal traffic; A data preprocessing module for obtaining traffic data of identified malicious traffic and normal traffic. The traffic data includes source IP address, destination IP address, timestamp, transport layer protocol, and packet size. Preprocess the traffic data and map the preprocessed data one by one to generate a detection data set; A security coefficient calculation module for calculating the security coefficient of the corresponding traffic based on the data in the detection data set to evaluate the security of the traffic; Obtain traffic data of identified malicious traffic and normal traffic, including source IP address, destination IP address, timestamp, transport layer protocol, and packet size, and calibrate the data with the timestamp t i , the transport layer protocol is marked as TCP i , the data packet size is calibrated in GB i , where i = 1, 2, ..., n, and n is the number of security event record data collected; The traffic data includes source IP address, destination IP address, timestamp, transport layer protocol and data packet size, wherein the timestamp, transport layer protocol and data packet size are de-dimensionalized, and the source IP address and the destination IP address are converted into numerical features using a hash function to obtain a corresponding fixed-length hash value, and the hash values obtained after the source IP address and the destination IP address are calibrated and pre-processed are IP addresses. i and IPE i , map the preprocessed data with the corresponding traffic one by one to generate a detection data set; The logic for calculating the security coefficient of the corresponding traffic based on the data in the detection data set is: The safety factor of the calibrated flow is SAFE i , the formula for calculating the safety factor of the corresponding flow is: Where a, b, c, d, and e represent the weight coefficients corresponding to the source IP address, destination IP address, transport layer protocol, timestamp, and packet size, respectively. A, b, c, d, and e are all greater than 0 and a>b>c>d>e. R IP Represents a set of hash values of suspicious geographic locations or known malicious IP addresses, R IPj Represents the hash value of the jth IP address in the set of hash values of suspicious geographic locations or known malicious IP addresses, where j = 1, 2, ..., m; In the calculation formula of flow safety factor, D min (IPS i ,R IPj ) represents the hash value of the i-th source IP address IPS i The minimum Hamming distance calculated one by one from the m malicious IP address hash values in the suspicious geographic location or known malicious IP address hash value set, the i-th destination IP address hash value IPE i The minimum Hamming distance calculated from the hash values of the m malicious IP addresses in the suspicious geographic location or known malicious IP address hash value set is expressed as D min (IPE i ,R IPi ); The formula for calculating the Hamming distance is: Where D i (IPS i ,R IPj ) represents the hash value of the i-th source IP address IPS i Hash value R with suspicious geographic location or known malicious IP address IPj The Hamming distance, α i and β i IPS i ,R IPj The character at the ith position, ⊕ represents an XOR operation, and l is the length of the hash value character; then the hash value of the ith source IP address is IPS i The formula for calculating the minimum Hamming distance between the m malicious IP address hash values in the suspicious geographic location or known malicious IP address hash value set is: D min (IPS i ,R IPj )=min[D1(IPS i ,R IPj ),D2(IPS i ,R IPj ),…,D m (IPS i ,R IPj )] The hash value of the i-th source IP address IPS i The minimum Hamming distance D calculated from the hash values of the m malicious IP addresses one by one min (IPS i ,R IPj ); A prediction model building module is used to build a convolutional neural network, extract the data in the detection data set as a feature vector, use the extracted feature vector as the input of the convolutional neural network, and use the safety factor of the corresponding flow as a label to train the initial neural network to obtain a safety prediction model; A real-time security detection module for collecting real-time traffic data. After preprocessing the real-time traffic data, input the processed real-time data into the security prediction model obtained by the method of establishing a security prediction model to obtain the corresponding traffic security coefficient; A network security protection module for generating comprehensive network security parameters based on the obtained traffic security coefficient combined with the traffic request frequency and session duration, and judging the type of traffic. The type of traffic includes malicious traffic and normal traffic. By comparing the generated comprehensive network security parameters with a preset security threshold, judge the type of this traffic according to different comparison results.
2. The IPv6 network security protection system according to claim 1, characterized in that: The established convolutional neural network structure includes an input layer, a convolutional layer, an activation function, a pooling layer, and an output layer. The ReLU activation function is selected as the activation function. Extract the data in the detection data set as feature vectors, use the extracted feature vectors as the input of the convolutional neural network, and use the security coefficient of the corresponding traffic as the label to train the initial neural network to obtain a security prediction model.
3. The IPv6 network security protection system according to claim 1, characterized in that: The logic for generating comprehensive network security parameters based on the obtained traffic security coefficient combined with the traffic request frequency and session duration is: Define the traffic request frequency as f and the session duration as T, and generate comprehensive network security parameters The calculation formula for the comprehensive network security parameters is: ZH=x*SAFE ω +y*f+z*T Where SAFE ω is the safety factor of real-time traffic data, f is the request frequency of the traffic, T is the session duration of the traffic, ZH is the comprehensive network security parameter, x, y, z are the weight ratio coefficients of the safety factor of real-time traffic data, the request frequency f of the traffic and the session duration T of the traffic, respectively, x, y, z are all greater than 0 and x>y>z.
4. The IPv6 network security protection system according to claim 3, characterized in that: The logic for judging the type of traffic based on the generated comprehensive network security parameters is: The type of traffic includes malicious traffic and normal traffic. Define the preset security threshold as td, compare the generated comprehensive network security parameters with the preset security threshold, and judge the type of this traffic according to different comparison results: When ZH ≥ td, judge that this traffic is malicious traffic, perform an interception operation on this traffic, and prohibit continued access; When ZH < td, judge that this traffic is normal traffic, do not perform an interception operation on this traffic, and allow access.
