Fragmented message processing method and device, firewall and dual-active firewall cluster
By determining and synchronizing the target entries of fragmented packets in the active-active firewall cluster, the problem of IP packet incompleteness and resource waste in fragmented packet processing is solved, and resource utilization efficiency and reliability are improved.
Patent Information
- Application Number
- CN202410904831.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-08
AI Technical Summary
In the existing technology, due to the lack of complete session entries in the network transmission process of fragmented packets, subsequent fragmented packets are abnormally processed, resulting in incomplete IP packets and a waste of backup firewall resources in active and backup modes. serious.
By determining the type of the first fragmented message and establishing a target table entry when receiving the first fragmented message, and synchronizing it to the peer firewall, it ensures that each firewall in the active-active firewall cluster can identify and process the same IP message fragments to avoid abnormal processing. , and optimize resource utilization in active and backup mode.
It realizes effective processing of fragmented packets, ensures the integrity of IP packets, avoids waste of standby firewall resources, and improves the resource utilization efficiency and reliability of the dual-active firewall cluster.
Smart Images

Figure CN118869709A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of firewall disaster recovery processing, and specifically to a fragmented message processing method, device, firewall and active-active firewall cluster. Background Art
[0002] At present, during the network transmission process, IP (Internet Protocol) messages may be divided into multiple fragmented messages due to the limitation of the Maximum Transmission Unit (MTU) supported by the devices on the path, and forwarded to different firewalls by upstream and downstream devices. In the general network architecture, firewalls are generally set up between internal and external networks, and on the interface between private networks and public networks to protect internal networks from intrusion by illegal users. Firewalls shield the information, structure and operation status of the internal network from the outside as much as possible by monitoring, restricting and changing the data flow across the firewall. Figure 1 As shown in the figure, firewalls are generally set up in pairs for redundant networking to ensure the robustness of the network system. Since only the first fragment of the fragmented message has the transport layer protocol header, only the firewall that receives the first fragment can create a complete session table entry and match the forwarding policy based on the protocol header, while the firewall that receives the subsequent fragments cannot create a session table entry, resulting in abnormal processing of the subsequent fragments, which in turn causes the IP message to be incomplete after being transmitted over the network.
[0003] In the prior art, the paired firewalls are generally set to the active-standby mode, and the paired firewalls all have the fragment cache function turned on. By pulling all business traffic to the primary firewall, it is ensured that all fragments of the IP message can be sent to the primary firewall. However, the standby firewall in the active-standby mode is idle most of the time, causing a great waste of resources. Therefore, how to effectively handle fragmented messages is a problem that needs to be solved urgently. Summary of the invention
[0004] The embodiments of the present application provide a fragmented message processing method, device, firewall and active-active firewall cluster to solve the technical problem of how to effectively process fragmented messages in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a fragment message processing method, which is applied to a local firewall, wherein the local firewall is any firewall in an active-active firewall cluster, and the method includes: When receiving the first fragment message, determining the type of the first fragment message; the type of the first fragment message is used to characterize the position of the first fragment message in the Internet Protocol IP message to which it belongs; Based on the type of the first fragment message, determine a target table entry corresponding to the first fragment message; the target table entry is used to identify the first fragment message; The target table entry is synchronized to the peer firewall to instruct the peer firewall and the local firewall to respectively identify other fragmented messages that are the same as the IP message to which the first fragmented message belongs.
[0006] In one embodiment, according to the fragment message processing method provided by the embodiment of the present application, the target table entry includes a message identification table entry, or an association relationship between a message identification table entry and a session table entry; The determining, based on the type of the first fragment message, a target table entry corresponding to the first fragment message includes: In the case where the type of the first fragment message is a first fragment message, respectively determining a session table entry and a message identification table entry corresponding to the first fragment message, and determining an association relationship between the session table entry and the message identification table entry; the message identification table entry is used to identify the IP message to which the first fragment message belongs; and the session table entry is used to identify the session to which the IP message belongs; In a case where the type of the first fragment message is a non-first fragment message, a message identification table entry corresponding to the first fragment message is determined.
[0007] In one embodiment, according to the fragment message processing method provided by the embodiment of the present application, when the type of the first fragment message is a first fragment message, the method further includes: When the firewall forwarding mode is the synchronous forwarding mode, receiving other non-first fragment messages sent by the peer firewall, and sending a first confirmation message to the peer firewall; the first confirmation message is used to instruct the peer firewall to delete the other non-first fragment messages; when the deletion confirmation message sent by the peer firewall is received, forwarding strategy matching is performed on the other non-first fragment messages based on the target table entry; When the firewall forwarding mode is the fast forwarding mode, forwarding policy matching is performed on other subsequent fragment messages cached by the local firewall based on the target entry, and the target entry is also used to instruct the opposite firewall to match forwarding policy matching on other non-first fragment messages based on the target entry; the other non-first fragment messages are cached by the opposite firewall based on the target entry.
[0008] In one embodiment, according to the fragment message processing method provided by the embodiment of the present application, when the type of the first fragment message is a non-first fragment message, the method further includes: When receiving the first fragment message, determine the session table entry corresponding to the first fragment message, and determine the association relationship between the session table entry and the message identification table entry; synchronize the association relationship to the peer firewall; When the firewall forwarding mode is the synchronous forwarding mode, receiving other non-first fragment messages sent by the peer firewall, and sending a second confirmation message to the peer firewall; when receiving the deletion confirmation message sent by the peer firewall, matching the forwarding strategy of the other non-first fragment messages; the second confirmation message is used to instruct the peer firewall to delete the other non-first fragment messages; When the forwarding mode of the firewall is the fast forwarding mode, forwarding policy matching is performed on other subsequent fragment messages cached by the local firewall based on the association relationship; the association relationship is also used to instruct the opposite firewall to match forwarding policy on other non-first fragment messages based on the association relationship; the other non-first fragment messages are cached by the opposite firewall based on the target table entry or the association relationship.
[0009] In one embodiment, according to the fragment message processing method provided by the embodiment of the present application, when the type of the first fragment message is a non-first fragment message, the method further includes: In the case where the first fragment message is not received, receiving the association relationship corresponding to the first fragment message synchronized by the opposite firewall; Cache other non-first fragment messages based on the target table entry or the association relationship; When the firewall forwarding mode is the synchronous forwarding mode, synchronizing the other non-first fragment messages to the peer firewall; when receiving the third confirmation information, deleting the other non-first fragment messages in the cache space, and sending a deletion confirmation message to the peer firewall; When the firewall forwarding mode is the fast forwarding mode, forwarding strategy matching is performed on the other non-first fragment messages based on the association relationship.
[0010] In one embodiment, according to the fragment message processing method provided in the embodiment of the present application, the determining the session table entry and the message identification table entry corresponding to the first fragment message respectively, and determining the association relationship between the session table entry and the message identification table entry, includes: Performing a hash operation on the first field information of the IP header in the first fragment message to determine a hash value of a message identification table entry corresponding to the first fragment message; the first field information includes an identifier, a source IP address, and a destination IP address; Determine the message identification table entry corresponding to the first fragment message based on the message identification table entry hash value and the type of the first fragment message; Performing a hash operation on the second field information of the protocol header in the first fragment message, and the source IP address, the destination IP address and the protocol number in the IP header to determine a session table entry hash value; determining a session table entry of the first fragment message based on the session table entry hash value; the second field information includes a source port number and a destination port number; Based on the hash value of the message identification table entry and the hash value of the session table entry in the session table entry, an association relationship corresponding to the session table entry and the message identification table entry is determined.
[0011] In one embodiment, according to the fragment message processing method provided by the embodiment of the present application, synchronizing the target entry to the peer firewall includes: The target table entry is synchronized to the peer firewall based on a heartbeat cable or a synchronization cable.
[0012] In a second aspect, an embodiment of the present application provides a fragment message processing device, which is applied to a local firewall, wherein the local firewall is any firewall in a dual-active firewall cluster, and the device includes: A first determination module is used to determine the type of the first fragment message when the first fragment message is received; the type of the first fragment message is used to characterize the position of the first fragment message in the Internet Protocol IP message to which it belongs; A second determination module, configured to determine a target table entry corresponding to the first fragment message based on the type of the first fragment message; the target table entry is used to identify the first fragment message; A synchronization module is used to synchronize the target table entry to the peer firewall to instruct the peer firewall and the local firewall to respectively identify other fragmented messages that are the same as the IP message to which the first fragmented message belongs.
[0013] In a third aspect, an embodiment of the present application provides a firewall, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the fragmented message processing method as described in any one of the above items is implemented.
[0014] In a fourth aspect, an embodiment of the present application provides an active-active firewall cluster, comprising two firewalls configured in an active-active deployment mode, wherein the two firewalls are connected based on a heartbeat cable or a synchronization cable, and any one of the two firewalls is used to execute a fragmented message processing method as described in any of the above items.
[0015] In a fifth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it implements any of the fragmented message processing methods described above.
[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements any of the fragmented message processing methods described above.
[0017] The fragment message processing method, device, firewall and active-active firewall cluster provided in the embodiment of the present application, for any firewall in the active-active firewall cluster, when receiving the first fragment message, determines the type of the first fragment message according to the position of the first fragment message in the IP message to which it belongs, and determines the target table item corresponding to the first fragment message according to the type of the first fragment message, and synchronizes the target table item to the opposite firewall. In the active-active firewall cluster, the opposite firewall and the local firewall can respectively identify other fragment messages that are the same as the IP message to which the first fragment message belongs according to the target table item, thereby achieving effective processing of the fragment messages and ensuring the integrity of the IP message. At the same time, the waste of hardware resources and system resources by the standby firewall in the active-standby mode is avoided, and the resource utilization efficiency and reliability of the active-active firewall cluster are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 It is a schematic diagram of a firewall deployment model provided by the prior art.
[0020] Figure 2 It is a flow chart of the fragment message processing method provided in the embodiment of the present application.
[0021] Figure 3 It is a schematic diagram of the fragmentation of the IP message provided in the embodiment of the present application.
[0022] Figure 4 This is one of the schematic diagrams of the processing flow of sequential arrival of fragmented messages provided in the embodiments of the present application.
[0023] Figure 5 This is the second schematic diagram of the processing flow of the sequential arrival of fragmented messages provided in the embodiment of the present application.
[0024] Figure 6This is one of the flowcharts of processing fragmented messages arriving out of order provided in the embodiments of the present application.
[0025] Figure 7 This is the second schematic diagram of the processing flow of out-of-order arrival of fragmented messages provided in the embodiment of the present application.
[0026] Figure 8 It is a structural diagram of the fragment message processing device provided in an embodiment of the present application.
[0027] Fig. 9 It is a schematic diagram of the structure of the firewall provided in the embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.
[0029] In view of the problem of how to effectively process fragmented messages in the prior art, an embodiment of the present application provides a fragmented message processing method, which is applied to a local firewall, wherein the local firewall is any firewall in a dual-active firewall cluster. Figure 2 is a flow chart of a fragment message processing method provided in an embodiment of the present application, such as Figure 2 As shown, the method includes steps 110 to 130.
[0030] Step 110: upon receiving the first fragment message, determine the type of the first fragment message; the type of the first fragment message is used to characterize the position of the first fragment message in the Internet Protocol (IP) message to which it belongs.
[0031] Specifically, after the local firewall receives the message, the message may be a fragmented message or an unfragmented IP message. If the message is a fragmented message, the message may be the first fragmented message or a non-first fragmented message. Therefore, after receiving the first fragmented message, the local firewall can first determine the type of the first fragmented message through the fragmentation flag and fragment offset in the IP (Internet Protocol) header, that is, determine the position of the first fragmented message in the IP message to which it belongs. It should be noted that if the MF (More Fragment) in the fragmentation flag is 1, it indicates that the IP message to which the first fragmented message belongs is fragmented, and there are other fragmented messages after the first fragmented message. If the MF in the fragmentation flag is 0, it indicates that the IP message to which the first fragmented message belongs is fragmented, and the first fragmented message is the last fragmented message in the IP message to which it belongs. The fragment offset indicates the offset of the first fragmented message from the header in the IP message to which it belongs. After determining the fragmentation flag and fragment offset, if the MF in the fragmentation flag is 0 and the fragment offset is 0, it indicates that the message received by the local firewall is an unfragmented message, then the local firewall can create a complete session table entry according to the protocol header and match the forwarding strategy for the unfragmented message. If the MF in the fragmentation flag is 1 and the fragment offset is 0, it indicates that the message received by the local firewall is a fragmented message, and the first fragmented message is the first fragmented message in the IP message to which it belongs, that is, the first fragmented message is at the starting position in the IP message to which it belongs. If the MF in the fragmentation flag is 0 or 1, and the fragment offset is greater than 0, it indicates that the message received by the local firewall is a fragmented message, and the first fragmented message is a non-first fragmented message in the IP message to which it belongs, that is, the first fragmented message is located after the first fragmented message in the IP message to which it belongs. Among them: if MF in the fragment mark is 0 and the fragment offset is greater than 0, it indicates that the fragment message is the last fragment message in the IP message to which it belongs; if MF in the fragment mark is 1 and the fragment offset is greater than 0, it indicates that the fragment message is a non-first fragment message between the first fragment message and the last fragment message in the IP message to which it belongs.
[0032] It should be noted that Figure 3 It is a schematic diagram of the fragmentation of the IP message provided in the embodiment of the present application, such as Figure 3 As shown, the unfragmented IP message includes an IP header, a protocol header and a data part. After the IP message is divided into three fragmented messages, each fragmented message includes an IP header and a data sub-part, and the data sub-part in each fragmented message is different, but the protocol header exists only in the first fragmented message.
[0033] Step 120: Based on the type of the first fragment message, determine a target table entry corresponding to the first fragment message; the target table entry is used to identify the first fragment message.
[0034] Specifically, before determining the type of the first fragmented message and before processing the first fragmented message, it is necessary to determine the target table entry of the first fragmented message according to whether the first fragmented message is the first fragmented message or a non-first fragmented message. The target table entry is used to identify the first fragmented message, so as to facilitate the subsequent identification of other fragmented messages in the IP message according to the target table entry, and avoid abnormal operations on other fragmented messages.
[0035] It should be noted that the target entry includes a message identification entry, or an association between a message identification entry and a session entry. The message identification entry is constructed based on an IP header, and the session entry is constructed based on a protocol header and an IP header.
[0036] Further, the determining, based on the type of the first fragment message, a target table entry corresponding to the first fragment message includes: In the case where the type of the first fragment message is a first fragment message, respectively determining a session table entry and a message identification table entry corresponding to the first fragment message, and determining an association relationship between the session table entry and the message identification table entry; the message identification table entry is used to identify the IP message to which the first fragment message belongs; and the session table entry is used to identify the session to which the IP message belongs; In a case where the type of the first fragment message is a non-first fragment message, a message identification table entry corresponding to the first fragment message is determined.
[0037] Specifically, after determining the type of the first fragment message, if the first fragment message is the first fragment message, then according to the protocol header and IP header in the first fragment message, determine the session table item and message identification table item corresponding to the first fragment message, the message identification table item is used to identify the IP message to which the first fragment message belongs, that is, other fragment messages in the IP message can be identified according to the message identification table item. The session table item is used to identify the session to which the IP message belongs, and the session includes at least one IP message. Afterwards, the session table item and the message identification table item are associated to determine the association relationship between the session table item and the message identification table item, so as to achieve double protection for identifying other fragment messages and ensure the accuracy of subsequent identification and processing of other message fragments.
[0038] Further, the respectively determining the session table entry and the message identification table entry corresponding to the first fragment message, and determining the association relationship between the session table entry and the message identification table entry, includes: Performing a hash operation on the first field information of the IP header in the first fragment message to determine a hash value of a message identification table entry corresponding to the first fragment message; the first field information includes an identifier, a source IP address, and a destination IP address; Determine the message identification table entry corresponding to the first fragment message based on the message identification table entry hash value and the type of the first fragment message; Performing a hash operation on the second field information of the protocol header in the first fragment message, and the source IP address, the destination IP address and the protocol number in the IP header to determine a session table entry hash value; determining a session table entry of the first fragment message based on the session table entry hash value; the second field information includes a source port number and a destination port number; Based on the hash value of the message identification table entry and the hash value of the session table entry in the session table entry, an association relationship corresponding to the session table entry and the message identification table entry is determined.
[0039] Specifically, after determining that the first fragment message is the first fragment message, extract the field information shown in Table 1 from the IP header of the first fragment message, and perform a hash operation on the first field information in Table 1, that is, perform a hash operation on the identifier, the source IP address, and the target IP address to determine the message identification table item hash value corresponding to the first fragment message. Afterwards, query the message identification table item hash value in the cache area of the local firewall. The message identification table item hash value serves as the unique identifier of the IP message to which the first fragment message belongs. Therefore, if the IP messages to which they belong are different, the message identification table item hash values corresponding to the fragment messages are different. Since the first fragment message is the first fragment message received by the local firewall, the return value of querying the message identification table item hash value is empty, that is, other fragment messages of the IP message to which the first fragment message belongs are not queried in the local firewall. At this time, the message identification table entry of the first fragment message can be constructed according to the hash value of the message identification table entry, the type of the first fragment message and the message ID (IdentityDocument, identity identification number).
[0040] Table 1 IP header field information
[0041] In addition, since the first fragment message is the first fragment message, the first fragment message includes a protocol header. At this time, a hash operation can be performed based on the source port number and the destination port number in the second field information in the protocol header, as well as the source IP address, the destination IP address and the protocol number in the IP header to calculate the session table item hash value. Afterwards, the session table item hash value is queried in the cache area of the local firewall. Since the first fragment message is the first fragment message received by the local firewall, the return value of the query of the session table item hash value is empty. At this time, a session table item can be constructed based on the session table item hash value and the session ID. Afterwards, the message identification table item is associated with the session table item according to the message identification table item hash value and the session table item hash value to obtain the association relationship between the message identification table item and the session table item. For example, the association relationship between the message identification table item and the session table item is shown in Table 2. As can be seen from Table 2, the session table entries of different sessions have different hash values, the message identification table entries of different IP packets in the same session have different hash values, and the message identification table entries of different fragmented packets in the same IP packet have the same hash value.
[0042] Table 2 Association between message identification table entries and session table entries
[0043] If the first fragment message is a non-first fragment message, since there is only an IP header in the non-first fragment message, a hash operation can be performed based on the identifier, source IP address, and destination IP address in the IP header of the non-first fragment message to determine the message identification table entry of the non-first fragment message. The steps for determining the message identification table entry of the non-first fragment message are the same as those for determining the message identification table entry of the first fragment message, and the embodiments of the present application will not be repeated here.
[0044] It should be noted that the message ID can be automatically determined according to the order in which the IP messages to which the first fragment message belongs are received, and the maximum value of the message ID is the total number of IP messages included in the session to which the IP message belongs. The session ID can be automatically determined according to the order in which the IP message belongs to the session.
[0045] It should be noted that the cache area is an independent area divided in the local firewall. After receiving the fragmented message, the local firewall can store the fragmented message in the cache area. The cache area can also store the message identification table items created by itself or synchronized by the opposite firewall, or the association between the message identification table items and the session table items. In addition, the cache area also exists in the opposite firewall.
[0046] Step 130: Synchronize the target entry to the peer firewall to instruct the peer firewall and the local firewall to respectively identify other fragmented messages that have the same IP message as the first fragmented message.
[0047] Specifically, after determining the target table entry of the first fragmented message, the target table entry can be synchronized to the opposite firewall. After receiving the target table entry, if the opposite firewall receives other fragmented messages, it can identify the other fragmented messages according to the target table entry to determine whether the other fragmented messages and the first fragmented message received by the local firewall belong to the same IP message, thereby avoiding abnormal processing of the other fragmented messages.
[0048] Furthermore, synchronizing the target entry to the peer firewall includes: The target table entry is synchronized to the peer firewall based on a heartbeat cable or a synchronization cable.
[0049] Specifically, in the prior art, firewalls deployed in pairs are interconnected through heartbeat cables, and the firewalls deployed in pairs send heartbeat messages to each other through the heartbeat cables to determine whether the status of the firewall device at the other end is normal and whether a failover is to be performed. The heartbeat cable can also be used to synchronize configuration commands and status information between the two firewalls, and to verify whether key configuration information such as configuration security policies and NAT (Network Address Translation) are consistent. In an embodiment of the present application, the function of the heartbeat cable is extended. After the local firewall determines the target table item, the target table item is sent to the opposite firewall through the heartbeat cable, so as to synchronize the target table item between the local firewall and the opposite firewall. In addition, a synchronization cable can be added between the local firewall and the opposite firewall. The synchronization cable can be a dedicated data synchronization cable. In an embodiment of the present application, it is configured to transmit the target table item between the local firewall and the opposite firewall.
[0050] Furthermore, in the case where the type of the first fragment message is a first fragment message, the method further includes: When the firewall forwarding mode is the synchronous forwarding mode, receiving other non-first fragment messages sent by the peer firewall, and sending a first confirmation message to the peer firewall; the first confirmation message is used to instruct the peer firewall to delete the other non-first fragment messages; when the deletion confirmation message sent by the peer firewall is received, forwarding strategy matching is performed on the other non-first fragment messages based on the target table entry; When the firewall forwarding mode is the fast forwarding mode, forwarding policy matching is performed on other subsequent fragment messages cached by the local firewall based on the target entry, and the target entry is also used to instruct the opposite firewall to match forwarding policy matching on other non-first fragment messages based on the target entry; the other non-first fragment messages are cached by the opposite firewall based on the target entry.
[0051] For example, Figure 4This is one of the schematic diagrams of the processing flow of sequential arrival of fragmented messages provided in the embodiment of the present application, such as Figure 4 As shown in the figure, the local firewall is Figure 4 The firewall shown is 1, and the peer firewall is Figure 4 Taking firewall 2 as an example, when the firewall forwarding modes corresponding to firewall 1 and firewall 2 are both configured as synchronous forwarding modes, the processing of fragmented messages by firewall 1 and firewall 2 includes the following steps.
[0052] (1) When Firewall 1 receives the first fragment message corresponding to the IP message in the session, it calculates the message identification table entry hash value based on the IP header of the first fragment message, and calculates the session table entry hash value based on the IP header and the protocol header, and queries the message identification table entry hash value and the session table entry hash value in the cache area of Firewall 1. If the return value is null, it creates a message identification table entry and a session table entry, associates the message identification table entry and the session table entry, determines the association relationship between the message identification table entry and the session table entry, synchronizes the association relationship to Firewall 2, and caches the first fragment message.
[0053] (2) After receiving the association relationship, Firewall 2 identifies and caches other non-first fragment messages belonging to the same session and the same IP message based on the association relationship, and synchronizes other non-first fragment messages to Firewall 1.
[0054] (3) After receiving the other non-first fragment messages synchronized by firewall 2, firewall 1 sends a first confirmation message to firewall 1 to indicate that firewall 2 has received the other non-first fragment messages synchronized.
[0055] (4) After receiving the first confirmation message sent by firewall 1, firewall 2 deletes other non-first fragment messages in the cache area to release cache space and prevent duplicate non-first fragment messages from occupying excess storage resources. After deleting other non-first fragment messages, firewall 2 sends a deletion confirmation message to firewall 1 to indicate that other non-first fragment messages have been deleted.
[0056] (5) After receiving the deletion confirmation information, Firewall 1 can match the forwarding strategy for other non-first fragment messages synchronized by Firewall 2 based on the association relationship. In addition, it can also match the forwarding strategy for the first fragment message and other fragment messages cached by Firewall 1 based on the association relationship.
[0057] For example, Figure 5 This is the second schematic diagram of the processing flow of the sequential arrival of fragmented messages provided in the embodiment of the present application, such as Figure 5 As shown in the figure, the local firewall is Figure 5 The firewall shown is 1, and the peer firewall is Figure 5Taking firewall 2 as an example, when the firewall forwarding modes corresponding to firewall 1 and firewall 2 are configured as fast forwarding mode, the difference between the processing steps of firewall 1 and firewall 2 for fragmented messages and those in the synchronous forwarding mode is that after firewall 1 determines the association relationship, the forwarding policy is matched for the first fragmented message. Firewall 1 and firewall 2 can independently match the forwarding policies for other fragmented messages, that is, after firewall 1 synchronizes the association relationship with firewall 2, firewall 1 can match the forwarding policies for other subsequent fragmented messages that belong to the same IP message identified and cached according to the association relationship. At the same time, firewall 2 can also match the forwarding policies for other non-first fragmented messages that belong to the same IP message identified and cached according to the association relationship, without synchronizing other non-first fragmented messages to firewall 1, thereby improving the processing efficiency of fragmented messages.
[0058] Furthermore, in the case where the type of the first fragment message is a non-first fragment message, the method further includes: When receiving the first fragment message, determine the session table entry corresponding to the first fragment message, and determine the association relationship between the session table entry and the message identification table entry; synchronize the association relationship to the peer firewall; When the firewall forwarding mode is the synchronous forwarding mode, receiving other non-first fragment messages sent by the peer firewall, and sending a second confirmation message to the peer firewall; when receiving the deletion confirmation message sent by the peer firewall, matching the forwarding strategy of the other non-first fragment messages; the second confirmation message is used to instruct the peer firewall to delete the other non-first fragment messages; When the firewall forwarding mode is the fast forwarding mode, forwarding policy matching is performed on other subsequent fragment messages cached by the local firewall based on the association relationship; the association relationship is also used to instruct the opposite firewall to match forwarding policy on other non-first fragment messages based on the association relationship; the other non-first fragment messages are cached by the opposite firewall based on the target table entry or the association relationship.
[0059] For example, Figure 6 This is one of the schematic diagrams of the processing flow of out-of-order arrival of fragmented messages provided in the embodiment of the present application, such as Figure 6 As shown in the figure, the local firewall is Figure 6 The firewall shown is 1, and the peer firewall is Figure 6 Taking firewall 2 shown as an example, after firewall 1 receives the first fragment message, it receives the first fragment message of the IP message to which it belongs again, and the firewall forwarding modes corresponding to firewall 1 and firewall 2 are both configured as synchronous forwarding mode, the processing of fragment messages by firewall 1 and firewall 2 includes the following steps.
[0060] (1) When Firewall 1 receives the first fragment message corresponding to the IP message, it calculates the session table entry hash value based on the IP header and protocol header of the first fragment message, and determines the association between the session table entry and the message identification table entry based on the session table entry hash value and the message identification table entry hash value in the message identification table entry, and caches the first fragment message in the cache area of Firewall 1.
[0061] (2) Firewall 1 synchronizes the association relationship to Firewall 2.
[0062] (3) After receiving the association relationship, Firewall 2 identifies and caches other non-first fragment messages belonging to the same session and the same IP message based on the association relationship, and synchronizes other non-first fragment messages to Firewall 1.
[0063] (4) After receiving the other non-first fragment messages synchronized by firewall 2, firewall 1 sends a second confirmation message to firewall 1 to indicate that firewall 2 has received the other non-first fragment messages synchronized.
[0064] (5) After receiving the second confirmation message sent by firewall 1, firewall 2 deletes other non-first fragment messages in the cache area to release cache space and prevent duplicate non-first fragment messages from occupying excess storage resources. After deleting other non-first fragment messages, firewall 2 sends a deletion confirmation message to firewall 1 to indicate that other non-first fragment messages have been deleted.
[0065] (6) After receiving the deletion confirmation information, Firewall 1 can match the forwarding strategy for other non-first fragment messages synchronized by Firewall 2 based on the association relationship. In addition, it can also match the forwarding strategy for the first fragment message and other fragment messages cached by Firewall 1 based on the association relationship.
[0066] For example, Figure 7 This is the second schematic diagram of the processing flow of out-of-order arrival of fragmented messages provided in the embodiment of the present application, such as Figure 7 As shown in the figure, the local firewall is Figure 7 The firewall shown is 1, and the peer firewall is Figure 7Taking firewall 2 as an example, after firewall 1 receives the first fragment message, it receives the first fragment message of the IP message again, and the firewall forwarding modes corresponding to firewall 1 and firewall 2 are both configured as fast forwarding mode, the difference between firewall 1 and firewall 2 in processing fragment messages and that in synchronous forwarding mode is that: after firewall 1 synchronizes the association relationship with firewall 2, firewall 1 and firewall 2 can independently match the forwarding policies of other fragment messages, that is, firewall 1 can match the forwarding policies of other subsequent fragment messages belonging to the same IP message cached by firewall 1 according to the association relationship. At the same time, firewall 2 can also match the forwarding policies of other non-first fragment messages belonging to the same IP message cached by firewall 2 according to the association relationship. There is no need to synchronize other non-first fragment messages to firewall 1, thereby improving the processing efficiency of fragment messages.
[0067] Furthermore, in the case where the type of the first fragment message is a non-first fragment message, the method further includes: In the case where the first fragment message is not received, receiving the association relationship corresponding to the first fragment message synchronized by the opposite firewall; Cache other non-first fragment messages based on the target table entry or the association relationship; When the firewall forwarding mode is the synchronous forwarding mode, synchronizing the other non-first fragment messages to the peer firewall; when receiving the third confirmation information, deleting the other non-first fragment messages in the cache space, and sending a deletion confirmation message to the peer firewall; When the firewall forwarding mode is the fast forwarding mode, forwarding strategy matching is performed on the other non-first fragment messages based on the association relationship.
[0068] It should be noted that after the local firewall receives the first fragment message, the peer firewall receives the first fragment message of the corresponding IP message, and the local firewall and the peer firewall's corresponding firewall forwarding mode are both configured as synchronous forwarding mode, the local firewall's processing steps for the fragment message are the same as Figure 6 The processing steps of firewall 2 are the same as those of the other firewall. Figure 6 The processing steps of the protective wall 1 shown are the same and will not be repeated here in the embodiment of the present application.
[0069] In addition, if the local firewall and the peer firewall's corresponding firewall forwarding mode are both configured as fast forwarding mode, the local firewall's processing steps for fragmented packets are the same as Figure 7 The processing steps of firewall 2 are the same as those of the other firewall. Figure 7 The processing steps of the protective wall 1 shown are the same and will not be repeated here in the embodiment of the present application.
[0070] The fragment message processing method provided in the embodiment of the present application is for any firewall in the active-active firewall cluster. When receiving the first fragment message, the type of the first fragment message is determined according to the position of the first fragment message in the IP message to which it belongs, and the target table item corresponding to the first fragment message is determined according to the type of the first fragment message, and the target table item is synchronized to the opposite firewall. In the active-active firewall cluster, the opposite firewall and the local firewall can respectively identify other fragment messages that are the same as the IP message to which the first fragment message belongs according to the target table item, so as to achieve effective processing of the fragment message and ensure the integrity and processing efficiency of the IP message. At the same time, the waste of hardware resources and system resources by the standby firewall in the active-standby mode is avoided, and the resource utilization efficiency of the active-active firewall cluster is improved.
[0071] In addition, in the prior art, the fragmentation transparent transmission function can also be enabled in two firewalls set in pairs, and the deployment mode is not constrained. In this scheme, only the first fragmentation message of the IP message is matched by the policy, and the subsequent fragmentation messages are directly forwarded according to the routing table. This means that the two firewalls will not conduct in-depth detection and analysis on the fragmentation of the IP message, but directly forward the subsequent fragmentation message to the next network node. For the traffic blocked by the policy, the subsequent fragmentation message will also be released, which greatly increases the risk of network security. At the same time, the fragmentation transparent transmission function will also affect the advanced features other than the firewall security policy. For example, the firewall that enables the fragmentation transparent transmission function cannot use the NAT function and the content security function. Compared with the fragmentation transparent transmission scheme in the prior art, the processing method of the fragmentation message transparent transmission is abandoned in the embodiment of the present application, and the fragmentation message processing is performed with the necessary premise of ensuring network security. Even if different fragmentation messages of the same IP message are forwarded to two firewalls, the fragmentation message can still be matched with the forwarding strategy and forwarded normally, reducing the risk of network security and improving the reliability and security of the active-active firewall cluster.
[0072] The fragmented message processing device provided in an embodiment of the present application is described below. The fragmented message processing device described below and the fragmented message processing method described above can be referenced to each other.
[0073] The embodiment of the present application also provides a fragment message processing device, which is applied to a local firewall, wherein the local firewall is any firewall in a dual-active firewall cluster. Figure 8 is a structural diagram of a fragment message processing device provided in an embodiment of the present application, such as Figure 8 As shown, the fragment message processing device 800 includes: a first determination module 810, a second determination module 820 and a synchronization module 830.
[0074] The first determination module 810 is used to determine the type of the first fragment message when the first fragment message is received; the type of the first fragment message is used to characterize the position of the first fragment message in the Internet Protocol IP message to which it belongs.
[0075] The second determination module 820 is used to determine a target table entry corresponding to the first fragment message based on the type of the first fragment message; the target table entry is used to identify the first fragment message.
[0076] The synchronization module 830 is used to synchronize the target table entry to the peer firewall to instruct the peer firewall and the local firewall to respectively identify other fragmented messages that are the same as the IP message to which the first fragmented message belongs.
[0077] The fragment message processing device provided in the embodiment of the present application is for any firewall in the active-active firewall cluster. When receiving the first fragment message, the type of the first fragment message is determined according to the position of the first fragment message in the IP message to which it belongs, and the target table item corresponding to the first fragment message is determined according to the type of the first fragment message, and the target table item is synchronized to the opposite firewall. In the active-active firewall cluster, the opposite firewall and the local firewall can respectively identify other fragment messages that are the same as the IP message to which the first fragment message belongs according to the target table item, so as to achieve effective processing of the fragment message and ensure the integrity of the IP message. At the same time, the waste of hardware resources and system resources by the standby firewall in the active-standby mode is avoided, and the resource utilization efficiency and reliability of the active-active firewall cluster are improved.
[0078] Optionally, the target entry includes a message identification entry, or an association relationship between a message identification entry and a session entry.
[0079] Optionally, the second determination module 820 is specifically used to: when the type of the first fragmented message is a first fragmented message, respectively determine the session table entry and the message identification table entry corresponding to the first fragmented message, and determine the association relationship between the session table entry and the message identification table entry; the message identification table entry is used to identify the IP message to which the first fragmented message belongs; the session table entry is used to identify the session to which the IP message belongs; when the type of the first fragmented message is a non-first fragmented message, determine the message identification table entry corresponding to the first fragmented message.
[0080] Optionally, the second determination module 820 is specifically used to: perform a hash operation on the first field information of the IP header in the first fragmented message to determine a message identification table item hash value corresponding to the first fragmented message; the first field information includes an identifier, a source IP address, and a target IP address; based on the message identification table item hash value and the type of the first fragmented message, determine the message identification table item corresponding to the first fragmented message; perform a hash operation on the second field information of the protocol header in the first fragmented message, and the source IP address, target IP address, and protocol number in the IP header to determine a session table item hash value; based on the session table item hash value, determine the session table item of the first fragmented message; the second field information includes a source port number and a target port number; based on the message identification table item hash value and the session table item hash value in the session table item, determine the corresponding association relationship between the session table item and the message identification table item.
[0081] Optionally, the synchronization module 830 is specifically configured to synchronize the target entry to the peer firewall based on a heartbeat cable or a synchronization cable.
[0082] Optionally, the fragmented message processing device 800 also includes: a first forwarding module. When the type of the first fragmented message is the first fragmented message, the first forwarding module is specifically used to: when the firewall forwarding mode is the synchronous forwarding mode, receive other non-first fragmented messages sent by the opposite firewall, and send a first confirmation message to the opposite firewall; the first confirmation message is used to instruct the opposite firewall to delete the other non-first fragmented messages; when the deletion confirmation message sent by the opposite firewall is received, forwarding policy matching is performed on the other non-first fragmented messages based on the target table entry; when the firewall forwarding mode is the fast forwarding mode, forwarding policy matching is performed on other subsequent fragmented messages cached by the local firewall based on the target table entry, and the target table entry is also used to instruct the opposite firewall to match the forwarding policy on other non-first fragmented messages based on the target table entry; the other non-first fragmented messages are cached by the opposite firewall based on the target table entry.
[0083] Optionally, the fragment message processing device 800 further includes: a third determination module, in the case where the type of the first fragment message is a non-first fragment message, the third determination module is specifically used to: determine the session table item corresponding to the first fragment message when the first fragment message is received, and determine the association relationship between the session table item and the message identification table item; synchronize the association relationship to the peer firewall; in the case where the firewall forwarding mode is the synchronous forwarding mode, receive other non-first fragment messages sent by the peer firewall, and send a second confirmation message to the peer firewall; and in the case where the firewall forwarding mode is the synchronous forwarding mode, receive the other non-first fragment messages sent by the peer firewall, and send a second confirmation message to the peer firewall; In the case of deletion confirmation information sent by the firewall, forwarding policy matching is performed on the other non-first fragment messages; the second confirmation information is used to instruct the opposite firewall to delete the other non-first fragment messages; when the forwarding mode of the firewall is the fast forwarding mode, forwarding policy matching is performed on other subsequent fragment messages cached by the local firewall based on the association relationship; the association relationship is also used to instruct the opposite firewall to match the forwarding policy on other non-first fragment messages based on the association relationship; the other non-first fragment messages are cached by the opposite firewall based on the target table entry or the association relationship.
[0084] Optionally, the fragmented message processing device 800 also includes: a second forwarding module. When the type of the first fragmented message is a non-first fragmented message, the second forwarding module is specifically used to: when the first fragmented message is not received, receive the association relationship corresponding to the first fragmented message synchronized by the opposite firewall; cache other non-first fragmented messages based on the target table entry or the association relationship; when the firewall forwarding mode is the synchronous forwarding mode, synchronize the other non-first fragmented messages to the opposite firewall; when the third confirmation information is received, delete the other non-first fragmented messages in the cache space and send the deletion confirmation information to the opposite firewall; when the firewall forwarding mode is the fast forwarding mode, match the forwarding strategy for the other non-first fragmented messages based on the association relationship.
[0085] Fig. 9 is a schematic diagram of the structure of the firewall provided in the embodiment of the present application, such as Fig. 9 As shown, the electronic device may include: a processor 910, a communication interface 920, a memory 930 and a communication bus 940, wherein the processor 910, the communication interface 920 and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call the logic instructions in the memory 930 to execute the fragment message processing method, which includes: When receiving the first fragment message, determining the type of the first fragment message; the type of the first fragment message is used to characterize the position of the first fragment message in the Internet Protocol IP message to which it belongs; Based on the type of the first fragment message, determine a target table entry corresponding to the first fragment message; the target table entry is used to identify the first fragment message; The target table entry is synchronized to the peer firewall to instruct the peer firewall and the local firewall to respectively identify other fragmented messages that are the same as the IP message to which the first fragmented message belongs.
[0086] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0087] On the other hand, an embodiment of the present application further provides a computer program product, the computer program product including a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the fragment message processing method provided by the above methods, the method including: When receiving the first fragment message, determining the type of the first fragment message; the type of the first fragment message is used to characterize the position of the first fragment message in the Internet Protocol IP message to which it belongs; Based on the type of the first fragment message, determine a target table entry corresponding to the first fragment message; the target table entry is used to identify the first fragment message; The target table entry is synchronized to the peer firewall to instruct the peer firewall and the local firewall to respectively identify other fragmented messages that are the same as the IP message to which the first fragmented message belongs.
[0088] On the other hand, an embodiment of the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for processing fragmented messages provided by the above methods is implemented, and the method includes: When receiving the first fragment message, determining the type of the first fragment message; the type of the first fragment message is used to characterize the position of the first fragment message in the Internet Protocol IP message to which it belongs; Based on the type of the first fragment message, determine a target table entry corresponding to the first fragment message; the target table entry is used to identify the first fragment message; The target table entry is synchronized to the peer firewall to instruct the peer firewall and the local firewall to respectively identify other fragmented messages that are the same as the IP message to which the first fragmented message belongs.
[0089] An embodiment of the present application also provides an active-active firewall cluster, comprising two firewalls configured in an active-active deployment mode, wherein the two firewalls are connected based on a heartbeat cable or a synchronization cable, and any one of the two firewalls is used to execute the fragmented message processing method as described in any of the above items.
[0090] In the embodiment of the present application, by changing the two firewalls from the active-standby mode to the active-active deployment mode, the reliability of the service can be guaranteed and the service processing capability of the active-active firewall cluster can be improved, and the active-active firewall cluster can be fully utilized to achieve load balancing of the service.
[0091] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0092] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0093] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present application, rather than to limit them. Although the embodiments of the present application have been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the embodiments of the present application.
Claims
1. A fragment message processing method, characterized in that: Applied to a local firewall, the local firewall being any firewall in an active-active firewall cluster, the method comprises: When receiving the first fragment message, determining the type of the first fragment message; the type of the first fragment message is used to characterize the position of the first fragment message in the Internet Protocol IP message to which it belongs; Based on the type of the first fragment message, determine a target table entry corresponding to the first fragment message; the target table entry is used to identify the first fragment message; The target table entry is synchronized to the peer firewall to instruct the peer firewall and the local firewall to respectively identify other fragmented messages that are the same as the IP message to which the first fragmented message belongs.
2. The method for processing fragmented messages according to claim 1, characterized in that: The target table entry includes a message identification table entry, or an association relationship between a message identification table entry and a session table entry; The determining, based on the type of the first fragment message, a target table entry corresponding to the first fragment message includes: In the case where the type of the first fragment message is a first fragment message, respectively determining a session table entry and a message identification table entry corresponding to the first fragment message, and determining an association relationship between the session table entry and the message identification table entry; the message identification table entry is used to identify the IP message to which the first fragment message belongs; and the session table entry is used to identify the session to which the IP message belongs; In a case where the type of the first fragment message is a non-first fragment message, a message identification table entry corresponding to the first fragment message is determined.
3. The method for processing fragmented messages according to claim 2, characterized in that: In the case where the type of the first fragment message is a first fragment message, the method further includes: When the firewall forwarding mode is the synchronous forwarding mode, receiving other non-first fragment messages sent by the peer firewall, and sending a first confirmation message to the peer firewall; the first confirmation message is used to instruct the peer firewall to delete the other non-first fragment messages; when the deletion confirmation message sent by the peer firewall is received, forwarding strategy matching is performed on the other non-first fragment messages based on the target table entry; When the firewall forwarding mode is the fast forwarding mode, forwarding policy matching is performed on other subsequent fragment messages cached by the local firewall based on the target entry, and the target entry is also used to instruct the opposite firewall to match forwarding policy matching on other non-first fragment messages based on the target entry; the other non-first fragment messages are cached by the opposite firewall based on the target entry.
4. The method for processing fragmented messages according to claim 2, characterized in that: In the case where the type of the first fragment message is a non-first fragment message, the method further includes: When receiving the first fragment message, determine the session table entry corresponding to the first fragment message, and determine the association relationship between the session table entry and the message identification table entry; synchronize the association relationship to the peer firewall; When the firewall forwarding mode is the synchronous forwarding mode, receiving other non-first fragment messages sent by the peer firewall, and sending a second confirmation message to the peer firewall; when receiving the deletion confirmation message sent by the peer firewall, matching the forwarding strategy of the other non-first fragment messages; the second confirmation message is used to instruct the peer firewall to delete the other non-first fragment messages; When the firewall forwarding mode is the fast forwarding mode, forwarding policy matching is performed on other subsequent fragment messages cached by the local firewall based on the association relationship; the association relationship is also used to instruct the opposite firewall to match forwarding policy on other non-first fragment messages based on the association relationship; the other non-first fragment messages are cached by the opposite firewall based on the target table entry or the association relationship.
5. The method for processing fragmented messages according to claim 2, characterized in that: In the case where the type of the first fragment message is a non-first fragment message, the method further includes: In the case where the first fragment message is not received, receiving the association relationship corresponding to the first fragment message synchronized by the opposite firewall; Cache other non-first fragment messages based on the target table entry or the association relationship; When the firewall forwarding mode is the synchronous forwarding mode, synchronizing the other non-first fragment messages to the peer firewall; when receiving the third confirmation information, deleting the other non-first fragment messages in the cache space, and sending a deletion confirmation message to the peer firewall; When the firewall forwarding mode is the fast forwarding mode, forwarding strategy matching is performed on the other non-first fragment messages based on the association relationship.
6. The method for processing fragmented messages according to any one of claims 2 to 5, characterized in that: The respectively determining the session table entry and the message identification table entry corresponding to the first fragment message, and determining the association relationship between the session table entry and the message identification table entry, includes: Performing a hash operation on the first field information of the IP header in the first fragment message to determine a hash value of a message identification table entry corresponding to the first fragment message; the first field information includes an identifier, a source IP address, and a destination IP address; Determine the message identification table entry corresponding to the first fragment message based on the message identification table entry hash value and the type of the first fragment message; Performing a hash operation on the second field information of the protocol header in the first fragment message, and the source IP address, the destination IP address and the protocol number in the IP header to determine a session table entry hash value; determining a session table entry of the first fragment message based on the session table entry hash value; the second field information includes a source port number and a destination port number; Based on the hash value of the message identification table entry and the hash value of the session table entry in the session table entry, an association relationship corresponding to the session table entry and the message identification table entry is determined.
7. The method for processing fragmented messages according to any one of claims 1 to 5, characterized in that: The step of synchronizing the target entry to the peer firewall includes: The target table entry is synchronized to the peer firewall based on a heartbeat cable or a synchronization cable.
8. A fragment message processing device, characterized in that: Applied to a local firewall, the local firewall is any firewall in an active-active firewall cluster, and the device includes: A first determination module is used to determine the type of the first fragment message when the first fragment message is received; the type of the first fragment message is used to characterize the position of the first fragment message in the Internet Protocol IP message to which it belongs; A second determination module, configured to determine a target table entry corresponding to the first fragment message based on the type of the first fragment message; the target table entry is used to identify the first fragment message; A synchronization module is used to synchronize the target table entry to the peer firewall, wherein the target table entry is used to instruct the peer firewall and the local firewall to respectively identify other fragmented messages that are the same as the IP message to which the first fragmented message belongs.
9. A firewall, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the fragment message processing method as described in any one of claims 1 to 7 is implemented.
10. A dual-active firewall cluster, characterized in that: It comprises two firewalls configured in a dual-active deployment mode, the two firewalls are connected based on a heartbeat cable or a synchronization cable, and any one of the two firewalls is used to execute the fragmented message processing method as described in any one of claims 1 to 7.
11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the fragment message processing method as described in any one of claims 1 to 7 is implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the fragment message processing method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Message processing method and device and network equipment
CN114793199A
Security protection method and device for IP fragmented message
CN116506182A
IP message fragment cache memory and forwarding method
CN1863158A
Data detecting method and device for firewall
WO2013097475A1
Cited By
Fragmented message tuple recovery method, network card, gateway, storage medium and program
CN119232668A
