IP data packet filtering method and device and medium

By using SDN controllers and neural network models in IP packet filtering, matching key features and security requirements, and selecting the shortest safe path for filtering, the problem of insufficient flexibility and accuracy in the existing technology is solved, and a more efficient Network packet filtering.

CN118611972AActive Publication Date: 2024-09-06CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410870124.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-06
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing IP packet filtering methods lack flexibility and applicability, cannot effectively respond to complex network topologies and changing network security threats, and have high false positives and false negatives, affecting filtering quality and accuracy.

Method used

By obtaining the current key security requirements and security response components, the Software Defined Network (SDN) controller is used to match the key characteristics of IP packets, select the shortest security path and perform filtering operations, dynamically update filtering rules, and combine recurrent neural networks and convolutional neural networks. The network analysis model calculates the similarity and risk level of security events to achieve accurate packet filtering.

Benefits of technology

It improves the flexibility, applicability and accuracy of IP packet filtering, dynamically responds to network security attacks, reduces false positives and false negatives, and enhances the accuracy and security of network packet filtering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611972A
    Figure CN118611972A
Patent Text Reader

Abstract

The invention provides an IP data packet filtering method and device and a medium, and relates to the technical field of network security, and the method comprises the steps: obtaining current key security requirements and a security response component corresponding to each current key security requirement; obtaining a first key feature of the first IP data packet and a first current key security demand matched with the first key feature; selecting a shortest security path of the first IP data packet, wherein the shortest security path comprises a first security response component corresponding to the first current key security demand; and performing a filtering operation on the first IP data packet by the first security response component in the shortest security path. According to the method and the device, the key features of the IP data packet are matched with the current key security demand, the shortest security path is selected to execute transmission and filtering of the IP data packet, and the proper security response component in the shortest security path executes the filtering operation on the first IP data packet, so that the flexibility, the applicability and the accuracy of IP data packet filtering are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure at least relates to the field of network security technology, and in particular to an IP data packet filtering method, an IP data packet filtering device, and a computer-readable storage medium. Background Art

[0002] The currently widely used IP (Internet Protocol) packet filtering method filters and further processes and manages IP packets transmitted from the network through pre-defined rules. By analyzing and detecting the application layer information in the data packets, a more accurate network security status can be obtained, thereby providing more accurate filtering results to ensure the safety and stability of network operation.

[0003] Existing technical solutions have achieved the availability and security of IP packet filtering to a large extent, but there are still many technical defects, including at least the following prominent aspects: traditional IP packet filtering methods are often based on static filtering rules, lack flexibility, and are not suitable for complex network topologies; traditional rule-based filtering methods are often targeted at individual security threats and cannot fully respond to the ever-changing network security attack methods; traditional IP packet filtering technology also has the problem of high false positives and missed negatives, which may lead to the loss of legitimate data or the passage of illegal data, affecting the quality and accuracy of network packet filtering. Summary of the invention

[0004] The technical problem to be solved by the present disclosure is to provide an IP data packet filtering method, an IP data packet filtering device and a computer-readable storage medium in view of the above-mentioned deficiencies, so as to solve the problem of how to improve the flexibility, applicability and accuracy of IP data packet filtering.

[0005] In a first aspect, the present disclosure provides an Internet Protocol (IP) data packet filtering method, the method comprising:

[0006] Obtain current key security requirements and the security response components corresponding to each current key security requirement;

[0007] Acquire a first key feature of a first IP data packet and a first current key security requirement matching the first key feature;

[0008] Selecting the shortest secure path for the first IP data packet, the shortest secure path including a first security response component corresponding to the first current critical security requirement;

[0009] A first security response component in the shortest secure path performs a filtering operation on the first IP data packet.

[0010] Further, the current key security requirements and the security response components corresponding to each current key security requirement are obtained, specifically including the following by the software defined network SDN controller:

[0011] receiving a plurality of current key security requirements defined by a network administrator, the current key security requirements including a second security event obtained according to a second IP data packet and a first type of a second network node processing the second security event;

[0012] The current network topology structure is obtained, a first network node of the first type corresponding to each current key security requirement in the current network topology structure is obtained, and a data filtering rule for processing a corresponding second security event is configured for the first network node.

[0013] Further, obtaining a first key feature of the first IP data packet and a first current key security requirement matching the first key feature specifically includes, by a software defined network SDN controller:

[0014] Extracting first attribute information and a first key field of the first IP data packet, converting the first attribute information and the first key field into a first vector, and inputting the first vector into a pre-trained traffic analysis model to obtain a first security event that may be caused by the first IP data packet;

[0015] Calculate the similarity between the first security event and the second security event, obtain the second security event combination with the minimum similarity of each first security event, calculate the relative entropy of the combination of the first security event and the second security event, and in response to the relative entropy being less than a set threshold, obtain the first current key security requirement combination corresponding to the second event combination.

[0016] Further, extracting the first attribute information and the first key field of the first IP data packet specifically includes:

[0017] Extracting first attribute information of the first IP data packet including packet size, transmission protocol type, transmission source address, and transmission destination address;

[0018] Use a recurrent neural network text analysis model and / or a convolutional neural network image recognition model to analyze whether the first IP data packet contains a specified first key field.

[0019] Further, after obtaining the first security event that may be caused by the first IP data packet, the method further includes, by a software defined network SDN controller:

[0020] Inputting the first vector into a pre-trained traffic classifier to obtain a first risk level of a first security event that may be caused by the first IP data packet;

[0021] The first IP data packet is encrypted, and an attribute tag including a first security event and a first risk level is added to the encrypted first IP data packet.

[0022] Further, selecting the shortest secure path for the first IP data packet, wherein the shortest secure path includes a first security response component corresponding to the first current critical security requirement, specifically includes:

[0023] In the current network topology, the transmission source address and the transmission destination address of the first IP data packet are determined, and the shortest secure path from the transmission source address to the transmission destination address is selected, where the shortest secure path includes a first network node of the first type corresponding to each first current critical security requirement.

[0024] Furthermore, the first security response component in the shortest security path performs a filtering operation on the first IP data packet, specifically including:

[0025] After the first security response component in the shortest security path determines that it needs to perform a filtering operation on the first IP data packet based on the attribute label, it decrypts the first IP data packet and processes the first IP data packet using its own data filtering rules.

[0026] In a second aspect, the present disclosure provides an Internet Protocol (IP) data packet filtering device, the device comprising:

[0027] A first acquisition module is used to acquire current key security requirements and security response components corresponding to each current key security requirement;

[0028] A second acquisition module, connected to the first acquisition module, for acquiring a first key feature of the first IP data packet and a first current key security requirement matching the first key feature;

[0029] A path selection module, connected to the second acquisition module, for selecting the shortest secure path for the first IP data packet, wherein the shortest secure path includes a first security response component corresponding to the first current critical security requirement;

[0030] The data filtering module is connected to the path selection module and is used for performing a filtering operation on the first IP data packet by the first security response component in the shortest security path.

[0031] Furthermore, the device comprises:

[0032] A software defined network SDN controller, wherein the first acquisition module, the second acquisition module and the path selection module are arranged in the SDN controller;

[0033] The network node is connected to the SDN controller, the security response component is selected and obtained from the network node, and the data filtering module is set in the security response component.

[0034] In a third aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the Internet Protocol (IP) data packet filtering method as described above is implemented.

[0035] The present disclosure provides an IP data packet filtering method, an IP data packet filtering device and a computer-readable storage medium. By matching the key features of the IP data packet with the current key security requirements, the shortest security path is selected to perform the transmission and filtering of the IP data packet. The appropriate security response component in the shortest security path performs the filtering operation on the first IP data packet. The IP filtering rules can be dynamically updated to cope with changing network security attacks, the IP data packets can be filtered more accurately, and the flexibility, applicability and accuracy of the IP data packet filtering can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 is a flow chart of an IP data packet filtering method according to an embodiment of the present disclosure;

[0037] Figure 2 It is a structural diagram of an IP data packet filtering device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0038] In order to enable those skilled in the art to better understand the technical solution of the present disclosure, the embodiments of the present disclosure will be further described in detail below with reference to the accompanying drawings.

[0039] It should be understood that the specific embodiments and drawings described herein are only used to explain the present disclosure rather than to limit the present disclosure.

[0040] It can be understood that, in the absence of conflict, the various embodiments of the present disclosure and the various features in the embodiments can be combined with each other.

[0041] It can be understood that, for the convenience of description, the drawings of the present disclosure only show parts related to the present disclosure, while parts irrelevant to the present disclosure are not shown in the drawings.

[0042] It can be understood that each unit and module involved in the embodiments of the present disclosure may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.

[0043] It will be understood that, in the absence of conflict, the functions and steps marked in the flowcharts and block diagrams of the present disclosure may occur in an order different from that marked in the drawings.

[0044] It is understood that the flowcharts and block diagrams of the present disclosure illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present disclosure. Each box in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or may be implemented by a combination of hardware and computer instructions.

[0045] It can be understood that the units and modules involved in the embodiments of the present disclosure can be implemented by software or hardware, for example, the units and modules can be located in a processor.

[0046] Embodiment 1:

[0047] like Figure 1 As shown, the present disclosure provides an Internet Protocol (IP) data packet filtering method, the method comprising:

[0048] S1. Obtain the current key security requirements and the security response components corresponding to each current key security requirement;

[0049] S2, obtaining a first key feature of the first IP data packet and a first current key security requirement matching the first key feature;

[0050] S3, selecting the shortest secure path for the first IP data packet, where the shortest secure path includes a first security response component corresponding to the first current critical security requirement;

[0051] S4. The first security response component in the shortest secure path performs a filtering operation on the first IP data packet.

[0052] In this embodiment, by matching the key features of the IP data packet with the current key security requirements, the shortest secure path is selected to perform the transmission and filtering of the IP data packet, and the appropriate security response component in the shortest secure path performs the filtering operation on the first IP data packet. The IP filtering rules can be dynamically updated to respond to changing network security attacks, filter IP data packets more accurately, and improve the flexibility, applicability and accuracy of IP data packet filtering.

[0053] Specifically, first define the current key security requirements, select the corresponding trigger response component according to each key security requirement, connect all the trigger response components into the rule chain with the shortest path, then test the rule chain, and convert the rule chain that passes the test into the corresponding policy rule combination. Key security requirements refer to the operation process corresponding to the events directly related to the security of each network node in the current network topology. The response component refers to the network resources required to execute the corresponding key security requirements. The IP packet filtering method of this embodiment adopts security policy automation and orchestration technology, and controls the flow of IP data packets by running policy rules on network devices. The policy rules are automatically configured according to different targets. The target attributes and states are different, and the matching policy rules are also different, so as to realize more intelligent IP data packet filtering management. Through centralized orchestration management, multiple policy rules are combined into a reasonable and coordinated security policy. The security policy includes physical security policy, access control policy, information encryption policy, security management policy, etc. According to the specific security situation, the appropriate policy rules and combination methods are automatically selected, so that the security protection of the network is more comprehensive and efficient. For example, when abnormal traffic is detected, automated orchestration can immediately classify the traffic as malicious traffic based on pre-set security policy rules, and implement a series of targeted protection measures for the traffic to improve the security and protection capabilities of the network.

[0054] The device corresponding to the method is as follows Figure 2 As shown, it includes a first acquisition module 1 for executing step S1, a second acquisition module 2 for executing step S2, a path selection module 3 for executing step S3, and a data filtering module 4 for executing step S4. Among them, steps S1, S2 and S3 are executed by a software defined network SDN controller, and step S4 is executed by a security response component, which is a part of the network node, that is, the device includes: a software defined network SDN controller, the first acquisition module 1, the second acquisition module 2 and the path selection module 3 are set in the SDN controller; a network node is connected to the SDN controller, the security response component selects and obtains from the network node, and the data filtering module 4 is set in the security response component.

[0055] In one implementation, S1, obtaining a current key security requirement and a security response component corresponding to each current key security requirement, specifically includes, by a software defined network SDN controller:

[0056] receiving a plurality of current key security requirements defined by a network administrator, the current key security requirements including a second security event obtained according to a second IP data packet and a first type of a second network node processing the second security event;

[0057] The current network topology structure is obtained, a first network node of the first type corresponding to each current key security requirement in the current network topology structure is obtained, and a data filtering rule for processing a corresponding second security event is configured for the first network node.

[0058] In this embodiment, a new IP filtering method is proposed. By using a centralized controller to program and manage IP filtering rules for multiple network devices, IP data packet filtering can be more conveniently performed in both small-scale and large-scale network environments, thereby improving its work efficiency. Defensive vulnerability mining technology is also used to provide more comprehensive and accurate network security protection information. By analyzing continuous network events, threatening behavior patterns are identified, and on this basis, IP data packets are selectively filtered, further improving network data security, thereby further improving the accuracy of IP data packet filtering. In addition, using the threat intelligence of a distributed network security resource sharing platform, through deep packet inspection, fuzzy logic and API (Application Programming Interface) security policy technology, IP data packet filtering can be performed in a unified and efficient security protection system, forming a more efficient, accurate, safe and reliable IP data packet filtering method.

[0059] Specifically, the implementation of the IP packet filtering method includes the following steps: a. Data preprocessing and feature extraction: extract key features that affect its security from the data packet through deep packet inspection and application layer protocol analysis; b. Establish a big data traffic analysis model: analyze and learn a large number of data packets, form filtering rules, detect abnormal traffic, predict threat behavior, and form evaluation results; c. Filtering decision: for the data packets entering the network, decide whether to allow them to pass according to the evaluation results of the big data traffic analysis model; d. Establish a real-time vulnerability and threat intelligence monitoring module, regularly obtain the latest vulnerability and threat information, and use this information to update the IP packet filtering rules; e. Establish a distributed network security resource sharing model to share threat intelligence and security rules with other organizations and networks. By constructing an IP packet filtering method, after data preprocessing and feature extraction, establishing a big data traffic analysis model, filtering decision, establishing a real-time vulnerability and threat intelligence monitoring module, and establishing a distributed network security resource sharing model, it can accurately and efficiently extract favorable information from a large number of network data flows, further optimize and update IP filtering rules based on this information, realize the management of large-scale network data flows, and improve the efficiency and accuracy of network packet filtering.

[0060] The filtering decision step is based on SDN (Software Defined Network) technology, which is used to dynamically adjust network policies to adapt to different network requirements. Through the SDN controller, network administrators can configure and adjust filtering rules in real time in the data plane according to real-time application requirements and policy requirements. For example, for a specific application or service, dynamic filtering rules can be added or deleted according to the source IP address or destination port of the data packet to achieve more fine-grained network traffic control. This ability to dynamically adjust network policies makes the IP packet filtering method more flexible and adaptable, and can better meet the increasingly complex network security needs. In addition, SDN technology also provides centralized monitoring and analysis functions for IP packet filtering methods. Through the SDN controller, network administrators can monitor network traffic in real time and analyze and process it based on the collected data. This allows network administrators to have a more comprehensive understanding of network traffic trends and behavior patterns and adjust filtering decisions accordingly. For example, abnormal traffic can be detected and isolated, potential security threats can be identified, and filtering rules can be updated in a timely manner to deal with these threats. These threats can be learned based on the historical traffic risks of the network or the traffic risks shared from the sharing platform, and historical experience in handling these threats can be obtained to select network nodes with corresponding processing capabilities to filter traffic.

[0061] In one implementation, S2, obtaining a first key feature of a first IP data packet and a first current key security requirement matching the first key feature, specifically includes, by a software defined network SDN controller:

[0062] Extracting first attribute information and a first key field of the first IP data packet, converting the first attribute information and the first key field into a first vector, and inputting the first vector into a pre-trained traffic analysis model to obtain a first security event that may be caused by the first IP data packet;

[0063] Calculate the similarity between the first security event and the second security event, obtain the second security event combination with the minimum similarity of each first security event, calculate the relative entropy of the combination of the first security event and the second security event, and in response to the relative entropy being less than a set threshold, obtain the first current key security requirement combination corresponding to the second event combination.

[0064] In this embodiment, the data preprocessing and feature extraction steps clean and normalize the original data by removing noise, processing missing values, solving data imbalance, etc., and exclude invalid or redundant data to better extract features. When establishing a stricter access policy, the results of feature extraction will be used to define access rules and decision models. The extracted features are trained and optimized by machine learning algorithms to automatically evaluate and verify the legitimacy of IP data packets. For example, it can be determined whether the data packet is allowed to pass, prohibited, or requires further verification based on the source IP address and transmission protocol. Feature extraction should not only consider the characteristics of a single data packet, but also need to combine contextual information for comprehensive evaluation and decision-making. For example, the communication history of the data packet, the behavior pattern of the user or device, the security level of the network, etc. can be considered. In this way, the risk and compliance of the data packet can be more comprehensively evaluated, and corresponding access policies such as permission, rejection, isolation, etc. can be adopted.

[0065] Specifically, dynamically updating IP filtering rules includes: extracting IP filtering rules from the database, replacing IP filtering rules, and modifying existing IP filtering rules. The centralized controller extracts the traffic characteristics of the data, establishes a traffic characteristic matrix, and calculates the relative entropy between the IP filtering rules being executed and the traffic characteristic matrix. The formula is: P is the IP filtering rule, and Q is the traffic feature matrix. If the relative entropy exceeds the set threshold, it is determined that the IP filtering rule needs to be updated. Then the eigenvector of the traffic feature matrix is ​​used to search in the database. If an IP filtering rule that is linearly related to the eigenvector is retrieved, the retrieved IP filtering rule is used to replace it, otherwise the existing IP filtering rule is modified to make it linearly related to the eigenvector. The linear correlation and relative entropy between the traffic feature vector and the IP filtering rule are calculated. Specifically, the similarity of the security events corresponding to the two can be calculated. That is, when the security events corresponding to the two are the same or similar, the two are linearly related, and the relative entropy between the combination of the two is small.

[0066] In one implementation, extracting the first attribute information and the first key field of the first IP data packet specifically includes:

[0067] Extracting first attribute information of the first IP data packet including packet size, transmission protocol type, transmission source address, and transmission destination address;

[0068] Use a recurrent neural network text analysis model and / or a convolutional neural network image recognition model to analyze whether the first IP data packet contains a specified first key field.

[0069] In this embodiment, the big data traffic analysis model identifies potential threat behavior patterns by collecting and analyzing massive data traffic in the network. These behavior patterns may include abnormal traffic characteristics, characteristics of malware, attack patterns, etc. By analyzing these patterns, the model can learn the laws and characteristics of threat behaviors (security events). The filtering rules are dynamically updated and adjusted based on these network behavior analysis results. The filtering rules can more accurately identify and filter out IP data packets that meet specific threat behavior patterns. By performing network behavior analysis, the filtering rules can also distinguish between normal and abnormal network traffic, identify IP data packets that violate normal behavior patterns, and intercept potential threats. For example, if the model finds that a certain IP address has sent a large number of abnormal requests in a short period of time, it may be a sign of a distributed denial of service attack. The filtering rules can block or restrict these data packets from specific IP addresses to strengthen the security protection of the network.

[0070] Specifically, the big data traffic analysis model deeply analyzes and detects the content of data packets at the network level. It is based on DPI (Deep Packet Inspection) technology to identify and filter complex application layer protocols, malicious codes and attacks, and perform corresponding operations based on the identification results. The specific construction process includes: assuming that n data packets are received in time T and are recorded as {P1, P2, ..., Pn}, each data packet Pi contains l fields recorded as {F1, F2, ..., Fl}; given the original data of data packet P, define a feature extraction function G, such that: G(P) = (x1, x2, ..., xk), these features represent various attributes of the main data packets including packet size, transmission protocol type, transmission source and destination address; through recurrent neural networks, the main features of the data packets are extracted and the main features are extracted. Network text analysis and convolutional neural network image recognition technology are used to analyze the content in the data packet. Combined with the classifier, it is predicted whether the data packet contains illegal information and whether the data packet contains illegal or illegal content. Each data packet Pi is represented as a vector (V1, V2, ..., Vl), and a model F is constructed to predict the behavior of each packet. A training set is set, which contains m labeled data packets. This training set is represented as {(x1, y1), (x2, y2), ..., (xm, ym)}, where xi is the feature vector of the i-th packet and yi is the corresponding label. Based on this training set, the model F is trained through the ridge regression optimization method with the objective function: min J(F)=1 / 2m∑(i=1to m)(F(xi)-yi)^2+λ / 2m∑(j=1to n)Fj^2, where the first term is the sum of squares of prediction errors, the second term is the regularization term, and λ is a parameter that controls the strength of regularization. The accuracy of the result is maximized by optimizing an objective function J(F); a classifier is constructed to classify real-time traffic, and the feature vector is input into the classifier through the following mathematical relationship: g(x)=w^T x+b. If g(x)>0, the data packet belongs to the normal traffic class; if g(x)<0, the data packet belongs to the malicious traffic class, where x is the feature vector of the data packet, and w and b are the weight and bias of the classifier; when the DPI system monitors the data packet in real time, the feature vector of the data packet is calculated and input into the trained classifier, and corresponding actions are taken according to the prediction results of the classifier to obtain the decision D: D=F(V1,V2,...,Vl). After the model is established and trained, it is applied to each data packet from different application layer protocols to predict the behavior, and then corresponding operations are performed based on the prediction results to achieve fine-grained data packet filtering and more precise control.Since the filtering rules can be actively updated, adaptive adjustment of network data traffic can be achieved, thereby improving the accuracy of filtering. Because the attributes of abnormal request data under actual working conditions change very quickly, if the existing filtering methods are used, misjudgment often occurs. By using the DPI model combined with a neural network, data packets can be detected with high precision.

[0071] In one embodiment, after obtaining the first security event that may be caused by the first IP data packet, the method further includes, by a software defined network SDN controller:

[0072] Inputting the first vector into a pre-trained traffic classifier to obtain a first risk level of a first security event that may be caused by the first IP data packet;

[0073] The first IP data packet is encrypted, and an attribute tag including a first security event and a first risk level is added to the encrypted first IP data packet.

[0074] In this embodiment, the step of establishing a real-time vulnerability and threat intelligence monitoring module adopts attribute-based encryption technology. By labeling data packets with attribute tags, only data packets that meet specific attribute conditions (such as traffic attributes, fine-grained attributes, and source address risk level attributes) can be decrypted or passed. Access to data can be effectively controlled without leaking data content, thereby improving network security. By combining access control with encryption, hackers will find it difficult to bypass this access control mechanism even if they use encryption technology to attack, thereby protecting the security of the network. The required attribute tags can be quickly adjusted and updated based on real-time vulnerabilities and threat intelligence. For example, when abnormal traffic in the network is detected, the administrator can dynamically adjust the attribute tags and corresponding access control rules based on the attribute characteristics of the traffic, thereby protecting the security of the network. At the same time, good interoperability can be achieved between multiple network devices. Since it does not involve any data content itself, it can be applied to a variety of different network application scenarios, so that the access control of the network in different scenarios can be more accurate and reasonable.

[0075] Specifically, when an abnormality occurs in a traffic attribute, a risk level is added to the attribute label, the corresponding attribute label is changed, and the corresponding access control rule is selected according to the attribute label, such as selecting the corresponding access control rule according to the risk level. When performing attribute filtering, all attributes can be clustered and grouped, and a corresponding multidimensional weight value is assigned to each group. The key attribute dimension set in the current state is extracted, and the key attribute dimension set is combined using multidimensional weights. The corresponding attributes are combined according to the combination of multidimensional weights to obtain the target attribute combination. Multidimensional weights include data accuracy weights, traffic deviation weights, data quality weights, data content weights, data security weights, etc. The target attribute combination can summarize all the key features of the current data information, and the target attribute combination can generate attribute labels to ensure the filtering effect.

[0076] In one implementation, S3, selecting the shortest secure path for the first IP data packet, wherein the shortest secure path includes a first security response component corresponding to the first current critical security requirement, specifically including, by a software defined network SDN controller:

[0077] In the current network topology, the transmission source address and the transmission destination address of the first IP data packet are determined, and the shortest secure path from the transmission source address to the transmission destination address is selected, where the shortest secure path includes a first network node of the first type corresponding to each first current critical security requirement.

[0078] In this embodiment, the filtering decision step programs and manages IP filtering rules for multiple network devices through a centralized controller. SDN centrally manages network decisions through a centralized controller, thereby realizing programming and control of network devices. The controller can determine the current network topology according to real-time needs and dynamically update the filtering rules to filter IP packets more accurately. For example, different filtering rules can be set to allow or prohibit certain types of data packets from passing through, or adjusted according to the network traffic load to improve the efficiency and security of the network. The centralized controller can also dynamically update IP filtering rules according to real-time needs to achieve more flexible network management. For example, when a security threat is detected, the filtering rules can be updated immediately to limit the relevant traffic, thereby protecting the network security. This method of dynamically updating the filtering rules can greatly enhance the network security performance. At the same time, using a centralized controller to implement IP packet filtering can also provide better monitoring and analysis capabilities. The controller can collect network traffic data, monitor the traffic in the network in real time, and provide powerful analysis functions to identify abnormal traffic and security threats. It can also generate real-time feedback and update the filtering rules of all network devices. When a security anomaly occurs, all devices can be controlled immediately to make the network more secure and stable at the first time.

[0079] In one implementation, S4, the first security response component in the shortest security path performs a filtering operation on the first IP data packet, specifically including:

[0080] After the first security response component in the shortest security path determines that it needs to perform a filtering operation on the first IP data packet based on the attribute label, it decrypts the first IP data packet and processes the first IP data packet using its own data filtering rules.

[0081] In the present embodiment, the IP packet filtering method utilizes prime number key distribution and prime number random number generation technology to encrypt and protect IP data packets. Through the prime number key distribution technology, the communication node in the network can safely generate and distribute a random secret key for encrypting and decrypting IP data packets, which can effectively improve the data security of IP data packets and prevent the data packets from being tampered with and stolen. If a certain node needs to encrypt or decrypt, a key is generated or obtained, and the node in the shortest secure path judges whether it needs to perform a filtering operation on the first IP data packet according to the attribute label, and the network node of the non-first security response component does not process the first IP data packet.

[0082] Embodiment 2:

[0083] like Figure 2 As shown, the present disclosure provides an Internet Protocol (IP) data packet filtering device, the device comprising:

[0084] The first acquisition module 1 is used to acquire the current key security requirement and the security response component corresponding to each current key security requirement;

[0085] A second acquisition module 2, connected to the first acquisition module 1, for acquiring a first key feature of the first IP data packet and a first current key security requirement matching the first key feature;

[0086] A path selection module 3, connected to the second acquisition module 2, for selecting the shortest secure path for the first IP data packet, wherein the shortest secure path includes a first security response component corresponding to the first current critical security requirement;

[0087] The data filtering module 4 is connected to the path selection module 3 and is used for performing a filtering operation on the first IP data packet by the first security response component in the shortest security path.

[0088] In one embodiment, the device comprises:

[0089] A software defined network SDN controller, a first acquisition module 1, a second acquisition module 2 and a path selection module 3 are arranged in the SDN controller;

[0090] The network node is connected to the SDN controller, the security response component is selected and obtained from the network node, and the data filtering module 4 is set in the security response component.

[0091] In one implementation, the first acquisition module 1 specifically includes:

[0092] A receiving unit, configured to receive a plurality of current key security requirements defined by a network administrator, the current key security requirements including a second security event obtained according to a second IP data packet and a first type of a second network node processing the second security event;

[0093] The configuration unit is connected to the receiving unit and is used to obtain the current network topology structure, obtain the first network node of the first type corresponding to each current key security requirement in the current network topology structure, and configure the first network node to process data filtering rules corresponding to the second security event.

[0094] In one implementation, the second acquisition module 2 specifically includes:

[0095] an extraction and analysis unit, configured to extract first attribute information and a first key field of a first IP data packet, convert the first attribute information and the first key field into a first vector, and input the first vector into a pre-trained traffic analysis model to obtain a first security event that may be caused by the first IP data packet;

[0096] A calculation and combination unit is connected to the extraction and analysis unit, and is used to calculate the similarity between the first security event and the second security event, obtain the second security event combination with the minimum similarity of each first security event, calculate the relative entropy of the combination of the first security event and the second security event, and in response to the relative entropy being less than a set threshold, obtain the first current key security requirement combination corresponding to the second event combination.

[0097] In one embodiment, the extraction and analysis unit specifically comprises:

[0098] A first extraction subunit, used to extract first attribute information of the first IP data packet including packet size, transmission protocol type, transmission source address, and transmission destination address;

[0099] The second extraction subunit is used to use a recurrent neural network text analysis model and / or a convolutional neural network image recognition model to analyze whether the first IP data packet contains a specified first key field.

[0100] In one embodiment, the second acquisition module 2 further includes:

[0101] a classification unit, configured to input the first vector into a pre-trained traffic classifier to obtain a first risk level of a first security event that may be caused by the first IP data packet;

[0102] The encryption labeling unit is connected to the classification unit and is used to encrypt the first IP data packet and add an attribute label including the first security event and the first risk level to the encrypted first IP data packet.

[0103] In one implementation, the path selection module 3 specifically includes:

[0104] A positioning unit, used to determine a transmission source address and a transmission destination address of the first IP data packet in the current network topology;

[0105] The selection unit is connected to the positioning unit and is used to select the shortest security path from the transmission source address to the transmission destination address, where the shortest security path includes a first network node of the first type corresponding to each first current critical security requirement.

[0106] In one embodiment, the data filtering module 4 specifically includes a first security response component in the shortest security path:

[0107] A determining unit, configured to determine that it needs to perform a filtering operation on the first IP data packet according to the attribute tag;

[0108] The filtering unit is connected to the determining unit and is used to decrypt the first IP data packet and process the first IP data packet using its own data filtering rules.

[0109] Embodiment 3:

[0110] Embodiment 3 of the present disclosure provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the Internet Protocol IP data packet filtering method as described in Embodiment 1 is implemented, or the Internet Protocol IP data packet filtering device as described in Embodiment 2 is implemented.

[0111] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0112] In addition, the present disclosure may also provide a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor runs the computer program stored in the memory, the processor executes the Internet Protocol IP data packet filtering method as described in Example 1. The computer device may be the Internet Protocol IP data packet filtering device as described in Example 2.

[0113] The memory is connected to the processor, the memory may be a flash memory or a read-only memory or other memory, and the processor may be a central processing unit or a single-chip microcomputer.

[0114] Embodiments 1-3 of the present disclosure provide an IP data packet filtering method, an IP data packet filtering device, and a computer-readable storage medium. By matching the key features of the IP data packet with the current key security requirements, the shortest secure path is selected to perform the transmission and filtering of the IP data packet. The appropriate security response component in the shortest secure path performs the filtering operation on the first IP data packet. The IP filtering rules can be dynamically updated to respond to changing network security attacks, filter IP data packets more accurately, and improve the flexibility, applicability, and accuracy of IP data packet filtering.

[0115] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present disclosure, but the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and substance of the present disclosure, and these modifications and improvements are also considered to be within the scope of protection of the present disclosure.

Claims

1. A method for filtering Internet Protocol (IP) data packets, characterized in that: The method comprises: Obtain current key security requirements and the security response components corresponding to each current key security requirement; Acquire a first key feature of a first IP data packet and a first current key security requirement matching the first key feature; Selecting the shortest secure path for the first IP data packet, the shortest secure path including a first security response component corresponding to the first current critical security requirement; A first security response component in the shortest secure path performs a filtering operation on the first IP data packet.

2. The method according to claim 1, characterized in that Obtain the current key security requirements and the security response components corresponding to each current key security requirement, including the following by the software defined network SDN controller: receiving a plurality of current key security requirements defined by a network administrator, the current key security requirements including a second security event obtained according to a second IP data packet and a first type of a second network node processing the second security event; The current network topology structure is obtained, a first network node of the first type corresponding to each current key security requirement in the current network topology structure is obtained, and a data filtering rule for processing a corresponding second security event is configured for the first network node.

3. The method according to claim 2, characterized in that Acquiring a first key feature of a first IP data packet and a first current key security requirement matching the first key feature, specifically including, by a software defined network SDN controller: Extracting first attribute information and a first key field of the first IP data packet, converting the first attribute information and the first key field into a first vector, and inputting the first vector into a pre-trained traffic analysis model to obtain a first security event that may be caused by the first IP data packet; Calculate the similarity between the first security event and the second security event, obtain the second security event combination with the minimum similarity of each first security event, calculate the relative entropy of the combination of the first security event and the second security event, and in response to the relative entropy being less than a set threshold, obtain the first current key security requirement combination corresponding to the second event combination.

4. The method according to claim 3, characterized in that Extracting the first attribute information and the first key field of the first IP data packet specifically includes: Extracting first attribute information of the first IP data packet including packet size, transmission protocol type, transmission source address, and transmission destination address; Use a recurrent neural network text analysis model and / or a convolutional neural network image recognition model to analyze whether the first IP data packet contains a specified first key field.

5. The method according to claim 3, characterized in that: After obtaining a first security event that may be caused by the first IP data packet, the method further includes, by a software defined network SDN controller: Inputting the first vector into a pre-trained traffic classifier to obtain a first risk level of a first security event that may be caused by the first IP data packet; The first IP data packet is encrypted, and an attribute tag including a first security event and a first risk level is added to the encrypted first IP data packet.

6. The method according to claim 2, characterized in that Selecting the shortest secure path for the first IP data packet, where the shortest secure path includes a first security response component corresponding to the first current critical security requirement, specifically including: In the current network topology, the transmission source address and the transmission destination address of the first IP data packet are determined, and the shortest secure path from the transmission source address to the transmission destination address is selected, where the shortest secure path includes a first network node of the first type corresponding to each first current critical security requirement.

7. The method according to claim 5, characterized in that The first security response component in the shortest security path performs a filtering operation on the first IP data packet, specifically including: After the first security response component in the shortest security path determines that it needs to perform a filtering operation on the first IP data packet based on the attribute label, it decrypts the first IP data packet and processes the first IP data packet using its own data filtering rules.

8. An Internet Protocol (IP) data packet filtering device, characterized in that: The device comprises: A first acquisition module is used to acquire current key security requirements and security response components corresponding to each current key security requirement; A second acquisition module, connected to the first acquisition module, for acquiring a first key feature of the first IP data packet and a first current key security requirement matching the first key feature; A path selection module, connected to the second acquisition module, for selecting the shortest secure path for the first IP data packet, wherein the shortest secure path includes a first security response component corresponding to the first current critical security requirement; The data filtering module is connected to the path selection module and is used for performing a filtering operation on the first IP data packet by the first security response component in the shortest security path.

9. The device according to claim 5, characterized in that The device comprises: A software defined network SDN controller, wherein the first acquisition module, the second acquisition module and the path selection module are arranged in the SDN controller; The network node is connected to the SDN controller, the security response component is selected and obtained from the network node, and the data filtering module is set in the security response component.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the Internet Protocol (IP) data packet filtering method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Safety protection method and device

    CN103095709A

  • Method and device for security processing of data stream

    CN104702577A

  • Method and system for dynamically deploying network security service based on malicious behavior knowledge base

    CN115001831A

  • Message filtering method and device, equipment and medium

    CN116170210A

  • Network security system for preventing unknown network attacks

    US20230115046A1