Keyword blocking method and related equipment for multiple data transmission links
By setting up a table linking five-tuples to URLs in multiple data transmission links, the problem of DPI devices in different data centers being unable to associate URLs was solved, thus improving the efficiency of keyword blocking across nodes.
Patent Information
- Application Number
- CN202211714773.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-12-29
AI Technical Summary
In a network environment with multiple data transmission links, when downlink and uplink traffic pass through DPI devices in different data centers, they cannot be effectively associated with URLs, resulting in reduced keyword blocking efficiency.
By setting up a table relating 5-tuples to URLs in multiple data transmission links, the 5-tuple information and tagging information of downlink traffic are synchronized to each node, enabling cross-node URL association and blocking.
This avoids the repeated recombination and restoration of traffic, improving the efficiency and accuracy of keyword blocking.
Smart Images

Figure CN115987826B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of deep message inspection, and in particular to a keyword blocking method for multiple data transmission links and related equipment. Background Art
[0002] DPI (Deep Packet Inspection) is a deep inspection technology based on data packets. It performs deep inspection on different network application layer loads (such as HTTP, DNS, etc.) and determines the legitimacy of the message by inspecting the payload of the message. In order to ensure the information security of the network, it is often necessary to deploy DPI equipment in the IDC (Internet Data Center) computer room to detect and block sensitive keywords in the web pages transmitted in the HTTP protocol to prevent the spread of malicious information.
[0003] Specifically, a DPI device often processes the upstream or downstream traffic of a session. It reorganizes and restores the downstream traffic to obtain the corresponding transmission page, and then performs a match determination on the transmission page for illegal keywords. If the determination is successful, it is associated with the URL (uniform resource locator) of the transmission page so that the URL can be directly blocked when it appears again.
[0004] However, the route of the traffic of users accessing a certain web page is not fixed. For the sake of stability, the rooms generally have redundant backups. For example, when the data transmission link of computer room A is interrupted (for example, the optical cable is dug up), the load traffic of computer room A automatically switches to the data transmission link of computer room B under the routing selection rules. Therefore, there are often situations where the upstream traffic and downstream traffic pass through different computer rooms. When the upstream traffic and downstream traffic pass through different computer rooms, the upstream traffic corresponding to the downstream traffic passes through other DPI devices in other computer rooms and cannot be associated with the URL of the transmission page. As a result, the transmission page still needs to be reorganized and restored when it appears again, which reduces the efficiency of keyword blocking. Summary of the invention
[0005] The present application provides a keyword blocking method and related equipment for multiple data transmission links, aiming to improve the efficiency of keyword blocking.
[0006] On the one hand, the present application provides a keyword blocking method for multiple data transmission links, the multiple data transmission links are arranged between a user end and a server end, the multiple data transmission links include a first link for transmitting uplink traffic and a second link for transmitting downlink traffic, the first link is connected to a first node for deep packet inspection, the second link is connected to a second node for deep packet inspection, the method is applied to the first node, and includes:
[0007] Obtaining first uplink traffic in the first link;
[0008] Obtaining first five-tuple information and first URL information of the first uplink traffic;
[0009] The first five-tuple information and the first URL information are stored in the association relationship table between the five-tuple and the URL of the first node;
[0010] Receiving second quintuple information and tag information of the second quintuple information sent by the second node, wherein the second node obtains second downlink traffic in the second link, obtains second quintuple information of the second downlink traffic, and determines tag information of the second quintuple information;
[0011] Based on the association relationship table, determine the second URL information associated with the second quintuple information;
[0012] The second URL information and the tag information are synchronized to the URL list table in each node used for deep packet detection, wherein the URL list table stores multiple URL information and tag information of each URL information, so as to perform keyword blocking based on the URL list table.
[0013] In some embodiments, the second five-tuple information includes a source IP, a source port, a target IP, and a target port, and determining the second URL information associated with the second five-tuple information based on the association relationship table includes:
[0014] Based on the second five-tuple information, generate target five-tuple information, the source IP in the target five-tuple information is the target IP in the second five-tuple information, the source port in the target five-tuple information is the target port in the second five-tuple information, the target IP in the target five-tuple information is the source IP in the second five-tuple information, and the target port in the target five-tuple information is the source port in the second five-tuple information;
[0015] Determine the url information of the target quintuple information in the association relationship table and use it as the second url information associated with the second quintuple information.
[0016] In some embodiments, the URL list table is a URL black and white list table, the marking information of each URL information in the URL black and white list table is a white mark or a black mark, and the marking information of the second quintuple information is a white mark or a black mark.
[0017] In some embodiments, after synchronizing the second URL information and the tag information to the URL list table in each node for deep packet inspection, the method further includes:
[0018] Acquire second uplink traffic in the first link;
[0019] If the mark information of the url information of the second uplink traffic in the synchronized url list table is a black mark, the second uplink traffic is blocked;
[0020] If the mark information of the URL information of the second upstream traffic in the synchronized URL list table is a white mark, the quintuple information of the second upstream traffic is synchronized to the quintuple whitelist table in each node used for deep packet detection, so that when the quintuple information of the received third downstream traffic exists in the synchronized quintuple whitelist table, the third downstream traffic will not be reassembled, restored or blocked.
[0021] On the other hand, the present application provides a keyword blocking method for multiple data transmission links, the method being applied to the second node described in any one of the above items, comprising:
[0022] Acquire second downlink traffic in the second link;
[0023] Obtain second quintuple information of the second downstream traffic;
[0024] If the five-tuple information does not exist in the five-tuple whitelist table of the second node, detecting whether a preset keyword exists in the second downlink traffic;
[0025] Determining tag information of the second downstream traffic based on whether a preset keyword exists in the second downstream traffic;
[0026] The second quintuple information and the marking information of the second quintuple information are sent to each node used for deep message inspection, so that each node can determine the second URL information associated with the second quintuple information based on the association relationship table between the quintuple and the URL of each node, and synchronize the second URL information and the marking information to the URL list table in each node used for deep message inspection, wherein the URL list table stores multiple URL information and the marking information of each URL information, so as to perform keyword blocking based on the URL list table.
[0027] In some embodiments, if the five-tuple information does not exist in the five-tuple whitelist table of the second node, detecting whether a preset keyword exists in the second downlink traffic includes:
[0028] If the five-tuple information does not exist in the five-tuple whitelist table of the second node, reorganize and restore the second downstream traffic to obtain the original content of the second downstream traffic;
[0029] Based on whether a preset keyword exists in the original content, it is determined whether a preset keyword exists in the second downstream traffic.
[0030] In some embodiments, after sending the second five-tuple information and the marking information of the second five-tuple information to each node for deep packet inspection, the method further includes:
[0031] Receiving quintuple information of the second uplink traffic sent by the first node;
[0032] Synchronize the quintuple information of the second upstream traffic to the quintuple whitelist table of the second node;
[0033] When the received quintuple information of the third downstream traffic exists in the synchronized quintuple whitelist table, no reassembly, restoration or blocking is performed on the third downstream traffic.
[0034] On the other hand, the present application provides a keyword blocking device for multiple data transmission links, the device comprising:
[0035] An acquiring unit, configured to acquire first uplink traffic in the first link, and acquire first five-tuple information and first URL information of the first uplink traffic;
[0036] A storage unit, used to store the first five-tuple information and the first URL information in an association relationship table between the five-tuple and the URL of the first node;
[0037] a receiving unit, configured to receive the second quintuple information and the marking information of the second quintuple information sent by the second node, wherein the second node obtains the second downlink traffic in the second link, obtains the second quintuple information of the second downlink traffic, and determines the marking information of the second quintuple information;
[0038] A determining unit, configured to determine, based on the association relationship table, second URL information associated with the second quintuple information;
[0039] A synchronization unit is used to synchronize the second URL information and the tag information to a URL list table in each node used for deep packet detection, wherein the URL list table stores multiple URL information and tag information of each URL information, so as to perform keyword blocking based on the URL list table.
[0040] On the other hand, the present application provides a keyword blocking device for multiple data transmission links, the device comprising:
[0041] An extraction unit, configured to obtain second downlink traffic in the second link, and obtain second five-tuple information of the second downlink traffic;
[0042] a detection unit, configured to detect whether a preset keyword exists in the second downlink traffic if the five-tuple information does not exist in the five-tuple whitelist table of the second node;
[0043] a marking unit, configured to determine marking information of the second downstream traffic based on whether a preset keyword exists in the second downstream traffic;
[0044] A sending unit is used to send the second five-tuple information and the marking information of the second five-tuple information to each node used for deep message detection, so that each node can determine the second URL information associated with the second five-tuple information based on the association relationship table between the five-tuple and the URL of each node, and synchronize the second URL information and the marking information to the URL list table in each node used for deep message detection, wherein the URL list table stores multiple URL information and the marking information of each URL information, so as to perform keyword blocking based on the URL list table.
[0045] On the other hand, the present application also provides a computer device, the computer device comprising:
[0046] one or more processors;
[0047] Memory; and
[0048] One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the keyword blocking method for multiple data transmission links.
[0049] On the other hand, the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is loaded by a processor to execute the steps in the keyword blocking method for multiple data transmission links.
[0050] The embodiment of the present application provides a keyword blocking method for multiple data transmission links and related devices. The multiple data transmission links are arranged between a user end and a server end. The multiple data transmission links include a first link for transmitting uplink traffic and a second link for transmitting downlink traffic. The first link is connected to a first node for deep message detection, and the second link is connected to a second node for deep message detection. The method is applied to the first node, including: obtaining a first uplink traffic in the first link; obtaining a first five-tuple information and a first URL information of the first uplink traffic; storing the first five-tuple information and the first URL information in a five-tuple and URL association table of the first node; receiving a second five-tuple information and a tag information of the second five-tuple information sent by the second node, wherein the second node obtains a second downlink traffic in the second link, obtains a second five-tuple information of the second downlink traffic, and determines the tag information of the second five-tuple information; based on the association table, determines the second URL information associated with the second five-tuple information; synchronizes the second URL information and the tag information to a URL list table in each node for deep message detection, wherein the URL list table stores multiple URL information and the tag information of each URL information, so as to perform keyword blocking based on the URL list table. The embodiment of the present application sends the quintuple information and tag information of the downstream traffic to the first node. In this way, the first node can determine the URL associated with the quintuple information based on the association relationship table between the quintuple and the URL, thereby associating the tag information with the URL, avoiding repeated reorganization and restoration of the traffic and improving the efficiency of keyword blocking. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0052] Figure 1 It is a scenario diagram of a keyword blocking system for multiple data transmission links provided by an embodiment of the present application;
[0053] Figure 2 It is a flowchart of an embodiment of a keyword blocking method for multiple data transmission links provided in an embodiment of the present application;
[0054] Figure 3 It is a flowchart of another embodiment of a keyword blocking method for multiple data transmission links provided in an embodiment of the present application;
[0055] Figure 4is another scenario schematic diagram of a keyword blocking system for multiple data transmission links provided by an embodiment of the present application;
[0056] Figure 5 It is a schematic diagram of the structure of an embodiment of a keyword blocking device for multiple data transmission links provided in an embodiment of the present application;
[0057] Figure 6 It is a schematic diagram of the structure of an embodiment of a computer device provided in the embodiments of the present application. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0059] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the said features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0060] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0061] The embodiments of the present application provide a keyword blocking method and related devices for multiple data transmission links, which are described in detail below.
[0062] like Figure 1 As shown, Figure 1 is a scenario diagram of a keyword blocking system for multiple data transmission links provided by an embodiment of the present application. The keyword blocking system for multiple data transmission links may include a computer device 100, in which a keyword blocking device for multiple data transmission links is integrated, such as Figure 1 A computer device 100 in FIG.
[0063] In the embodiment of the present application, the computer device 100 may be a terminal or a server. When the computer device 100 is a server, it may be an independent server, or a server network or server cluster composed of servers. For example, the computer device 100 described in the embodiment of the present application includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server constructed by a plurality of servers. The cloud server is constructed by a large number of computers or network servers based on cloud computing.
[0064] It is understandable that when the computer device 100 in the embodiment of the present application is a terminal, the terminal used may be a device including both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. Such a device may include: a cellular or other communication device having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. The specific computer device 100 may be a desktop terminal or a mobile terminal, and the computer device 100 may also be one of a mobile phone, a tablet computer, a laptop computer, etc.
[0065] Those skilled in the art will understand that Figure 1 The application environment shown in the figure is only one application scenario of the present application solution, and is not intended to limit the application scenario of the present application solution. Other application environments may also include Figure 1 More or less computer equipment as shown in Figure 1 Only one computer device is shown in the figure. It can be understood that the keyword blocking system for multiple data transmission links can also include one or more other computer devices, which are not specifically limited here.
[0066] In addition, if Figure 1As shown, the keyword blocking system for multiple data transmission links may also include a memory 200 for storing data, such as an association relationship table between five-tuples and URLs.
[0067] It should be noted that Figure 1 The scenario diagram of the keyword blocking system for multiple data transmission links shown is merely an example. The keyword blocking system for multiple data transmission links and the scenario described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the keyword blocking system for multiple data transmission links and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is equally applicable to similar technical problems.
[0068] For example, refer to Figure 4 , Figure 4 FIG. 1 is another schematic diagram of a keyword blocking system for multiple data transmission links. Figure 4 In the embodiment, multiple data transmission links are arranged between the user end and the server end, and the multiple data transmission links include a first link for transmitting upstream traffic and a second link for transmitting downstream traffic. Upstream traffic refers to traffic sent from the user end to the server end, and downstream traffic refers to traffic sent from the server end to the user end. The first link is connected to the DPI (Deep Packet Inspection) device in the A computer room through a splitter and a diverter, and the second link is connected to the DPI device in the B computer room through a splitter and a diverter. Among them, the splitter is used to mirror the upstream traffic or downstream traffic in the link to the diverter, and the diverter is used to mirror the mirrored traffic obtained by the transmission based on load balancing (for example, load balancing by hashing of the binary group (source IP, destination IP)), and divert it to a DPI device in the computer room for keyword detection and blocking. Both the A computer room and the B computer room are IDC (Internet Data Center) computer rooms. Multiple DPI devices are deployed in the A computer room and the B computer room respectively. One DPI device is a node. For example, in Figure 4 In the example, a DPI device in computer room A is the first node, and a DPI device in computer room B is the second node. Both the first node and the second node are used for deep packet inspection.
[0069] It should be noted that any DPI device in computer room A or computer room B can be used as the first node or the second node, as long as the first node processes the upstream traffic and the second node processes the downstream traffic. That is, the upstream traffic and the downstream traffic pass through different DPI devices.
[0070] Next, a keyword blocking method for multiple data transmission links provided by an embodiment of the present application is introduced.
[0071] In the embodiment of the keyword blocking method for multiple data transmission links of the present application, a keyword blocking device for multiple data transmission links is used as an execution subject. For the sake of simplicity and ease of description, the execution subject will be omitted in the subsequent method embodiments. The keyword blocking device for multiple data transmission links is applied to computer equipment.
[0072] See also Figure 2 , Figure 2 This is a flow chart of an embodiment of a keyword blocking method for multiple data transmission links provided in an embodiment of the present application. The keyword blocking method for multiple data transmission links is applied to the first node mentioned above, including:
[0073] 201. Obtain first uplink traffic in the first link;
[0074] In an embodiment of the present application, the first uplink traffic is an uplink traffic sent from the user end to the server end. Based on the load balancing strategy of the diverter, the first uplink traffic is diverted to the first node.
[0075] 202. Obtain first quintuple information and first URL information of the first uplink traffic;
[0076] In an embodiment of the present application, the first uplink traffic includes the first five-tuple information and the first URL information, which is obtained by parsing the first uplink traffic. The first five-tuple information includes the source IP, source port, target IP, and target port of the first uplink traffic, and the first URL information is the URL address of the page requested by the user terminal to the server through the first uplink traffic.
[0077] 203. Store the first five-tuple information and the first URL information in the association relationship table between the five-tuple and the URL of the first node;
[0078] In an embodiment of the present application, a five-tuple and URL association table is stored in the first node, and the association table stores multiple five-tuple information and URL information associated with each five-tuple information. By storing the first five-tuple information and the first URL information in the association table, the association table can be expanded.
[0079] 204. Receive second quintuple information and tag information of the second quintuple information sent by the second node, wherein the second node obtains second downlink traffic in the second link, obtains second quintuple information of the second downlink traffic, and determines tag information of the second quintuple information;
[0080] In an embodiment of the present application, when processing the second downlink traffic, the second node will send the second quintuple information and the marking information of the second quintuple information of the second downlink traffic to all nodes in computer room A and computer room B based on the communication connection between the nodes (e.g., TCP (Transmission Control Protocol) connection), so the first node can also receive the second quintuple information and the marking information of the second quintuple information. The steps for the second node to obtain the second quintuple information and the marking information of the second quintuple information are detailed in Figure 3 The marking information is used to reflect whether the page of the second downstream traffic contains a preset keyword. For example, the marking information can be a white mark or a black mark. The white mark means that the page of the second downstream traffic does not contain the preset keyword, and the black mark means that the page of the second downstream traffic contains the preset keyword. The preset keyword is generally a preset sensitive character, and the preset keyword can be set in advance based on actual needs.
[0081] 205. Determine, based on the association relationship table, second URL information associated with the second quintuple information;
[0082] In an embodiment of the present application, the second five-tuple information includes source IP, source port, target IP, and target port.
[0083] Since the second quintuple information is obtained based on the downlink traffic, and the quintuple information in the association table is obtained based on the uplink traffic, when determining the second URL information associated with the second quintuple information, it is necessary to reverse the source and target in the second quintuple information, that is, based on the association table, determine the second URL information associated with the second quintuple information, which can include: based on the second quintuple information, generate target quintuple information, the source IP in the target quintuple information is the target IP in the second quintuple information, the source port in the target quintuple information is the target port in the second quintuple information, the target IP in the target quintuple information is the source IP in the second quintuple information, and the target port in the target quintuple information is the source port in the second quintuple information, thereby realizing the reversal of the source and target in the second quintuple information; determine the URL information of the target quintuple information in the association table, and use it as the second URL information associated with the second quintuple information.
[0084] 206. Synchronize the second URL information and the marking information to a URL list table in each node used for deep packet inspection, wherein the URL list table stores multiple URL information and marking information of each URL information, so as to perform keyword blocking based on the URL list table.
[0085] In an embodiment of the present application, each node used for deep packet inspection includes all nodes in computer room A and computer room B, and each node stores a url list table. By using the tag information of the second quintuple information as the tag information of the second url information and synchronizing it to the url list table in each node used for deep packet inspection, the tag information is associated with the url information. Keyword blocking refers to blocking processing when there are preset keywords in the traffic, and whether there are preset keywords in the traffic can be determined based on the tag information.
[0086] In some embodiments of the present application, the URL list table is a URL black and white list table, and the marking information of each URL information in the URL black and white list table is a white mark or a black mark. The black and white list table refers to the URL information of the white mark and the URL information of the black mark stored in the same list table. In this way, when each node determines whether it needs to be blocked, it only needs to query the URL black and white list table once to determine it, without having to query the URL black list table and the URL white list table separately (for example, if the URL information to be queried does not exist in the URL black list table, it is necessary to determine whether the URL information to be queried exists in the URL white list table before determining whether it needs to be blocked), thereby improving the matching efficiency of the URL information to be queried and the keyword blocking efficiency.
[0087] In some embodiments of the present application, after synchronizing the second URL information and the tag information to the URL list table in each node used for deep packet inspection, it can also include: obtaining the second uplink traffic in the first link; if the tag information of the URL information of the second uplink traffic in the synchronized URL list table is a black mark, it is determined that there is a preset keyword in the downlink traffic corresponding to the second uplink traffic, and the second uplink traffic is blocked. The blocking process can be: sending session end information to the user end and the server end respectively to end the access session (such as a TCP session) between the user end and the server end based on the second uplink traffic, so that the user end cannot obtain the data of the requested traffic, achieving the purpose of keyword blocking.
[0088] Furthermore, after obtaining the second uplink traffic in the first link, it may also include: if the mark information of the url information of the second uplink traffic in the synchronized url list table is a white mark, it is determined that there is no preset keyword in the downlink traffic corresponding to the second uplink traffic, and the quintuple information of the second uplink traffic is synchronized to the quintuple whitelist table in each node used for deep message detection, so that when the quintuple information of the received third downlink traffic exists in the synchronized quintuple whitelist table, the third downlink traffic is not reassembled, restored, or blocked, so as to avoid repeated reassembly and restoration actions. It is understandable that after the first node obtains the second uplink traffic in the first link, it is impossible to know which node processes the downlink traffic corresponding to the second uplink traffic, so it is necessary to synchronize the quintuple information of the second uplink traffic to the quintuple whitelist table in all nodes. The quintuple whitelist table stores each quintuple information with a white mark.
[0089] The keyword blocking method for multiple data transmission links provided in the embodiment of the present application sends the quintuple information and tag information of the downlink traffic to the first node. In this way, the first node can determine the URL associated with the quintuple information based on the association relationship table between the quintuple and the URL, thereby associating the tag information with the URL, avoiding repeated reorganization and restoration of the traffic, making the keyword blocking judgment more timely, and improving the efficiency of keyword blocking.
[0090] See also Figure 3 , Figure 3 This is a flow chart of another embodiment of a keyword blocking method for multiple data transmission links provided in an embodiment of the present application. The keyword blocking method for multiple data transmission links is applied to the above-mentioned second node, including:
[0091] 301. Obtain second downlink traffic in the second link;
[0092] In an embodiment of the present application, the second downlink traffic is a downlink traffic sent from the user end to the server end. Based on the load balancing strategy of the diverter, the second downlink traffic is diverted to the second node.
[0093] 302. Obtain second quintuple information of the second downstream traffic;
[0094] In an embodiment of the present application, the second downstream traffic includes second five-tuple information obtained by parsing the second downstream traffic, wherein the second five-tuple information includes the source IP, source port, destination IP, and destination port of the second downstream traffic.
[0095] 303. If the five-tuple information does not exist in the five-tuple whitelist table of the second node, detect whether a preset keyword exists in the second downstream traffic;
[0096] In an embodiment of the present application, if the quintuple information does not exist in the quintuple whitelist table of the second node, it indicates that the second downstream traffic has not been reassembled and restored and the preset keyword has not been detected before, so it is necessary to detect whether the preset keyword exists in the second downstream traffic.
[0097] In some embodiments of the present application, if the five-tuple information does not exist in the five-tuple whitelist table of the second node, detecting whether there is a preset keyword in the second downstream traffic may include: if the five-tuple information does not exist in the five-tuple whitelist table of the second node, reorganizing and restoring the second downstream traffic to obtain the original content of the second downstream traffic; based on whether there is a preset keyword in the original content, determining whether there is a preset keyword in the second downstream traffic. It can be understood that when the server sends the downstream traffic, the data of the downstream traffic is often segmented, encoded, compressed, etc., and then sent, so it is necessary to reorganize and restore to obtain the original content in the downstream traffic. For example, when the second downstream traffic includes multiple compressed data packets, reorganizing and restoring the second downstream traffic to obtain the original content of the second downstream traffic may include: splicing the multiple compressed data packets in the second downstream traffic (for example, TCP (Transmission Control Protocol, Transmission Control Protocol) reorganization) to obtain the compressed file of the second downstream traffic, at which time the page content in the second downstream traffic cannot be viewed; decompressing the compressed file to obtain the page content in the second downstream traffic, the page content is the original content.
[0098] 304. Determine tag information of the second downstream traffic based on whether a preset keyword exists in the second downstream traffic;
[0099] In an embodiment of the present application, if the preset keyword exists in the second downstream traffic, the marking information of the second downstream traffic is determined to be a black mark. If the preset keyword does not exist in the second downstream traffic, the marking information of the second downstream traffic is determined to be a white mark.
[0100] 305. Send the second quintuple information and the marking information of the second quintuple information to each node used for deep message inspection, so that each node can determine the second URL information associated with the second quintuple information based on the association relationship table between the quintuple and the URL of each node, and synchronize the second URL information and the marking information to the URL list table in each node used for deep message inspection, wherein the URL list table stores multiple URL information and the marking information of each URL information, so as to perform keyword blocking based on the URL list table.
[0101] It is understandable that after the second node obtains the second downlink traffic in the second link, it cannot know which node processes the uplink traffic corresponding to the second downlink traffic, so the second quintuple information of the second downlink traffic needs to be sent to all nodes.
[0102] In some embodiments of the present application, after the second quintuple information and the tag information of the second quintuple information are sent to each node for deep packet inspection, it may also include: receiving the quintuple information of the second upstream traffic sent by the first node; synchronizing the quintuple information of the second upstream traffic to the quintuple whitelist table of the second node to update the quintuple whitelist table of the second node, wherein each node stores a quintuple whitelist table; when the received quintuple information of the third downstream traffic exists in the synchronized quintuple whitelist table, the third downstream traffic is not reassembled, restored or blocked, but it is directly determined that the preset keyword does not exist in the third downstream traffic, and the third downstream traffic is released to avoid repeated reassembly and restoration processing, and save the memory overhead and reassembly and restoration consumption of the DPI device.
[0103] The solution disclosed in the embodiment of the present application sends the quintuple information and tag information of the downstream traffic to the first node. In this way, the first node can determine the URL associated with the quintuple information based on the association relationship table between the quintuple and the URL, thereby associating the tag information with the URL, avoiding repeated reorganization and restoration of the traffic and improving the efficiency of keyword blocking.
[0104] In order to better implement the keyword blocking method for multiple data transmission links in the embodiment of the present application, based on the keyword blocking method for multiple data transmission links, the embodiment of the present application also provides a keyword blocking device for multiple data transmission links, such as Figure 5 As shown, the keyword blocking device 500 for multiple data transmission links includes:
[0105] The acquisition unit 501 is used to acquire the first uplink traffic in the first link, and acquire the first five-tuple information and the first URL information of the first uplink traffic;
[0106] The storage unit 502 is used to store the first five-tuple information and the first URL information in the association relationship table between the five-tuple and the URL of the first node;
[0107] The receiving unit 503 is configured to receive the second quintuple information and the marking information of the second quintuple information sent by the second node, wherein the second node obtains the second downlink traffic in the second link, obtains the second quintuple information of the second downlink traffic, and determines the marking information of the second quintuple information;
[0108] A determining unit 504 is used to determine the second URL information associated with the second quintuple information based on the association relationship table;
[0109] The synchronization unit 505 is used to synchronize the second URL information and the marking information to the URL list table in each node used for deep packet inspection. The URL list table stores multiple URL information and the marking information of each URL information, so as to perform keyword blocking based on the URL list table.
[0110] The keyword blocking device for multiple data transmission links provided in the embodiment of the present application sends the quintuple information and tag information of the downlink traffic to the first node. In this way, the first node can determine the URL associated with the quintuple information based on the association relationship table between the quintuple and the URL, thereby associating the tag information with the URL, avoiding repeated reorganization and restoration of the traffic and improving the efficiency of keyword blocking.
[0111] In order to better implement the keyword blocking method for multiple data transmission links in the embodiment of the present application, based on the keyword blocking method for multiple data transmission links, the embodiment of the present application also provides a keyword blocking device for multiple data transmission links, and the keyword blocking device for multiple data transmission links includes:
[0112] An extraction unit, configured to obtain second downlink traffic in a second link and obtain second five-tuple information of the second downlink traffic;
[0113] A detection unit, configured to detect whether a preset keyword exists in the second downlink traffic if the five-tuple information does not exist in the five-tuple whitelist table of the second node;
[0114] a marking unit, configured to determine marking information of the second downlink traffic based on whether a preset keyword exists in the second downlink traffic;
[0115] A sending unit is used to send the second quintuple information and the marking information of the second quintuple information to each node used for deep message detection, so that each node can determine the second URL information associated with the second quintuple information based on the association relationship table between the quintuple and the URL of each node, and synchronize the second URL information and the marking information to the URL list table in each node used for deep message detection, wherein the URL list table stores multiple URL information and the marking information of each URL information, so as to perform keyword blocking based on the URL list table.
[0116] The keyword blocking device for multiple data transmission links provided in the embodiment of the present application sends the quintuple information and tag information of the downlink traffic to the first node. In this way, the first node can determine the URL associated with the quintuple information based on the association relationship table between the quintuple and the URL, thereby associating the tag information with the URL, avoiding repeated reorganization and restoration of the traffic and improving the efficiency of keyword blocking.
[0117] In addition to the above-mentioned keyword blocking method and device for multiple data transmission links, the embodiment of the present application further provides a computer device, which integrates any keyword blocking device for multiple data transmission links provided in the embodiment of the present application, and the computer device includes:
[0118] one or more processors;
[0119] Memory; and
[0120] One or more applications, wherein the one or more applications are stored in a memory and are configured to execute, by a processor, any step in any embodiment of the above-mentioned keyword blocking method for multiple data transmission links.
[0121] The embodiment of the present application also provides a computer device, which integrates any one of the keyword blocking devices for multiple data transmission links provided in the embodiment of the present application. Figure 6 As shown, it shows a schematic diagram of the structure of the computer device involved in the embodiment of the present application, specifically:
[0122] The computer device may include one or more processing core processors 601, one or more computer readable storage medium storage units 602, a power supply 603, an input unit 604 and other components. Those skilled in the art will understand that Figure 6 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0123] The processor 601 is the control center of the computer device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the storage unit 602 and calling data stored in the storage unit 602, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.
[0124] The storage unit 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the storage unit 602. The storage unit 602 can mainly include a program storage area and a data storage area. The program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the computer device, etc.
[0125] The storage unit 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the storage unit 602 may also include a memory controller to provide the processor 601 with access to the storage unit 602.
[0126] The computer device also includes a power supply 603 for supplying power to each component. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions. The power supply 603 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0127] The computer device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0128] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically, in the embodiment of the present application, the processor 601 in the computer device will load the executable files corresponding to the processes of one or more application programs into the storage unit 602 according to the following instructions, and the processor 601 will run the application programs stored in the storage unit 602, thereby realizing various functions, as follows:
[0129] Obtain the first uplink traffic in the first link; obtain the first five-tuple information and the first URL information of the first uplink traffic; store the first five-tuple information and the first URL information in the association relationship table between the five-tuple and the URL of the first node; receive the second five-tuple information and the marking information of the second five-tuple information sent by the second node, wherein the second node obtains the second downlink traffic in the second link, obtains the second five-tuple information of the second downlink traffic, and determines the marking information of the second five-tuple information; based on the association relationship table, determines the second URL information associated with the second five-tuple information; synchronizes the second URL information and the marking information to the URL list table in each node used for deep packet detection, wherein the URL list table stores multiple URL information and the marking information of each URL information, so as to perform keyword blocking based on the URL list table;
[0130] And / or, obtain the second downlink traffic in the second link; obtain the second five-tuple information of the second downlink traffic; if the five-tuple information does not exist in the five-tuple whitelist table of the second node, detect whether there is a preset keyword in the second downlink traffic; determine the marking information of the second downlink traffic based on whether there is a preset keyword in the second downlink traffic; send the second five-tuple information and the marking information of the second five-tuple information to each node used for deep message detection, so that each node can determine the second URL information associated with the second five-tuple information based on the association relationship table between the five-tuple and the URL of each node, and synchronize the second URL information and the marking information to the URL list table in each node used for deep message detection, wherein the URL list table stores multiple URL information and the marking information of each URL information, so as to perform keyword blocking based on the URL list table.
[0131] To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. The computer-readable storage medium stores a plurality of instructions, which can be loaded by a processor to execute the steps in any keyword blocking method for multiple data transmission links provided in an embodiment of the present application. For example, the instruction can execute the following steps:
[0132] Obtain the first uplink traffic in the first link; obtain the first five-tuple information and the first URL information of the first uplink traffic; store the first five-tuple information and the first URL information in the association relationship table between the five-tuple and the URL of the first node; receive the second five-tuple information and the marking information of the second five-tuple information sent by the second node, wherein the second node obtains the second downlink traffic in the second link, obtains the second five-tuple information of the second downlink traffic, and determines the marking information of the second five-tuple information; based on the association relationship table, determines the second URL information associated with the second five-tuple information; synchronizes the second URL information and the marking information to the URL list table in each node used for deep packet detection, wherein the URL list table stores multiple URL information and the marking information of each URL information, so as to perform keyword blocking based on the URL list table;
[0133] And / or, obtain the second downlink traffic in the second link; obtain the second five-tuple information of the second downlink traffic; if the five-tuple information does not exist in the five-tuple whitelist table of the second node, detect whether there is a preset keyword in the second downlink traffic; determine the marking information of the second downlink traffic based on whether there is a preset keyword in the second downlink traffic; send the second five-tuple information and the marking information of the second five-tuple information to each node used for deep message detection, so that each node can determine the second URL information associated with the second five-tuple information based on the association relationship table between the five-tuple and the URL of each node, and synchronize the second URL information and the marking information to the URL list table in each node used for deep message detection, wherein the URL list table stores multiple URL information and the marking information of each URL information, so as to perform keyword blocking based on the URL list table.
[0134] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0135] The above is a detailed introduction to a keyword blocking method for multiple data transmission links and related equipment provided in an embodiment of the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A keyword blocking method for multiple data transmission links, characterized in that: A plurality of data transmission links are arranged between a user end and a server end, the plurality of data transmission links include a first link for transmitting uplink traffic and a second link for transmitting downlink traffic, the first link is connected to a first node for deep packet inspection, the second link is connected to a second node for deep packet inspection, the method is applied to the first node, and includes: Obtaining first uplink traffic in the first link; Obtaining first five-tuple information and first URL information of the first uplink traffic; The first five-tuple information and the first URL information are stored in the association relationship table between the five-tuple and the URL of the first node; Receiving second quintuple information and tag information of the second quintuple information sent by the second node, wherein the second node obtains second downlink traffic in the second link, obtains second quintuple information of the second downlink traffic, and determines tag information of the second quintuple information; Based on the association relationship table, determine the second URL information associated with the second quintuple information; The second URL information and the tag information are synchronized to the URL list table in each node used for deep packet detection, wherein the URL list table stores multiple URL information and tag information of each URL information, so as to perform keyword blocking based on the URL list table.
2. The keyword blocking method for multiple data transmission links according to claim 1, characterized in that: The second five-tuple information includes a source IP, a source port, a target IP, and a target port. The determining, based on the association relationship table, the second URL information associated with the second five-tuple information includes: Based on the second five-tuple information, generate target five-tuple information, the source IP in the target five-tuple information is the target IP in the second five-tuple information, the source port in the target five-tuple information is the target port in the second five-tuple information, the target IP in the target five-tuple information is the source IP in the second five-tuple information, and the target port in the target five-tuple information is the source port in the second five-tuple information; Determine the url information of the target quintuple information in the association relationship table and use it as the second url information associated with the second quintuple information.
3. The keyword blocking method for multiple data transmission links according to claim 1, characterized in that: The URL list table is a URL black and white list table, the marking information of each URL information in the URL black and white list table is a white mark or a black mark, and the marking information of the second quintuple information is a white mark or a black mark.
4. The keyword blocking method for multiple data transmission links according to claim 3, characterized in that: After synchronizing the second URL information and the tag information to the URL list table in each node for deep packet inspection, the method further includes: Acquire second uplink traffic in the first link; If the mark information of the url information of the second uplink traffic in the synchronized url list table is a black mark, the second uplink traffic is blocked; If the mark information of the URL information of the second upstream traffic in the synchronized URL list table is a white mark, the quintuple information of the second upstream traffic is synchronized to the quintuple whitelist table in each node used for deep packet detection, so that when the quintuple information of the received third downstream traffic exists in the synchronized quintuple whitelist table, the third downstream traffic will not be reassembled, restored or blocked.
5. A keyword blocking method for multiple data transmission links, characterized in that: The method is applied to the second node according to any one of claims 1 to 4, comprising: Acquire second downlink traffic in the second link; Obtain second quintuple information of the second downstream traffic; If the five-tuple information does not exist in the five-tuple whitelist table of the second node, detecting whether a preset keyword exists in the second downlink traffic; Determining tag information of the second downstream traffic based on whether a preset keyword exists in the second downstream traffic; The second quintuple information and the marking information of the second quintuple information are sent to each node used for deep message inspection, so that each node can determine the second URL information associated with the second quintuple information based on the association relationship table between the quintuple and the URL of each node, and synchronize the second URL information and the marking information to the URL list table in each node used for deep message inspection, wherein the URL list table stores multiple URL information and the marking information of each URL information, so as to perform keyword blocking based on the URL list table.
6. The keyword blocking method for multiple data transmission links according to claim 5, characterized in that: If the five-tuple information does not exist in the five-tuple whitelist table of the second node, detecting whether a preset keyword exists in the second downlink traffic includes: If the five-tuple information does not exist in the five-tuple whitelist table of the second node, reorganize and restore the second downstream traffic to obtain the original content of the second downstream traffic; Based on whether a preset keyword exists in the original content, it is determined whether a preset keyword exists in the second downstream traffic.
7. The keyword blocking method for multiple data transmission links according to claim 5, characterized in that: After sending the second five-tuple information and the marking information of the second five-tuple information to each node for deep packet inspection, the method further includes: receiving five-tuple information of second uplink traffic sent by the first node, where the second uplink traffic is obtained from the first link; Synchronize the quintuple information of the second upstream traffic to the quintuple whitelist table of the second node; When the received quintuple information of the third downstream traffic exists in the synchronized quintuple whitelist table, no reassembly, restoration or blocking is performed on the third downstream traffic.
8. A keyword blocking system for multiple data transmission links, characterized in that:The system includes multiple data transmission links, which are arranged between a user end and a server end. The multiple data transmission links include a first link for transmitting uplink traffic and a second link for transmitting downlink traffic. The first link is connected to a first node for deep message detection, and the second link is connected to a second node for deep message detection. The first node is used to execute the keyword blocking method for multiple data transmission links described in any one of claims 1 to 4, and the second node is used to execute the keyword blocking method for multiple data transmission links described in any one of claims 5 to 7.
9. A computer device, characterized in that: The computer device comprises: one or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the keyword blocking method for multiple data transmission links according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the keyword blocking method for multiple data transmission links as described in any one of claims 1 to 7.
