Traffic filtering method, DPI device, system and computer-readable storage medium
By parsing and generating traffic filtering rules through the DPI device, the problem of high traffic processing pressure and cost in the existing technology is solved, the accuracy and efficiency of traffic filtering are achieved, and the overall cost of the system is reduced.
Patent Information
- Application Number
- CN202110205338.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-24
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-02-24
AI Technical Summary
It is difficult for existing technologies to effectively reduce the traffic processing pressure of application systems that perform in-depth analysis based on raw traffic, especially when there is a large amount of uninterested traffic in the network, and the splitter based on IP address + port cannot achieve accurate traffic filtering, resulting in high costs. higher.
Configure traffic filtering information through Deep Packet Inspection (DPI) equipment, parse the original traffic to generate traffic filtering rules, including IP address, transport layer protocol type, protocol port and filtering action, and deliver the rules to the splitter to achieve no care Traffic filtering to reduce unnecessary traffic processing.
It reduces the investment cost of the flow processing system, improves the filtration processing efficiency, avoids the need to purchase special equipment, and achieves the accuracy and efficiency of flow filtration.
Smart Images

Figure CN115037640B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of network security, and in particular to a traffic filtering method, a DPI device, a system, and a computer-readable storage medium. Background Art
[0002] At present, the rapid growth of network traffic has brought great challenges to the application system that performs in-depth analysis based on raw traffic. If the traffic that the application does not care about can be filtered, the traffic processing pressure of the application will be greatly reduced. For example, the mobile malware detection system does not pay attention to nearly 40% of the video traffic in the network. If it can be filtered, the investment in the system will be reduced by 30-40%.
[0003] In response to the on-demand replication requirements of the back-end analysis system based on the application layer traffic, the server-side address often changes due to the widespread use of CDN (Content Delivery Network) technology in the current network. The splitter is simply based on the IP address + port mode and cannot achieve accurate traffic filtering. Traffic filtering based on the application layer requires the configuration of different equipment models and special boards, which has the problem of high prices. Summary of the invention
[0004] A technical problem solved by the present disclosure is to provide a traffic filtering method to reduce costs.
[0005] According to one aspect of the present disclosure, a traffic filtering method is provided, including: configuring a deep packet inspection technology DPI device with traffic filtering information, wherein the traffic filtering information includes: the name of an analysis system for receiving traffic that needs to be matched, an output port of a flow divider connected to the analysis system, an application type of the traffic that needs to be matched, and a filtering action after matching; the DPI device parses the received original traffic according to the application type of the traffic that needs to be matched to generate an Internet protocol IP address of a server side corresponding to the traffic that needs to be matched in the original traffic, a transport layer protocol type, a protocol port, and a flow that needs to be matched in the original traffic. The application name of the quantity; and after the DPI device finds that the entry information containing the IP address, transport layer protocol type and protocol port corresponding to the application type of the traffic to be matched is the newly added entry information, it generates a traffic filtering rule according to the parsed IP address, transport layer protocol type, protocol port, splitter output port and the matched filtering action, and sends the traffic filtering rule to the splitter, wherein the traffic filtering rule includes the IP address, transport layer protocol type, protocol port, splitter output port and filtering action; wherein, after receiving the traffic filtering rule, the splitter performs a filtering operation on the traffic matching the traffic filtering rule.
[0006] In some embodiments, the traffic filtering method further includes: when the DPI device finds that the entry information has no matching traffic for more than a predetermined time, sending a deletion instruction to the diverter to delete the traffic filtering rule corresponding to the entry information.
[0007] In some embodiments, the traffic filtering information also includes a rule entry number threshold; the traffic filtering method also includes: when the number of entries of the entry information corresponding to the application type recorded by the DPI device is greater than the rule entry number threshold, all entry information are sorted in order from large to small according to the size of the traffic matched by each entry information, and the traffic filtering rules corresponding to the first N entry information are preferentially sent to the diverter, where N is a positive integer less than or equal to the rule entry number threshold.
[0008] In some embodiments, the filtering action includes: a traffic discarding action or a traffic forwarding action; the step in which the splitter performs a filtering operation on the traffic matching the traffic filtering rule includes: when the traffic filtering rule includes a traffic discarding action, the splitter forwards the remaining traffic to the corresponding analysis system after discarding the matching traffic; and / or when the traffic filtering rule includes a traffic forwarding action, the splitter forwards the matching traffic to the corresponding analysis system after discarding the traffic other than the matching traffic.
[0009] According to another aspect of the present disclosure, a DPI device is provided, comprising: a configuration unit, configured to configure traffic filtering information, wherein the traffic filtering information comprises: the name of an analysis system for receiving traffic to be matched, an output port of a flow divider connected to the analysis system, an application type of the traffic to be matched, and a filtering action after matching; and a parsing unit, configured to parse the received original traffic according to the application type of the traffic to be matched to generate an Internet Protocol IP address of a server side corresponding to the traffic to be matched in the original traffic, a transport layer protocol type, a protocol port, and an application name of the traffic to be matched in the original traffic. A rule generating unit, which is used to generate a traffic filtering rule according to the parsed IP address, transport layer protocol type, protocol port, splitter output port and the matched filtering action after discovering that the entry information containing the IP address, transport layer protocol type and protocol port corresponding to the application type of the traffic to be matched is a newly added entry information, wherein the traffic filtering rule includes the IP address, transport layer protocol type, protocol port, splitter output port and filtering action; and a sending unit, which is used to send the traffic filtering rule to the splitter; wherein, after receiving the traffic filtering rule, the splitter performs a filtering operation on the traffic matching the traffic filtering rule.
[0010] In some embodiments, the sending unit is further configured to send a deletion instruction to the splitter to delete the traffic filtering rule corresponding to the entry information when it is found that the entry information has no matching traffic for more than a predetermined time.
[0011] In some embodiments, the traffic filtering information also includes a rule entry number threshold; the sending unit is also used to sort all entry information in descending order according to the size of the traffic matched by each entry information when the number of entries of the entry information recorded corresponding to the application type is greater than the rule entry number threshold, and preferentially send the traffic filtering rules corresponding to the first N entry information to the diverter, where N is a positive integer less than or equal to the rule entry number threshold.
[0012] In some embodiments, the filtering action includes: a traffic discarding action or a traffic forwarding action; the diverter is used to forward the remaining traffic to the corresponding analysis system after discarding the matching traffic when the traffic filtering rule includes a traffic discarding action; and / or forward the matching traffic to the corresponding analysis system after discarding the traffic other than the matching traffic when the traffic filtering rule includes a traffic forwarding action.
[0013] According to another aspect of the present disclosure, a DPI device is provided, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the aforementioned method based on instructions stored in the memory.
[0014] According to another aspect of the present disclosure, a traffic filtering system is provided, comprising: a DPI device as described above; and a diverter for performing a filtering operation on traffic matching the traffic filtering rule after receiving the traffic filtering rule from the DPI device.
[0015] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the instructions are executed by a processor, the method described above is implemented.
[0016] The above method sends traffic filtering rules to the diverter through the DPI device, thereby achieving the purpose of traffic filtering. The method does not require special equipment configuration, thereby reducing costs.
[0017] Other features and advantages of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0019] The present disclosure can be more clearly understood from the following detailed description with reference to the accompanying drawings.
[0020] in:
[0021] Figure 1 is a flow chart showing a traffic filtering method according to some embodiments of the present disclosure;
[0022] Figure 2 is a structural diagram showing a flow filtering system according to some embodiments of the present disclosure;
[0023] Figure 3 is a structural diagram showing a DPI device according to some embodiments of the present disclosure;
[0024] Figure 4 is a structural diagram showing a DPI device according to some other embodiments of the present disclosure;
[0025] Figure 5 is a structural diagram showing a DPI device according to some other embodiments of the present disclosure. DETAILED DESCRIPTION
[0026] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0027] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0028] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0029] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0030] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0031] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0032] Figure 1 is a flow chart illustrating a traffic filtering method according to some embodiments of the present disclosure. Figure 2is a structural diagram showing a flow filtering system according to some embodiments of the present disclosure. Figure 1 and Figure 2 The traffic filtering method according to some embodiments of the present disclosure is described in detail.
[0033] like Figure 1 As shown, the traffic filtering method includes steps S102 to S106.
[0034] In step S102, the DPI (Deep Packet Inspection) device configures traffic filtering information, which includes: the name of the analysis system for receiving the traffic to be matched, the diverter output port connected to the analysis system, the application type of the traffic to be matched, and the filtering action after matching.
[0035] For example, Figure 2 As shown, the DPI device 210 can pre-configure traffic filtering information. The traffic filtering information includes: the name of the first analysis system 231, the name of the second analysis system 232, the output port of the splitter 220 connected to the first analysis system 231, the output port of the splitter 220 connected to the second analysis system 232, the application type of the traffic to be matched, and the filtering action after matching. For example, the filtering action includes: discarding traffic action or forwarding traffic action.
[0036] Back to Figure 1 In step S104, the DPI device parses the received original traffic according to the application type of the traffic to be matched to generate the IP (Internet Protocol) address, transport layer protocol type, protocol port (i.e., transport layer protocol port) of the server side corresponding to the traffic to be matched in the original traffic, and the application name of the traffic to be matched in the original traffic. Here, the server side refers to the server side where the application software corresponding to the traffic is located.
[0037] For example, the application type of the traffic that needs to be matched is video traffic. Figure 2 As shown, the splitter 220 obtains the original traffic from the network 240 through splitting and traffic replication technology, and the DPI device 210 obtains the original traffic from the splitter 220 through traffic replication technology; then, the DPI device 210 parses the original traffic according to the application type of the video traffic to generate the server-side IP address, transport layer protocol type, protocol port and application name of the video traffic in the original traffic corresponding to the video traffic in the original traffic. For example, if the application type is configured as video, the application name parsed by the DPI can be "×× video" and so on.
[0038] Back to Figure 1In step S106, after the DPI device finds that the entry information including the IP address, transport layer protocol type and protocol port corresponding to the application type of the traffic to be matched is the newly added entry information, it generates a traffic filtering rule according to the parsed IP address, transport layer protocol type, protocol port, splitter output port and the matched filtering action, and sends the traffic filtering rule to the splitter, wherein the traffic filtering rule includes the IP address, transport layer protocol type, protocol port, splitter output port and filtering action.
[0039] Here, each entry information includes an IP address, a transport layer protocol type and a protocol port. In other embodiments, the application type of the traffic may also be used as part of the information in the entry information.
[0040] After receiving the traffic filtering rule, the flow splitter performs filtering operation on the traffic matching the traffic filtering rule. Here, the traffic that needs to be matched mentioned above is the traffic matching the traffic filtering rule.
[0041] In some embodiments, the step of the splitter performing a filtering operation on the traffic matching the traffic filtering rule includes: when the traffic filtering rule includes a discard traffic action, the splitter forwards the remaining traffic to the corresponding analysis system after discarding the matching traffic; and / or when the traffic filtering rule includes a forwarding traffic action, the splitter forwards the matching traffic to the corresponding analysis system after discarding the traffic other than the matching traffic.
[0042] Let's take the example of the application type of the traffic that needs to be matched as video traffic. Figure 2 As shown, after the DPI device 210 finds that the entry information corresponding to the video traffic type including the IP address, transport layer protocol type and protocol port is the newly added entry information, it generates a traffic filtering rule based on the parsed IP address, transport layer protocol type, protocol port, splitter output port and the matched filtering action, and sends the traffic filtering rule to the splitter 220.
[0043] For example, the traffic filtering rule includes: the IP address of the server where a certain application software is located, the corresponding transport layer protocol type and protocol port, the splitter output port corresponding to the first analysis system 231, and the action of discarding traffic. In this way, the splitter 220 receives the traffic filtering rule, discards the matching video traffic, and forwards the remaining traffic to the corresponding first analysis system 231.
[0044] For another example, the traffic filtering rule includes: the IP address of the server where a certain application software is located, the corresponding transport layer protocol type and protocol port, the splitter output port corresponding to the second analysis system 232, and the traffic forwarding action. In this way, the splitter receives the traffic filtering rule, discards the traffic except the matching video traffic, and then forwards the matching video traffic to the corresponding second analysis system 232.
[0045] So far, a traffic filtering method according to some embodiments of the present disclosure is provided. The traffic filtering method includes: the DPI device configures traffic filtering information, the traffic filtering information includes: the name of the analysis system for receiving the traffic to be matched, the output port of the splitter connected to the analysis system, the application type of the traffic to be matched, and the filtering action after matching; the DPI device parses the received original traffic according to the application type of the traffic to be matched to generate the server-side IP address, transport layer protocol type, protocol port and application name of the traffic to be matched in the original traffic corresponding to the traffic to be matched in the original traffic; and the DPI device generates traffic filtering rules according to the IP address, transport layer protocol type, protocol port, splitter output port and filtering action after matching obtained by parsing after finding that the entry information containing IP address, transport layer protocol type and protocol port corresponding to the application type of the traffic to be matched is newly added entry information, and sends the traffic filtering rules to the splitter. The traffic filtering rules include IP address, transport layer protocol type, protocol port, splitter output port and filtering action. After receiving the traffic filtering rules, the splitter performs filtering operations on the traffic matching the traffic filtering rules. The method sends traffic filtering rules to the diverter through the DPI device, thereby achieving the purpose of traffic filtering. The method does not require special equipment configuration, thereby reducing costs.
[0046] In some embodiments, the traffic filtering method may further include: when the DPI device finds that the entry information has no matching traffic for more than a predetermined time, the DPI device sends a deletion instruction to the diverter to delete the traffic filtering rule corresponding to the entry information. Here, the predetermined time can be determined according to actual conditions or actual needs. In this embodiment, when the DPI device finds that a record has no matching message for more than a certain time, it sends a filtering rule to delete the original corresponding record entry, which can reduce unnecessary traffic filtering rules and reduce the storage pressure of the diverter.
[0047] In some embodiments, the traffic filtering information also includes a rule entry number threshold. The rule entry number threshold can be set according to actual needs. For example, the rule entry number threshold can be set according to the capability of the diverter.
[0048] In some embodiments, the traffic filtering method may also include: when the number of recorded entry information corresponding to the application type is greater than the rule entry number threshold, the DPI device sorts all entry information in order from large to small according to the size of the traffic matched by each entry information, and preferentially sends the traffic filtering rules corresponding to the first N entry information to the diverter. Here, N is a positive integer less than or equal to the rule entry number threshold. In this embodiment, when the number of entry information records is greater than the rule entry number threshold, the DPI device sorts according to the size of the matching traffic, and preferentially sends the filtering rules with large matching traffic. This allows the diverter to preferentially perform filtering operations according to the filtering rules with large matching traffic, thereby improving the utilization and efficiency of the system.
[0049] In some embodiments of the present disclosure, the DPI device configures information related to filtering traffic, including: the name of the system that needs to filter and forward traffic (i.e., matching traffic), the docking port of the system on the diverter, the type and characteristics of traffic to be filtered, and the threshold of the number of rules, etc. The DPI device parses the original traffic according to the configuration information, generates the IP address, port record and other information of the server side corresponding to the filtering traffic of each system, and generates corresponding traffic statistics, and updates them dynamically. When the DPI device finds that there is a new addition to the record table, it automatically generates a new traffic filtering rule (filtering the IP address and port traffic of the matching server side), and sends it to the diverter through the interface. When the DPI device finds that there is no matching message for a certain period of time, it sends a filtering rule to delete the original corresponding record entry. When the number of records is greater than the threshold of the number of rule entries, the DPI device sorts according to the size of the matching traffic, and gives priority to sending the rules with large matching traffic. The diverter executes the filtering rules to implement traffic filtering and forwarding of related applications. In this way, an adaptive dynamic traffic filtering method is realized.
[0050] In the above method, the DPI device analyzes and identifies the original traffic, dynamically generates a record of the server IP address and port corresponding to the filtered traffic according to the application type and characteristics, and converts it into rules for filtering the traffic accessing the recorded server and port, which are sent to the diverter in real time. The diverter filters the original traffic according to the filtering rules and forwards it to the back-end analysis system, thereby realizing an adaptive dynamic traffic filtering function.
[0051] The above method has the following advantages: (1) This method does not require the purchase of splitters and special boards based on application layer unpacking processing, thereby reducing costs; (2) The filtering processing efficiency of this method is relatively high; (3) The DPI device and the splitter linkage port use the existing splitter rules to send interfaces, and the splitter does not need to be changed. The DPI device generates an IP address + port record of the server side corresponding to the specific traffic while synthesizing the existing call records. When there are changes, the interface is called to send the rules, and the software changes are not significant.
[0052] Figure 3 is a structural diagram showing a DPI device according to some embodiments of the present disclosure. Figure 3 As shown, the DPI device includes: a configuration unit 302 , a parsing unit 304 , a rule generating unit 306 and a sending unit 308 .
[0053] The configuration unit 302 is used to configure traffic filtering information, which includes: the name of the analysis system for receiving the traffic to be matched, the output port of the splitter connected to the analysis system, the application type of the traffic to be matched, and the filtering action after matching.
[0054] The parsing unit 304 is used to parse the received original traffic according to the application type of the traffic that needs to be matched to generate the server-side IP address, transport layer protocol type, protocol port and application name of the traffic that needs to be matched in the original traffic corresponding to the traffic that needs to be matched in the original traffic.
[0055] The rule generation unit 306 is used to generate a traffic filtering rule according to the parsed IP address, transport layer protocol type, protocol port, splitter output port and the matched filtering action after finding that the entry information including the IP address, transport layer protocol type and protocol port corresponding to the application type of the traffic to be matched is the newly added entry information. The traffic filtering rule includes the IP address, transport layer protocol type, protocol port, splitter output port and filtering action.
[0056] The sending unit 308 is used to send the traffic filtering rules to the splitter.
[0057] After receiving the traffic filtering rule, the splitter performs filtering operations on the traffic matching the traffic filtering rule.
[0058] So far, a DPI device according to some embodiments of the present disclosure is provided. The DPI device includes a configuration unit, a parsing unit, a rule generation unit, and a sending unit. Through the relevant functions of the above-mentioned units of the DPI device, traffic filtering rules can be generated and sent to the diverter, thereby realizing traffic filtering. The present disclosure does not require special equipment configuration, thereby reducing costs.
[0059] The sending unit 308 is further configured to send a deletion instruction to the splitter to delete the traffic filtering rule corresponding to the entry information when it is found that the entry information has no matching traffic for more than a predetermined time.
[0060] In some embodiments, the traffic filtering information also includes a rule entry number threshold. The sending unit 308 is further configured to sort all entry information in descending order according to the size of the traffic matched by each entry information when the number of entries of the recorded entry information corresponding to the application type is greater than the rule entry number threshold, and preferentially send the traffic filtering rules corresponding to the first N entry information to the splitter, where N is a positive integer less than or equal to the rule entry number threshold.
[0061] In some embodiments, the filtering action includes: a discard traffic action or a forward traffic action. The splitter is used to forward the remaining traffic to the corresponding analysis system after discarding the matching traffic when the traffic filtering rule includes a discard traffic action; and / or forward the matching traffic to the corresponding analysis system after discarding the traffic other than the matching traffic when the traffic filtering rule includes a forward traffic action.
[0062] Figure 4 4 is a structural diagram showing a DPI device according to some other embodiments of the present disclosure. The DPI device includes a memory 410 and a processor 420. Among them:
[0063] The memory 410 can be a disk, a flash memory, or any other non-volatile storage medium. The memory is used to store Figure 1 The instructions in the corresponding embodiment.
[0064] The processor 420 is coupled to the memory 410 and can be implemented as one or more integrated circuits, such as a microprocessor or a microcontroller. The processor 420 is used to execute instructions stored in the memory, thereby achieving traffic filtering and reducing costs.
[0065] In some embodiments, it is also possible to Figure 5 As shown, the DPI device 500 includes a memory 510 and a processor 520. The processor 520 is coupled to the memory 510 via a BUS bus 530. The DPI device 500 can also be connected to an external storage device 550 via a storage interface 540 to call external data, and can also be connected to a network or another computer system (not shown) via a network interface 560, which will not be described in detail here.
[0066] In this embodiment, data instructions are stored in a memory, and the instructions are processed by a processor, thereby achieving traffic filtering and reducing costs.
[0067] The embodiment of the present disclosure also provides a traffic filtering system. The traffic filtering system includes the DPI device as described above (for example, Figure 3 , Figure 4 or Figure 5The traffic filtering system also includes a splitter. The splitter is used to perform filtering operations on traffic matching the traffic filtering rules after receiving the traffic filtering rules from the DPI device. Through the linkage of the DPI device and the splitter, the traffic filtering function is realized by utilizing the data packet recognition based on the application layer of the DPI device and the filtering capability based on the transport layer of the splitter.
[0068] In some other embodiments, the present disclosure further provides a computer-readable storage medium having computer program instructions stored thereon, which are executed by a processor to implement Figure 1 The steps of the method in the corresponding embodiment. Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, devices, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0069] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram and the combination of processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0070] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0071] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0072] So far, the present disclosure has been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed here.
[0073] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A traffic filtering method, comprising: The deep packet inspection technology DPI device configures traffic filtering information, the traffic filtering information including: the name of the analysis system for receiving the traffic to be matched, the output port of the splitter connected to the analysis system, the application type of the traffic to be matched, and the filtering action after matching; The DPI device parses the received original traffic according to the application type of the traffic to be matched to generate an Internet Protocol IP address of a server corresponding to the traffic to be matched in the original traffic, a transport layer protocol type, a protocol port, and an application name of the traffic to be matched in the original traffic; and After the DPI device finds that the entry information including the IP address, transport layer protocol type and protocol port corresponding to the application type of the traffic to be matched is the newly added entry information, it generates a traffic filtering rule according to the parsed IP address, transport layer protocol type, protocol port, splitter output port and the matched filtering action, and sends the traffic filtering rule to the splitter, wherein the traffic filtering rule includes the IP address, transport layer protocol type, protocol port, splitter output port and filtering action; Wherein, after receiving the traffic filtering rule, the flow splitter performs a filtering operation on the traffic matching the traffic filtering rule; Wherein, the traffic filtering information also includes a rule entry number threshold; The traffic filtering method also includes: when the number of entries of the entry information recorded corresponding to the application type is greater than the rule entry number threshold, the DPI device sorts all the entry information in descending order according to the size of the traffic matched by each entry information, and preferentially sends the traffic filtering rules corresponding to the first N entry information to the diverter, where N is a positive integer less than or equal to the rule entry number threshold.
2. The flow filtering method according to claim 1, further comprising: When the DPI device finds that the entry information has no matching traffic for more than a predetermined time, it sends a deletion instruction to the splitter to delete the traffic filtering rule corresponding to the entry information.
3. The flow filtering method according to claim 1, wherein: The filtering action includes: discarding traffic action or forwarding traffic action; The step of the flow splitter performing a filtering operation on the traffic matching the traffic filtering rule comprises: In the case where the traffic filtering rule includes a discard traffic action, the splitter forwards the remaining traffic to the corresponding analysis system after discarding the matching traffic; and / or In the case where the traffic filtering rule includes a traffic forwarding action, the splitter forwards the matching traffic to a corresponding analysis system after discarding traffic other than the matching traffic.
4. A DPI device, comprising: A configuration unit, configured to configure traffic filtering information, the traffic filtering information including: a name of an analysis system for receiving traffic to be matched, an output port of a flow splitter connected to the analysis system, an application type of the traffic to be matched, and a filtering action after matching; A parsing unit, configured to parse the received original traffic according to the application type of the traffic to be matched, so as to generate an Internet Protocol IP address of a server corresponding to the traffic to be matched in the original traffic, a transport layer protocol type, a protocol port, and an application name of the traffic to be matched in the original traffic; A rule generating unit, configured to generate a traffic filtering rule according to the parsed IP address, transport layer protocol type, protocol port, splitter output port and matched filtering action after finding that the entry information including the IP address, transport layer protocol type and protocol port corresponding to the application type of the traffic to be matched is the newly added entry information, wherein the traffic filtering rule includes the IP address, transport layer protocol type, protocol port, splitter output port and filtering action; and A sending unit, used for sending the traffic filtering rule to the splitter; Wherein, after receiving the traffic filtering rule, the flow splitter performs a filtering operation on the traffic matching the traffic filtering rule; Wherein, the traffic filtering information also includes a rule entry number threshold; The sending unit is also used to sort all the entry information in descending order according to the size of the traffic matched by each entry information when the number of entries of the recorded entry information corresponding to the application type is greater than the rule entry number threshold, and preferentially send the traffic filtering rules corresponding to the first N entry information to the diverter, wherein N is a positive integer less than or equal to the rule entry number threshold.
5. The DPI device according to claim 4, wherein: The sending unit is further configured to send a deletion instruction to the flow splitter to delete the flow filtering rule corresponding to the entry information when it is found that the entry information has no matching flow for more than a predetermined time.
6. The DPI device according to claim 4, wherein: The filtering action includes: discarding traffic action or forwarding traffic action; The diverter is used to forward the remaining traffic to the corresponding analysis system after discarding the matching traffic when the traffic filtering rule includes a discard traffic action; and / or to forward the matching traffic to the corresponding analysis system after discarding the traffic other than the matching traffic when the traffic filtering rule includes a forward traffic action.
7. A DPI device, comprising: Memory; as well as A processor coupled to the memory, wherein the processor is configured to execute the method according to any one of claims 1 to 3 based on instructions stored in the memory.
8. A flow filtering system, comprising: The DPI device according to any one of claims 4 to 7; as well as The flow splitter is used to perform filtering operations on traffic matching the traffic filtering rules after receiving the traffic filtering rules from the DPI device.
9. A computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Network flow control method, device and system
CN101286937A
Method, system and device for packet filtering
CN101399749A
Intelligent traffic scheduling method and system based on DPI and diverter
CN110224891A
