Data packet receiving method, device and system and electronic equipment thereof

Through the matching processing between data packets and preset security protocols, the problem of repeated detection in packet reception technology is solved, the packet reception and matching speed is improved, and the high throughput concurrency performance requirements of large enterprise networks are met.

CN119094201APending Publication Date: 2024-12-06GUANGZHOU VCMY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411210620.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the existing data packet reception technology, the first associated information of the data packet needs to be repeatedly detected and matched, resulting in slow packet reception, forwarding and matching speeds, which cannot meet the performance requirements of high throughput concurrency in large enterprise networks.

Method used

By obtaining the first associated information of the data packet and matching it with the preset security protocol, if the match is successful, the data packet is processed through the successful matching security rules to avoid repeated detection and improve packet reception, forwarding and matching. speed.

Benefits of technology

The matching and detection of data packets through preset security protocols reduces duplicate detection, improves the efficiency and performance of data packet reception, and meets the high throughput concurrency requirements of large enterprise networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094201A_ABST
    Figure CN119094201A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data packet receiving method, device and system. The method comprises the following steps: acquiring first associated information of a data packet; matching the first associated information with a preset security protocol, and judging whether the data packet is secure or not; and if the data packet is safe, receiving the data packet through a safety rule corresponding to the preset safety protocol. Matching the first associated information through a preset security protocol to judge whether the data packet is secure, if so, receiving the data packet according to a corresponding security rule, setting the preset security protocol, and matching and detecting the data packet according to the security rule corresponding to the preset security protocol, and if so, when the similar data packet is received, receiving the similar data packet according to the security rule corresponding to the preset security protocol. And the similar data packets do not need to be matched again, so that the data packet receiving, forwarding and matching speed is improved, and the data packet receiving efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data reception, and in particular to a data packet receiving method, device, system, electronic equipment and storage medium thereof. Background Art

[0002] In today's increasingly deteriorating network environment, the traditional "three old things" of network security: firewalls, intrusion detection, and antivirus, are increasingly unable to meet users' requirements for convenient management. Traditional security gateways (Unified Threat Management, UTM) integrate the functions of firewalls and various security policy modules, mainly using various security policy modules set to serial detection mode. Existing technologies cause data packets to pass through a large number of invalid security policy modules, thereby affecting the overall forwarding and rule matching performance of data packets, and failing to meet the high throughput and concurrency performance requirements of large enterprise networks. Because packet reception technology requires users to go through traditional network security detection and repeatedly check and match the first associated information of each packet, packet reception, forwarding, and matching are slow. Therefore, existing packet reception technology has the problem of repeatedly checking and matching the first associated information of each packet, resulting in slow packet reception, forwarding, and matching. Summary of the Invention

[0003] An embodiment of the present invention provides a data packet receiving method to solve the problem in existing data packet receiving technologies that repeated detection and matching of first associated information of each data packet results in slow data packet receiving, forwarding and matching speeds.

[0004] In a first aspect, an embodiment of the present invention provides a method for receiving a data packet, the method comprising the following steps: Acquire first associated information of the data packet; Matching the first association information with a preset security protocol; If the match is successful, the data packet is processed according to the security rules corresponding to the preset security protocol that is successfully matched.

[0005] Optionally, the first association information includes at least a network address, a port address, and a network protocol of the data packet. Before matching the first association information with a preset security protocol, the method further includes: Determining corresponding security rules based at least on the network address, port address, and network protocol of the data packet; Generate corresponding security protection actions based on corresponding security rules; Each of the security rules and corresponding security protection actions are configured to obtain a plurality of the preset security protocols.

[0006] Optionally, matching the first association information with a preset security protocol includes: Generate corresponding session information according to the preset security protocol; The session information is matched with at least the network address, port address and network protocol of the data packet to obtain matching results corresponding to each item of first association information.

[0007] Optionally, matching the session information with the network address, port address, and network protocol of the data packet to obtain a matching result corresponding to each item of first association information, the method further includes: According to the dynamic changes of the network environment, marking at least the network address, port address and network protocol of the data packet by a pointer to determine the matching order; According to the matching order, the session information is matched in sequence to determine the matching results corresponding to each item of the first association information.

[0008] Optionally, if the match is successful, processing the data packet according to the security rule corresponding to the preset security protocol that is successfully matched includes: After the first association information successfully matches the session information corresponding to the preset security protocol, determining at least one upper layer protocol corresponding to the successfully matched preset security protocol, the upper layer protocol including the preset security rule information corresponding to the second association information of the data packet and the corresponding response strategy; Based on the preset security rule information and the corresponding response strategy, the corresponding parameters in the second association information are processed to determine whether the data packet is safe.

[0009] Optionally, after processing corresponding parameters in the second association information based on the preset security rule information and the corresponding response strategy to determine whether the data packet is safe, the method further includes: Perform hierarchical processing on upper layer protocols; Determine the security level of the data packet that is confirmed to be secure based on the successfully matched upper layer protocol level; Determining a corresponding receiving strategy based on the security level and corresponding security rule information; The data packet confirmed to be safe is safely received through the receiving strategy.

[0010] In a second aspect, an embodiment of the present invention further provides a data packet receiving device, the data packet receiving device comprising: An acquisition module, configured to acquire first associated information of a data packet; a judgment module, configured to match the first association information with a preset security protocol; The receiving module is used to process the data packet according to the security rules corresponding to the preset security protocol that matches successfully if the match is successful.

[0011] In a third aspect, an embodiment of the present invention further provides a data packet receiving system, which includes: a data packet receiving device, a server, and a smart terminal.

[0012] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps in the data packet receiving method provided in the embodiment of the present invention when executing the computer program.

[0013] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the data packet receiving method provided in the embodiment of the invention are implemented.

[0014] In an embodiment of the present invention, first associated information of a data packet is obtained; the first associated information is matched with a preset security protocol to determine whether the data packet is secure; if the data packet is secure, the data packet is received according to the security rules corresponding to the preset security protocol. The first associated information is matched with the preset security protocol to determine whether the data packet is secure; if it is secure, the data packet is received according to the corresponding security rules. By setting the preset security protocol and matching and detecting the data packets according to the security rules corresponding to the preset security protocol, it is not necessary to match similar data packets again when receiving similar data packets, thereby improving the speed of data packet reception, forwarding, and matching, and improving the efficiency of data packet reception. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0016] Figure 1 This is an architecture diagram of a data packet receiving system provided by an embodiment of the present invention; Figure 2 This is a flow chart of a method for receiving a data packet provided by an embodiment of the present invention; Figure 3 yes Figure 2 Specific flow chart before step S202; Figure 4 yes Figure 2 Specific flow chart of step S202; Figure 5 yes Figure 4 Specific flow chart of step S2022; Figure 6 yes Figure 2 Specific flow chart of step S203; Figure 7 yes Figure 6 Specific flow chart after step S2032; Figure 8 1 is a schematic structural diagram of a data packet receiving device provided in an embodiment of the present invention; Figure 9 It is a structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0017] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0018] like Figure 1 As shown, Figure 1 FIG1 is an architecture diagram 100 of a data packet receiving system provided by an embodiment of the present invention. The data packet receiving system includes: a data packet receiving device 800, a server 101, and a smart terminal 102. The data packet receiving device 800 further includes an acquisition module configured to acquire first associated information of a data packet; a determination module configured to match the first associated information with a preset security protocol to determine whether the data packet is secure; and a receiving module configured to receive the data packet according to security rules corresponding to the preset security protocol if the data packet is secure.

[0019] The first associated information may include, but is not limited to, basic information such as the source Internet Protocol (IP), source port, destination IP, destination port, and network protocol corresponding to the data packet received by the data packet receiving system. Generally speaking, the first associated information can be obtained by the data packet receiving system by capturing and parsing the receive request sent by the server, and obtaining the basic information corresponding to the data packet after parsing. It is understood that this basic information can also be used to identify and classify data packets, so that the subsequent data packet receiving system can operate on the data packet based on the content of the basic information.

[0020] The preset security protocol may be a set of preset security rules for receiving the data packets. Specifically, the data packet receiving system is required to assess and test the security of the data packets according to the preset security protocol. The preset security protocol may include, but is not limited to, corresponding security rules, matching mechanisms, security policies, and network protocol management. In one possible embodiment, the data packet receiving system performs security assessment and testing on the data packets using the preset security protocol. After testing, the system processes the data packets according to the security policy corresponding to the preset security protocol.

[0021] The above-mentioned matching can be the corresponding matching mechanism in the above-mentioned preset security protocol, and the matching mechanism can be used to match the basic information of the data packet. Specifically, according to any content in the basic information, the corresponding item can be found in the preset security protocol, and the data in the two items can be matched. Generally speaking, the basic information of the data packet can be matched based on the preset network protocol or IP list to ensure that the currently matched data packet is in the whitelist, thereby completing the purpose of safe reception of the data packet. It should be noted that since errors may occur in the matching process of the data packet, the above-mentioned data packet receiving system can also use a cross-matching mechanism when evaluating and detecting the security of the data packet, that is, a basic information may be matched and confirmed with items corresponding to multiple preset security protocols, and the security of the data packet is confirmed based on the number of successful cross-matches. For example, when the number of successful cross-matches is greater than or equal to the preset number of matches, the data packet is determined to be safe.

[0022] The aforementioned security rules can serve as guidelines for the secure reception of data packets by the data packet receiving system. Specifically, the data packet receiving system must detect and receive at least one basic piece of information corresponding to the data packet in accordance with the corresponding security rules. For example, when the data packet receiving system receives a data packet, it must detect the IP address of the data packet and compare the detected IP address with a preset IP address whitelist. If the IP address of the data packet is within the IP address whitelist, the data packet is deemed secure.

[0023] In one possible embodiment, the packet receiving system parses a received packet to obtain first associated information about the packet, matches the first associated information with a preset security protocol, and, if a match is found, indicates that the packet is secure. The packet is then received according to the security rules corresponding to the preset security protocol. By matching the basic packet information with the preset security protocol, the packet receiving system can effectively improve network security, prevent potential malicious traffic and attacks, optimize performance, reduce duplicate packet detection, and thus increase the speed and efficiency of packet processing.

[0024] like Figure 2 As shown, Figure 2 1 is a flow chart of a method for receiving a data packet provided by an embodiment of the present invention, the method comprising the steps of: S201: Acquire first associated information of a data packet.

[0025] In an embodiment of the present invention, the above-mentioned data packet receiving method can be applied to a data packet receiving system. The above-mentioned data packet receiving system has functions such as data packet processing, data packet sending and receiving, and data packet storage, and can be constructed based on a server or a server cluster. The above-mentioned server or server cluster can be an electronic device with data packet processing capabilities.

[0026] The first associated information may include, but is not limited to, basic information such as the source Internet Protocol (IP), source port, destination IP, destination port, and network protocol corresponding to the data packet received by the data packet receiving system. Generally speaking, the first associated information can be obtained by parsing the receive request sent by the server through the data packet receiving system, and obtaining the basic information corresponding to the data packet after parsing. It is understood that this basic information can also be used to identify and classify the data packet, allowing the subsequent data packet receiving system to perform operations on the data packet based on the content of this basic information.

[0027] In a possible embodiment, the above-mentioned data packet receiving system parses and processes the received data packet information such as the network address, port address, and network protocol to obtain basic information corresponding to the data packet, and marks the currently parsed data packet so that the current data packet can be accurately matched later.

[0028] S202: Match the first association information with a preset security protocol.

[0029] In an embodiment of the present invention, the preset security protocol may be a set of preset security rules for receiving the data packets. That is, the data packet receiving system needs to evaluate and detect the security of the data packets according to the preset security protocol. The preset security protocol may include, but is not limited to, corresponding security rules, matching mechanisms, security policies, and network protocol management.

[0030] In a possible embodiment, the data packet receiving system performs security assessment and detection on the data packet through the preset security protocol, and after detection, processes the data packet according to the security policy corresponding to the preset security protocol.

[0031] The above-mentioned match can be the corresponding matching mechanism in the above-mentioned preset security protocol, which can be used to match the basic information of the data packet. Specifically, according to any content in the basic information, the corresponding item can be found in the preset security protocol, and the data in the two items can be matched. Generally speaking, the basic information of the data packet can be matched based on the preset network protocol or IP list to ensure that the currently matched data packet is in the whitelist, thereby completing the purpose of safe reception of the data packet.

[0032] In a possible embodiment, the data packet receiving system determines whether the data packet is in a safe state by matching the first association information with a preset security protocol.

[0033] S203: If the match is successful, the data packet is processed according to the security rules corresponding to the preset security protocol that is successfully matched.

[0034] The aforementioned security rules can serve as guidelines for the secure reception of data packets by the data packet receiving system. Specifically, the data packet receiving system must detect and receive at least one basic piece of information corresponding to the data packet in accordance with the corresponding security rules. For example, when the data packet receiving system receives a data packet, it must detect the IP address of the data packet and compare the detected IP address with a preset IP address whitelist. If the IP address of the data packet is within the IP address whitelist, the data packet is deemed secure.

[0035] In one possible embodiment, the packet receiving system parses a received packet to obtain first associated information about the packet, matches the first associated information with a preset security protocol, and, if a match is found, indicates that the packet is secure. The system then receives and processes the packet according to the security rules corresponding to the preset security protocol. By matching the basic packet information with the preset security protocol, the packet receiving system can effectively improve network security, prevent potential malicious traffic and attacks, optimize performance, reduce duplicate packet detection, and thus increase the speed and efficiency of packet processing.

[0036] In an embodiment of the present invention, first associated information of a data packet is obtained; the first associated information is matched with a preset security protocol to determine whether the data packet is secure; if the data packet is secure, the data packet is received according to the security rules corresponding to the preset security protocol. The first associated information is matched with the preset security protocol to determine whether the data packet is secure; if it is secure, the data packet is received according to the corresponding security rules. By setting the preset security protocol and matching and detecting data packets according to the security rules corresponding to the preset security protocol, when similar data packets are received, there is no need to match them again, thereby improving the speed of data packet reception, forwarding, and matching, and improving the efficiency of data packet reception.

[0037] Optional, such as Figure 3 As shown, before the step S202 of matching the first association information with the preset security protocol, steps S204-S206 are also included, wherein: S204: Determine corresponding security rules based at least on the network address, port address, and network protocol of the data packet.

[0038] In an embodiment of the present invention, the above-mentioned corresponding security rules can be detection criteria corresponding to basic information of data packets such as network addresses, port addresses and network protocols. Due to the particularity of some data items in the basic information of the data packets, corresponding special detection methods are required to detect the source or content of the data items. For example, for the detection of network addresses, the above-mentioned data packet receiving system needs to detect the IP source of the network address and search in the white list or black list in the system to determine whether the corresponding IP source is safe.

[0039] S205: Generate corresponding security protection actions based on corresponding security rules.

[0040] The security protection actions mentioned above may include, but are not limited to, allowing access, blocking access, isolating, and authorizing and verifying identity of the data packet in response to receiving the data packet. Specifically, the security protection actions mentioned above may be set based on the security rules corresponding to the basic information of the data packet.

[0041] S206: Configure each security rule and the corresponding security protection action to obtain multiple preset security protocols.

[0042] The preset security protocol may be a set of preset security rules for receiving the data packets. Specifically, the data packet receiving system is required to assess and test the security of the data packets according to the preset security protocol. The preset security protocol may include, but is not limited to, corresponding security rules, matching mechanisms, security policies, and network protocol management. In one possible embodiment, the data packet receiving system performs security assessment and testing on the data packets using the preset security protocol. After testing, the system processes the data packets according to the security policy corresponding to the preset security protocol.

[0043] In a possible embodiment, the above-mentioned data packet receiving system generates corresponding security protection actions for the security rules corresponding to different basic information specific data items of the data packet, and configures the security protection actions to the corresponding security rules so that the security rules triggered by the data packet can be responded to through security protection actions in the future.

[0044] Optional, such as Figure 4 As shown, in step S202, the step of matching the first association information with the preset security protocol further includes steps S2021-S2022, wherein: S2021. Generate corresponding session information according to the preset security protocol.

[0045] In an embodiment of the present invention, the session information corresponds to a preset security protocol, and specifically, may be content that needs to be matched for different preset security protocols. Generally speaking, when four items of the basic information of a data packet require security testing, session information for the corresponding items can be generated based on the corresponding preset security protocol, and the security of the data packet can be determined by matching the session information with the content of the corresponding items.

[0046] In another possible embodiment, the above session information can also serve as an independent session of the above data packet receiving system to help the system understand and control each independent session and to perform individual matching and security checks on each data item in the data packet.

[0047] S2022: Match the session information with at least the network address, port address, and network protocol of the data packet to obtain matching results corresponding to each item of first association information.

[0048] In one possible embodiment, the data packet receiving system obtains basic information of the data packet, such as the network address, port address, and network protocol, and extracts session information that matches the basic information, such as the network address, port address, and network protocol. The system then matches the basic information of the data packet against the security rules corresponding to the session information to obtain matching results corresponding to each item of first associated information. It is understood that the security rules may also match each item of first associated information in the data packet against a security policy of a preset security protocol corresponding to the session information, i.e., rules defining which network addresses and port addresses are inaccessible.

[0049] Optional, such as Figure 5 As shown, in step S2022, the session information is matched with at least the network address, port address and network protocol of the data packet to obtain the matching results corresponding to each item of the first association information, further comprising steps S20221-S20222, wherein: S20221. According to the dynamic changes of the network environment, at least the network address, port address and network protocol of the data packet are marked by a pointer to determine the matching order.

[0050] In an embodiment of the present invention, the dynamic changes in the above-mentioned network environment include but are not limited to network fluctuation factors such as network traffic fluctuations and device configuration change fluctuations. Generally speaking, the above-mentioned data packet receiving system needs to rely on the network channel to receive data packets. When the network environment fluctuates, its reception efficiency will also be reduced.

[0051] Pointers can be used to mark basic information such as the network address, port address, and network protocol of the data packet. The data packet receiving system can identify the size and complexity of the corresponding data item based on the mark and determine the matching order based on the size and complexity. Generally speaking, for data items, simpler data items have a higher matching order. For example, the network address and port address only have one IP address data, while the network protocol can contain multiple security protocols. In this case, the matching priority of the network address and port address can be placed before the network protocol.

[0052] S20222: Match the session information in sequence according to the matching order to determine the matching results corresponding to each item of the first association information.

[0053] In one possible embodiment, in order to ensure the stability of data packet reception, data packets that require larger or lower network resources can be selected for reception according to the dynamic changes in the network environment, and then other data packets can be received again after the network environment is restored. This ensures that the reception of data packets will not be interrupted, and also ensures that other data packets can be received as usual after the network is restored, thereby improving the efficiency of data packet reception.

[0054] In another possible embodiment, the data packet receiving system sequentially Optional, such as Figure 6 As shown, in step S203, if the match is successful, the step of processing the data packet according to the security rules corresponding to the preset security protocol that matches successfully further includes steps S2031-S2032, wherein: S2031: After the first association information successfully matches the session information corresponding to the preset security protocol, determine at least one upper layer protocol corresponding to the successfully matched preset security protocol.

[0055] In the embodiment of the present invention, the upper layer protocol may include but is not limited to the preset security rule information and corresponding response strategy corresponding to the second associated information of the data packet. The second associated information may be a deeper and more detailed basic information attribute of the first associated information.

[0056] The above-mentioned upper layer protocols include but are not limited to application layer protocols, security protocols and other protocols used to manage systems. Generally speaking, when the above-mentioned first association information successfully matches the session information corresponding to the preset security protocol, the above-mentioned data packet receiving system needs to identify the upper layer protocol corresponding to the session information, and confirm whether the current session information is configured with the corresponding upper layer protocol. If not, the successfully matched session information is ignored. If configured, the corresponding response strategy of the configured upper layer protocol is confirmed, and the data packet is processed according to the corresponding response strategy. It should be noted that the above-mentioned configuration process can be configured in the system's firewall and receiving strategy. The specific configuration requirements can be determined according to the specific implementation plan. Generally speaking, before the data packet receiving program is started, the above-mentioned configuration should be configured in advance according to the firewall level and the dynamic changes of the network environment.

[0057] S2032: Based on the preset security rule information and the corresponding response strategy, process the corresponding parameters in the second association information to determine whether the data packet is safe.

[0058] In a possible embodiment, the above-mentioned data packet receiving system performs security processing on the corresponding parameters in the second associated information of the data packet through the preset security rule information and the response strategy corresponding to the session information after successful matching. If the corresponding parameters in the second associated information can all match the standards of the corresponding items in the preset security rule information, the data packet is determined to be safe. If one of the corresponding parameters in the second associated information cannot match the standards of the corresponding items in the preset security rule information, the data packet is determined to be unsafe.

[0059] Optional, such as Figure 7As shown, after the step of processing the corresponding parameters in the second association information based on the preset security rule information and the corresponding response strategy to determine whether the data packet is safe in step S2032, the method further includes steps S2033-S2036, wherein: S2033. Perform hierarchical processing on the upper layer protocol.

[0060] In an embodiment of the present invention, the aforementioned hierarchical processing can be determined based on the complexity of the upper-layer protocol and the number of corresponding session information. Specifically, since session information corresponds to one upper-layer protocol, and different session information may have overlapping content, it is possible for an upper-layer protocol to contain multiple session information corresponding to content that needs to be matched. Therefore, the upper-layer protocols can be hierarchically processed based on the number of content that needs to be matched by the multiple session information. The greater the number of content that needs to be matched by the multiple session information, the higher the level of the corresponding upper-layer protocol.

[0061] S2034: Determine the security level of the data packet that is confirmed to be secure based on the successfully matched upper-layer protocol level.

[0062] Since the more content that needs to be matched corresponding to multiple session information, the more protocols and matching rules need to be security checked, and therefore the possibility of security omissions is also greater, that is, the security level of the data packet can be set to be lower according to the fact that the more content that needs to be matched corresponding to multiple session information, the lower the security level of the data packet.

[0063] S2035. Determine a corresponding receiving strategy based on the security level and corresponding security rule information.

[0064] The above-mentioned receiving policy can be configured based on the security level and corresponding security rule information. Generally speaking, since a lower security level indicates a higher security risk for the current data packet, a more complex receiving policy is required to address and confirm the situation, and in this case, a higher adaptability of the receiving policy is required. The above-mentioned receiving policy may also include, but is not limited to, one or more of an intrusion detection policy, a URL filtering policy, a content security policy, or an antivirus policy, and may correspond to the upper-layer protocol.

[0065] S2036. Safely receive the data packet that is confirmed to be safe through the receiving strategy.

[0066] In a possible embodiment, the above-mentioned data packet receiving system securely receives the confirmed safe data packets according to the above-mentioned set receiving strategy. It should be noted that since there may be loopholes and omissions in the security verification process, the receiving strategy, as the last barrier, can also be set with a means of timely termination, that is, the security of the data packet is still tested during the receiving process. If it is found that there is still a security risk during the reception of a data item in the data packet, the receiving program can be terminated in time.

[0067] like Figure 8 As shown, an embodiment of the present invention further provides a data packet receiving device 800, which includes: An acquisition module 801 is configured to acquire first associated information of a data packet; A determination module 802 is configured to match the first association information with a preset security protocol; The receiving module 803 is configured to process the data packet according to the security rules corresponding to the preset security protocol that matches successfully if the match is successful.

[0068] Optionally, the above device further includes: A first determining module, configured to determine a corresponding security rule based at least on a network address, a port address, and a network protocol of the data packet; A generation module is used to generate corresponding security protection actions according to corresponding security rules; The first acquisition module is used to configure each of the security rules and corresponding security protection actions to obtain a plurality of the preset security protocols.

[0069] Optionally, the judgment module 802 includes: A generation submodule, configured to generate corresponding session information according to the preset security protocol; The matching submodule is used to match the session information with at least the network address, port address and network protocol of the data packet to obtain matching results corresponding to each item of first associated information.

[0070] Optionally, the above device further includes: A second determining module is configured to mark at least the network address, port address and network protocol of the data packet through a pointer according to dynamic changes in the network environment to determine the matching order; The third determining module is configured to perform matching with the session information in sequence according to a matching order, and determine matching results corresponding to each item of the first association information.

[0071] Optionally, the receiving module 803 includes: A first determination submodule is configured to determine, after the first association information successfully matches the session information corresponding to the preset security protocol, at least one upper-layer protocol corresponding to the successfully matched preset security protocol, the upper-layer protocol including preset security rule information and a corresponding response strategy corresponding to the second association information of the data packet; The second determining submodule is used to process corresponding parameters in the second association information based on the preset security rule information and the corresponding response strategy to determine whether the data packet is safe.

[0072] Optionally, the above device further includes: A processing module, used for hierarchical processing of upper layer protocols; A matching security module is used to determine the security level of a data packet that is confirmed to be safe according to the upper layer protocol level that is successfully matched; a third determining module, configured to determine a corresponding receiving strategy based on the security level and corresponding security rule information; The fourth determining module is configured to securely receive the data packet that is confirmed to be safe using the receiving strategy.

[0073] like Figure 9 As shown, an embodiment of the present invention further provides an electronic device 900, including a processor, and the processor can execute any of the above-mentioned data packet receiving methods.

[0074] Specifically, the method includes a processor 901, a memory 902, and a computer program for executing a data packet receiving method stored in the memory 902 and capable of running on the processor 901, wherein: The processor 901 runs the computer program of the data packet receiving method stored in the memory 902 and performs the following steps: Acquire first associated information of the data packet; Matching the first association information with a preset security protocol; If the match is successful, the data packet is processed according to the security rules corresponding to the preset security protocol that is successfully matched.

[0075] Optionally, the processor 901 executes the first association information including at least a network address, a port address, and a network protocol of a data packet. Before matching the first association information with a preset security protocol, the method further includes: Determining corresponding security rules based at least on the network address, port address, and network protocol of the data packet; Generate corresponding security protection actions based on corresponding security rules; Each of the security rules and corresponding security protection actions are configured to obtain a plurality of the preset security protocols.

[0076] Optionally, the processor 901 performs the matching of the first association information with a preset security protocol, including: Generate corresponding session information according to the preset security protocol; The session information is matched with at least the network address, port address and network protocol of the data packet to obtain matching results corresponding to each item of first association information.

[0077] Optionally, the processor 901 performs the matching of the session information with the network address, port address, and network protocol of the data packet to obtain a matching result corresponding to each item of the first association information. The method further includes: According to the dynamic changes of the network environment, marking at least the network address, port address and network protocol of the data packet by a pointer to determine the matching order; According to the matching order, the session information is matched in sequence to determine the matching results corresponding to each item of the first association information.

[0078] Optionally, the processor 901 executes the following: if the match is successful, processing the data packet according to the security rule corresponding to the preset security protocol that is successfully matched, including: After the first association information successfully matches the session information corresponding to the preset security protocol, determining at least one upper layer protocol corresponding to the successfully matched preset security protocol, the upper layer protocol including the preset security rule information corresponding to the second association information of the data packet and the corresponding response strategy; Based on the preset security rule information and the corresponding response strategy, the corresponding parameters in the second association information are processed to determine whether the data packet is safe.

[0079] Optionally, the processor 901 further executes the preset security rule information and the corresponding response strategy, processes the corresponding parameters in the second association information, and determines whether the data packet is safe, including: Perform hierarchical processing on upper layer protocols; Determine the security level of the data packet that is confirmed to be secure based on the successfully matched upper layer protocol level; Determining a corresponding receiving strategy based on the security level and corresponding security rule information; The data packet confirmed to be safe is safely received through the receiving strategy.

[0080] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the computer program implements the various processes of the data packet receiving method or the application-side data packet receiving method provided in the embodiment of the present invention, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0081] Those skilled in the art will appreciate that the implementation of all or part of the processes in the above-described method embodiments can be accomplished by a computer program that instructs related hardware and can be stored in a computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0082] The above disclosure is merely a preferred embodiment of the present invention and certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A method for receiving a data packet, characterized in that: include: Acquire first associated information of a data packet; Matching the first association information with a preset security protocol; If the match is successful, the data packet is processed according to the security rules corresponding to the preset security protocol that has successfully matched.

2. The data packet receiving method according to claim 1, characterized in that: The first association information includes at least a network address, a port address, and a network protocol of the data packet. Before matching the first association information with a preset security protocol, the method further includes: Determine corresponding security rules based at least on the network address, port address and network protocol of the data packet; Generate corresponding security protection actions for corresponding security rules; Each of the security rules and the corresponding security protection actions are configured to obtain a plurality of the preset security protocols.

3. The data packet receiving method according to claim 2, characterized in that: The matching the first association information with a preset security protocol includes: Generate corresponding session information according to the preset security protocol; The session information is matched with at least the network address, port address and network protocol of the data packet to obtain matching results corresponding to each item of first associated information.

4. The data packet receiving method according to claim 3, characterized in that: The method further includes matching the session information with the network address, port address and network protocol of the data packet to obtain matching results corresponding to each item of first associated information: According to the dynamic changes of the network environment, marking at least the network address, port address and network protocol of the data packet through a pointer to determine the matching order; According to the matching order, the session information is matched in sequence to determine the matching results corresponding to each item of the first association information.

5. The data packet receiving method according to claim 1, characterized in that: If the match is successful, the data packet is processed according to the security rule corresponding to the preset security protocol that matches successfully, including: After the first association information successfully matches the session information corresponding to the preset security protocol, determining at least one upper layer protocol corresponding to the successfully matched preset security protocol, the upper layer protocol including the preset security rule information corresponding to the second association information of the data packet and the corresponding response strategy; Based on the preset security rule information and the corresponding response strategy, the corresponding parameters in the second association information are processed to determine whether the data packet is safe.

6. The method for receiving a data packet according to claim 5, wherein: After processing the corresponding parameters in the second association information based on the preset security rule information and the corresponding response strategy to determine whether the data packet is safe, the method includes: Perform hierarchical processing on upper layer protocols; Determine the security level of the data packet that is confirmed to be secure according to the successfully matched upper layer protocol level; Determining a corresponding receiving strategy based on the security level and the corresponding security rule information; The data packet confirmed to be safe is safely received through the receiving strategy.

7. A data packet receiving device, characterized in that: include: An acquisition module, used for acquiring first associated information of a data packet; A judgment module, used for matching the first association information with a preset security protocol; The receiving module is used to process the data packet according to the security rules corresponding to the preset security protocol that matches successfully if the match is successful.

8. A data packet receiving system, characterized in that: The data packet receiving system comprises: a data packet receiving device; The data packet receiving device is determined by a data packet receiving method shown in claims 1-6.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the data packet receiving method according to any one of claims 1 to 6 when executing the computer program.

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 steps in the data packet receiving method according to any one of claims 1 to 6 are implemented.