DPI service identification method, device, electronic device and storage medium

By determining the maximum matching length of the rule for the string in the XDR field and eliminating strings that do not need to be matched, and dynamically updating the rule maximum matching length table, the problems of high computational overhead and high equipment cost in the existing DPI service identification method are solved, and an efficient Internet traffic identification.

CN112307279BActive Publication Date: 2024-09-20GUANGDONG YITONG LIANYUN INTELLIGENT INFORMATION CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202011180932.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-29
Publication Date
2024-09-20
Estimated Expiration
2040-10-29

AI Technical Summary

Technical Problem

The existing DPI service identification method performs fuzzy matching between the complete XDR field string and the rule base, resulting in a large number of strings with no identification value being loaded, which increases the program operation overhead and cannot adapt to the increasingly large data of the existing network, and the equipment The cost is higher.

Method used

By determining the maximum matching length of rules for different strings in each field of XDR, eliminating strings that do not require matching, performing fuzzy matching with the rule base, and dynamically updating the rule maximum matching length table to optimize the matching process.

Benefits of technology

It effectively reduces recognition overhead, improves recognition efficiency, reduces equipment costs, and is suitable for big data environments while maintaining recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112307279B
    Figure CN112307279B
Patent Text Reader

Abstract

The present invention discloses a DPI service identification method, device, electronic device and storage medium, the method comprising: determining the maximum matching length of the rules of different character strings in each field of XDR; intercepting the character string in the XDR field according to the maximum matching length table of the rules to eliminate the character string that does not need to be matched in the XDR field; fuzzy matching the extracted character string with the rules in the rule base to obtain a DPI identification result. Through the embodiment of the present invention, statistical analysis is performed based on the existing network big data to intercept the field, and the character string that does not need to be matched is eliminated and then fuzzy matching is performed with the rules in the rule base to identify Internet traffic, which can effectively reduce the identification overhead, improve the identification coverage and reduce the equipment cost, and can be widely used in the field of Internet technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a DPI service identification method, device, electronic device and storage medium. Background Art

[0002] DPI technology is a traffic detection and control technology based on the application layer, known as "deep packet inspection". The so-called "depth" is compared with the ordinary message analysis level. Ordinary message detection only analyzes the content below layer 4 of the IP packet, including source address, destination address, source port, destination port and protocol type. In addition to the previous layer analysis, DPI also adds application layer analysis to identify various applications and their contents. When IP data packets, TCP or UDP data streams pass through a bandwidth management system based on DPI technology, the system reorganizes the application layer information in the OSI seven-layer protocol by deeply reading the content of the IP packet payload, thereby obtaining the content of the entire application, and then shapes the traffic according to the management policy defined by the system.

[0003] Existing DPI service identification is to identify Internet traffic services through fuzzy matching of the complete string of the XDR (X of Detailed Record, a detailed call record of all signaling of users surfing the Internet) field and the rules in the DPI rule library. The string in the XDR field that matches the rules in the rule library is generally located at the front of the entire XDR field string, and the latter part is mostly worthless characters. The existing solution loads the complete XDR field string into the identification program for fuzzy matching. There are a large number of strings with no identification value being loaded, which greatly increases the program operation overhead. The disadvantage of high identification overhead cannot adapt to the increasingly large data in the existing network, and the cost of adding identification equipment is high. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a DPI service identification method, device, electronic device and storage medium to improve identification efficiency and thereby reduce equipment costs.

[0005] A first aspect of the present invention provides a DPI service identification method, comprising:

[0006] Determine the maximum matching length of the rules for different strings in each field of XDR;

[0007] The character string in the XDR field is intercepted according to the rule maximum matching length table to remove the character string that does not need to be matched in the XDR field;

[0008] The extracted character string is fuzzy matched with the rules in the rule base to obtain the DPI recognition result.

[0009] In some embodiments, determining the maximum matching length of rules for different character strings in each field of the XDR includes:

[0010] Obtain the first URL data from the full amount of URL data generated within a fixed time period of the entire network XDR;

[0011] Matching the first URL data with the rules in the rule library to obtain the matching length of the domain name information of each URL data corresponding to the rule in the uniform resource identifier;

[0012] The maximum matching length of the rule corresponding to the domain name information is dynamically updated according to the matching length.

[0013] In some embodiments, dynamically updating the maximum matching length of the rule corresponding to the domain name information according to the matching length includes:

[0014] When the matching length is greater than the maximum matching length of the rule corresponding to the domain name information in the maximum matching length table of rules, or when the maximum matching length of the rule corresponding to the domain name information does not exist in the maximum matching length table of rules, the matching length is determined as the maximum matching length of the rule corresponding to the domain name information;

[0015] When the matching length is less than or equal to the maximum matching length of the rule corresponding to the domain name information in the maximum matching length table of the rule, the maximum matching length of the rule in the maximum matching length table of the rule is not updated.

[0016] In some embodiments, intercepting the character string in the XDR field according to the rule maximum match length table includes:

[0017] Obtaining second URL data from the full amount of URL data;

[0018] By using a full match method, the domain name information of the second URL data is matched with the domain name rule maximum match length table to obtain the maximum length corresponding to the domain name information of the second URL data;

[0019] The URI field in the XDR field is intercepted according to the maximum length to obtain a URL interception result; wherein the URL interception result includes domain name information and the intercepted URI.

[0020] According to a second aspect of the present invention, there is provided a DPI service identification device, comprising:

[0021] A determination module is used to determine the maximum matching length of the rules of different character strings in each field of the XDR;

[0022] An interception module, used for intercepting the character string in the XDR field according to the rule maximum matching length table, so as to remove the character string that does not need to be matched in the XDR field;

[0023] The recognition module is used to perform fuzzy matching between the extracted character string and the rules in the rule base to obtain the DPI recognition result.

[0024] In some embodiments, the determining module includes:

[0025] A first acquisition unit is used to acquire first URL data from the full amount of URL data generated within a fixed time period of the entire network XDR;

[0026] A first matching unit, used to match the first URL data with the rules in the rule library to obtain the matching length of the domain name information of each URL data corresponding to the rule in the uniform resource identifier;

[0027] An updating unit is used to dynamically update the maximum matching length of the rule corresponding to the domain name information according to the matching length.

[0028] In some embodiments, the updating unit includes:

[0029] A first subunit is configured to determine the match length as the rule maximum match length corresponding to the domain name information when the match length is greater than the rule maximum match length corresponding to the domain name information in the rule maximum match length table, or when the rule maximum match length corresponding to the domain name information does not exist in the rule maximum match length table;

[0030] The second subunit is configured to not update the rule maximum matching length in the rule maximum matching length table when the matching length is less than or equal to the rule maximum matching length corresponding to the domain name information in the rule maximum matching length table.

[0031] In some embodiments, the interception module includes:

[0032] A second acquisition unit, used to acquire second URL data from the full amount of URL data;

[0033] A second matching unit is used to match the domain name information of the second URL data with the domain name rule maximum matching length table through a full matching method to obtain a maximum length corresponding to the domain name information of the second URL data;

[0034] The interception unit is used to intercept the URI field in the XDR field according to the maximum length to obtain a URL interception result; wherein the URL interception result includes domain name information and the intercepted URI.

[0035] According to a third aspect of the present invention, there is provided an electronic device, comprising a processor and a memory;

[0036] The memory is used to store programs;

[0037] The processor executes the program to implement the method described in the first aspect of the present invention.

[0038] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores a program, and the program is executed by a processor to implement the method described in the first aspect of the present invention.

[0039] An embodiment of the present invention determines the maximum matching length of rules for different character strings in each field of the XDR; the character strings in the XDR field are intercepted according to the rule maximum matching length table to eliminate the character strings that do not need to be matched in the XDR field; the extracted character strings are fuzzy matched with the rules in the rule library to obtain DPI identification results; through the embodiment of the present invention, statistical analysis is performed based on the existing network big data to intercept fields, and the character strings that do not need to be matched are eliminated and then fuzzy matched with the rules in the rule library to perform Internet traffic identification, which can effectively reduce identification overhead, improve identification coverage and reduce equipment costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] 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 ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0041] Figure 1 is a flowchart of the overall steps of an embodiment of the present invention;

[0042] Figure 2 A schematic diagram of a process for determining the maximum matching length of rules for different character strings in each field of an XDR according to an embodiment of the present invention;

[0043] Figure 3 The present invention is a flowchart of the steps of intercepting the character string in the XDR field according to the rule maximum matching length table and realizing final recognition according to an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0045] In view of the problems existing in the prior art, the embodiment of the present invention provides a DPI service identification method, such as Figure 1 As shown, including:

[0046] Determine the maximum matching length of the rules for different strings in each field of XDR;

[0047] The character string in the XDR field is intercepted according to the rule maximum matching length table to remove the character string that does not need to be matched in the XDR field;

[0048] The extracted character string is fuzzy matched with the rules in the rule base to obtain the DPI recognition result.

[0049] Specifically, the XDR fields of the embodiment of the present invention include but are not limited to the fields such as URL (Uniform Resource Locator), REFERURI (redirect link), Useragent (user agent) in XDR that need to be matched with DPI business identification rules.

[0050] The present invention is based on the statistics of existing network big data, dynamically updates the maximum matching length of the rules of different character strings in each field of XDR, and then intercepts the XDR field character string based on the maximum matching length table, removes the character string that does not need to be matched, and then performs fuzzy matching with the rules in the rule base to identify Internet traffic. Since the intercepted fields are updated dynamically in real time based on the existing network big data, the present invention can significantly reduce the computational overhead of the recognition program while maintaining the recognition accuracy of the existing solution, improve the recognition efficiency, and can be applied to fields including but not limited to URL (Uniform Resource Locator), REFERURI (Incoming Connection), Useragent (User Agent) in XDR that need to match DPI business identification rules, and has strong applicability and scalability.

[0051] In some embodiments, determining the maximum matching length of rules for different character strings in each field of the XDR includes:

[0052] Obtain the first URL data from the full amount of URL data generated within a fixed time period of the entire network XDR;

[0053] Matching the first URL data with the rules in the rule library to obtain the matching length of the domain name information of each URL data corresponding to the rule in the uniform resource identifier;

[0054] The maximum matching length of the rule corresponding to the domain name information is dynamically updated according to the matching length.

[0055] In some embodiments, dynamically updating the maximum matching length of the rule corresponding to the domain name information according to the matching length includes:

[0056] When the matching length is greater than the maximum matching length of the rule corresponding to the domain name information in the maximum matching length table of rules, or when the maximum matching length of the rule corresponding to the domain name information does not exist in the maximum matching length table of rules, the matching length is determined as the maximum matching length of the rule corresponding to the domain name information;

[0057] When the matching length is less than or equal to the maximum matching length of the rule corresponding to the domain name information in the maximum matching length table of the rule, the maximum matching length of the rule in the maximum matching length table of the rule is not updated.

[0058] Specifically, the first URL data may be, for example, 10% of the total URL.

[0059] like Figure 2 As shown, 10% of the total URLs generated by the entire network XDR within a fixed time period (such as every 5 minutes) are randomly selected and matched with all URL rules in the rule base, and the matching length of the hit rule corresponding to each HOST (domain name information) in the URI (Uniform Resource Identifier) ​​is output (URL consists of HOST and URI), for example:

[0060] Full URL1: v.qq.com / mzc00200lkdiz74.html

[0061] The HOST is v.qq.com and the URI is / mzc00200lkdiz74.html

[0062] Hit rule 1: *v.qq.com*, then the matching length of the hit rule corresponding to HOST is 0;

[0063] Full URL2: v.qq.com / x / cover / mzc00200lkdiz74.html

[0064] The HOST is v.qq.com and the URI is / x / cover / mzc00200lkdiz74.html

[0065] Hit rule 2: *v.qq.com / x / cover*, then the matching length of the hit rule corresponding to HOST is 8 (that is, the number of digits of the last digit "r" in the rule in the URI);

[0066] That is, the maximum matching length of the rule corresponding to HOST: v.qq.com is 8.

[0067] Based on the above output results, the maximum match length table of the HOST corresponding rules is dynamically updated. If the maximum match length of a HOST in the statistical results is greater than the maximum match length of the HOST in the table or the HOST is not in the table, the statistical results will be updated to the maximum match length of the HOST in the table. If the maximum match length of a HOST in the statistical results is less than or equal to the maximum match length of the HOST in the table, the maximum match length in the table will not be updated. The specific fields of the maximum match length table of the HOST corresponding rules are shown in Table 1:

[0068] Table 1

[0069] Serial number Fields 1 HOST 2 Maximum match length

[0070] In some embodiments, intercepting the character string in the XDR field according to the rule maximum match length table includes:

[0071] Obtaining second URL data from the full amount of URL data;

[0072] By using a full match method, the domain name information of the second URL data is matched with the domain name rule maximum match length table to obtain the maximum length corresponding to the domain name information of the second URL data;

[0073] The URI field in the XDR field is intercepted according to the maximum length to obtain a URL interception result; wherein the URL interception result includes domain name information and the intercepted URI.

[0074] Specifically, the second URL data may be the remaining 90% of the URLs in the full URL. Figure 3 As shown, the embodiment of the present invention intercepts the character string in the XDR field according to the rule maximum matching length table, specifically including:

[0075] 1) Use the full match method and the maximum match length table of HOST corresponding rules to match the HOST fields of the remaining 90% of the URLs generated in the fixed time period of the entire network XDR in the first step. If the match is successful, proceed to step 2;

[0076] 2) Based on the maximum length corresponding to HOST in the maximum matching length table of HOST corresponding rules, the URI field in XDR is intercepted and the intercepted URL is output. Examples of records in XDR are shown in Table 2:

[0077] Table 2

[0078]

[0079] As can be seen from Table 2, the maximum matching length of the HOST "p1-webcast-hscdn.byteimg.com" in the HOST corresponding rule maximum matching length table is 12, so the 1st to 12th bits from the left of the original URI are intercepted, and the intercepted URI is " / img / hotsoon", and the intercepted URL is "p1-webcast-hscdn.byteimg.com / img / hotsoon".

[0080] Finally, if Figure 3 As shown, the embodiment of the present invention performs fuzzy matching on the intercepted URL and the URL rules in the rule library and outputs the recognition result.

[0081] An embodiment of the present invention further provides an electronic device, including a processor and a memory;

[0082] The memory is used to store programs;

[0083] The processor executes the program to implement Figure 1 The method shown.

[0084] The embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the following Figure 1 The method shown.

[0085] The embodiment of the present invention also discloses a computer program product or a computer program, wherein the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes Figure 1 The method shown.

[0086] In summary, existing DPI service identification is to identify Internet traffic services by fuzzy matching the complete string of the XDR field and the rules in the DPI rule library. The string in the XDR field that matches the rules in the rule library is generally located at the front of the entire XDR field string, and the latter part is mostly worthless characters. The existing solution loads the complete XDR field string into the identification program for fuzzy matching, and a large number of strings with no identification value are loaded, which greatly increases the program operation overhead.

[0087] The present invention is based on the statistics of existing network big data, dynamically updates the maximum matching length of the rules of different strings in each field of XDR (such as the maximum matching length of the rules of each HOST mentioned above), and then intercepts the XDR field string based on the maximum matching length table, removes the strings that do not need to be matched, and then performs fuzzy matching with the rules in the rule library to identify Internet traffic. Since the intercepted fields are updated in real time based on the existing network big data, this solution can maintain the recognition accuracy of the existing solution while greatly reducing the computational overhead of the recognition program, improving the recognition efficiency, and can be applied to fields including but not limited to URL (Uniform Resource Locator), REFERURI (Incoming Connection), Useragent (User Agent) in XDR that require DPI business recognition rule matching, and has strong applicability and scalability.

[0088] The present invention combines DPI technology and big data analysis technology, and realizes business identification of Internet traffic based on statistical analysis of existing network XDR data. It does not need to fuzzy match the complete XDR field string with the rules in the rule base, which makes up for the shortcomings of the existing method, such as high program operation overhead, insufficient accuracy and coverage. Therefore, the present invention has the following advantages:

[0089] 1) Based on the existing network big data, statistical analysis is performed to extract fields, and after eliminating the strings that do not need to be matched, fuzzy matching is performed with the rules in the rule base to identify Internet traffic, effectively reducing the recognition program overhead and improving the recognition coverage;

[0090] 2) Since the rule maximum matching length table is updated in real time based on the existing network data, the statistical results can cover all situations of the existing network data and have high recognition accuracy.

[0091] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.

[0092] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0093] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0094] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0095] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0096] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0097] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0098] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

[0099] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the described embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A DPI service identification method, characterized in that: include: Determine the maximum matching length of the rules for different strings in each field of XDR; The character string in the XDR field is intercepted according to the rule maximum matching length table to remove the character string that does not need to be matched in the XDR field; Perform fuzzy matching on the extracted character string and the rules in the rule base to obtain the DPI recognition result; The step of determining the maximum matching length of the rules for different character strings in each field of the XDR includes: Obtain the first URL data from the full amount of URL data generated within a fixed time period of the entire network XDR; Matching the first URL data with the rules in the rule library to obtain the matching length of the domain name information of each URL data corresponding to the rule in the uniform resource identifier; Dynamically update the maximum matching length of the rule corresponding to the domain name information according to the matching length; The intercepting the character string in the XDR field according to the rule maximum matching length table includes: Obtaining second URL data from the full amount of URL data; By a full matching method, the domain name information of the second URL data is matched with the rule maximum matching length table corresponding to the domain name information to obtain the maximum length corresponding to the domain name information of the second URL data; The URI field in the XDR field is intercepted according to the maximum length to obtain a URL interception result; wherein the URL interception result includes domain name information and the intercepted URI.

2. The DPI service identification method according to claim 1, characterized in that: The dynamically updating the maximum matching length of the rule corresponding to the domain name information according to the matching length includes: When the matching length is greater than the maximum matching length of the rule corresponding to the domain name information in the maximum matching length table of rules, or when the maximum matching length of the rule corresponding to the domain name information does not exist in the maximum matching length table of rules, the matching length is determined as the maximum matching length of the rule corresponding to the domain name information; When the matching length is less than or equal to the maximum matching length of the rule corresponding to the domain name information in the maximum matching length table of the rule, the maximum matching length of the rule in the maximum matching length table of the rule is not updated.

3. A DPI service identification device, characterized in that: include: A determination module is used to determine the maximum matching length of the rules of different character strings in each field of the XDR; An interception module, used for intercepting the character string in the XDR field according to the rule maximum matching length table, so as to remove the character string that does not need to be matched in the XDR field; The recognition module is used to perform fuzzy matching between the extracted character string and the rules in the rule base to obtain the DPI recognition result; The determination module comprises: A first acquisition unit is used to acquire first URL data from the full amount of URL data generated within a fixed time period of the entire network XDR; A first matching unit, used to match the first URL data with the rules in the rule library to obtain the matching length of the domain name information of each URL data corresponding to the rule in the uniform resource identifier; An updating unit, configured to dynamically update the maximum matching length of the rule corresponding to the domain name information according to the matching length; The interception module comprises: A second acquisition unit, used to acquire second URL data from the full amount of URL data; A second matching unit is used to match the domain name information of the second URL data with a rule maximum matching length table corresponding to the domain name information through a full matching method to obtain a maximum length corresponding to the domain name information of the second URL data; The interception unit is used to intercept the URI field in the XDR field according to the maximum length to obtain a URL interception result; wherein the URL interception result includes domain name information and the intercepted URI.

4. The DPI service identification device according to claim 3, characterized in that: The updating unit comprises: A first subunit is configured to determine the match length as the rule maximum match length corresponding to the domain name information when the match length is greater than the rule maximum match length corresponding to the domain name information in the rule maximum match length table, or when the rule maximum match length corresponding to the domain name information does not exist in the rule maximum match length table; The second subunit is configured to not update the rule maximum matching length in the rule maximum matching length table when the matching length is less than or equal to the rule maximum matching length corresponding to the domain name information in the rule maximum matching length table.

5. An electronic device, characterized in that: including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 or 2.

6. A computer-readable storage medium, characterized in that: The storage medium stores a program, and the program is executed by a processor to implement the method according to any one of claims 1 or 2.

Citation Information

Patent Citations

  • Deep packet detection device orienting IPv6 security gateway

    CN104104557A

  • Character string matching based method and system for analyzing address information of identification card

    CN105069056A

  • Normal distribution-based internet big data mining method and system

    CN105279257A

  • Method and device for extracting data features

    CN105554152A

  • A method and a device for automatically identifying traffic and extracting an application rule

    CN109600317A