Application identification method and device and electronic equipment

By dividing network traffic data into multiple streams and using an application identification library for identification processing, the problem of low identification efficiency in the existing technology is solved and efficient application identification is achieved.

CN118612155AInactive Publication Date: 2024-09-06WEBRAY TECH BEIJING CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410644584.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing application identification methods have low identification efficiency under high traffic conditions, resulting in slow matching speed and inability to effectively handle tens of millions of flows.

Method used

Divide network traffic data into multiple flows, classify and process them based on five-tuple information (source address, destination address, source port, destination port and protocol type), classify and cache flows of the same category, and use corresponding application identification The library performs recognition processing and generates application recognition results.

Benefits of technology

Through flow classification processing and matching with the corresponding application recognition library, the recognition efficiency is improved, the amount of calculation is reduced, and the matching speed is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612155A
    Figure CN118612155A
Patent Text Reader

Abstract

The invention provides an application identification method and device and electronic equipment, and belongs to the technical field of communication. The method comprises the following steps: receiving network flow data, and dividing the network flow data into a plurality of flows; performing classification processing on each stream to determine a category corresponding to each stream, and performing classification caching on each stream according to the corresponding category; and for each classification, calling a corresponding application identification library to perform application identification on each cached to-be-identified stream of the classification to obtain an application identification result. According to the scheme of the invention, the application recognition library corresponding to the classification is adopted for the streams of different classifications, so that the to-be-recognized streams of the classification are matched and recognized through the known features corresponding to the classification, the matching speed can be improved, and the recognition efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an application identification method, device and electronic equipment. Background Art

[0002] Application identification is a mechanism that classifies traffic according to the application or protocol characteristics in the traffic. By using application identification technology to identify various applications in the traffic, the traffic can be managed and controlled in a refined manner.

[0003] Common application identification methods include the following: Feature identification technology: Determine the application carried by business traffic by identifying the feature information in the message. Association identification technology: Mainly used to identify applications based on multi-channel protocols. Behavior identification technology: Identify the application carried by the message by extracting the behavioral characteristics of the message.

[0004] The above identification methods all match the features in the traffic with a large number of known application features to further determine the application corresponding to the traffic. When the traffic is very large, such as when there are tens of millions of flows, feature matching for each flow makes the matching speed slow, which in turn makes the identification efficiency low. Summary of the invention

[0005] The present invention provides an application identification method, device and electronic device, which are used to solve the defect of low efficiency in identifying traffic in the prior art, realize classified identification of traffic, and thus improve the identification efficiency.

[0006] The present invention provides an application identification method, comprising:

[0007] Receiving network traffic data, and dividing the network traffic data into a plurality of flows;

[0008] Classify each flow to determine the category to which each flow corresponds, and cache each flow according to the corresponding category;

[0009] For each category, the corresponding application identification library is called to perform application identification on each to-be-identified stream cached in the category to obtain an application identification result.

[0010] According to an application identification method provided by the present invention, receiving network traffic data and dividing the network traffic data into multiple flows includes:

[0011] Receiving network flow data, and determining quintuple information of each message in the network flow data;

[0012] Determine a group of messages with the same five-tuple information in the network traffic data as a flow, so as to divide the network traffic data into multiple flows;

[0013] The five-tuple information includes source address, destination address, source port, destination port and protocol type.

[0014] According to an application identification method provided by the present invention, the classification process is performed on each flow to determine the category corresponding to each flow, and the flows are classified and cached according to the corresponding category, including:

[0015] Extracting feature information of each of the flows, and matching the feature information of the flows with the classification rule base, wherein the classification rule base includes a plurality of classifications and matching features corresponding to each classification;

[0016] Determining a category corresponding to the flow based on a classification corresponding to a matching feature that matches the feature information of the flow;

[0017] Each of the flows is classified and stored according to the corresponding category.

[0018] According to an application identification method provided by the present invention, for each classification, calling the corresponding application identification library to perform application identification on each to-be-identified stream cached in the classification to obtain an application identification result, including:

[0019] For each category, when it is determined that the flow to be identified that has been cached by the category meets the corresponding preset conditions, the application identification library corresponding to the category is called to perform identification processing on the flow to be identified to obtain an application identification result, and the application identification library includes the identification features corresponding to the category.

[0020] According to an application identification method provided by the present invention, the step of determining that the classified and cached flow to be identified meets a corresponding preset condition includes:

[0021] Determine that the size of the to-be-identified streams cached by the classification reaches a set size corresponding to the classification; or,

[0022] It is determined that the duration of caching the to-be-identified flow in the classification reaches a preset duration corresponding to the classification.

[0023] According to an application identification method provided by the present invention, the calling of the application identification library corresponding to the classification to perform identification processing on the to-be-identified flow to obtain the application identification result includes:

[0024] Creating a corresponding number of processes based on a preset number of processes corresponding to the classification;

[0025] Based on the created process, an application identification library corresponding to the classification is called, and feature information in the flow to be identified is matched with application identification features in the application identification library to obtain an application identification result.

[0026] According to an application identification method provided by the present invention, obtaining an application identification result includes:

[0027] Generate a mapping table of the to-be-identified flow and the corresponding application identification result based on the application identification result;

[0028] The mapping table is stored in a database or a log.

[0029] The present invention also provides an application identification device, the device comprising:

[0030] A flow receiving unit, configured to receive network flow data and divide the network flow data into a plurality of flows;

[0031] A traffic classification unit, used to classify each flow to determine the category corresponding to each flow, and cache each flow according to the corresponding category;

[0032] The traffic processing unit is used to call the corresponding application identification library for each classification to perform application identification on each to-be-identified flow cached in the classification to obtain an application identification result.

[0033] According to an application identification method provided by the present invention, the traffic receiving unit is specifically used for:

[0034] Receiving network flow data, and determining quintuple information of each message in the network flow data;

[0035] Determine a group of messages with the same five-tuple information in the network traffic data as a flow, so as to divide the network traffic data into multiple flows;

[0036] The five-tuple information includes source address, destination address, source port, destination port and protocol type.

[0037] According to an application identification method provided by the present invention, the traffic classification unit is specifically used for:

[0038] Extracting feature information of each of the flows, and matching the feature information of the flows with the classification rule base, wherein the classification rule base includes a plurality of classifications and matching features corresponding to each classification;

[0039] Determining a category corresponding to the flow based on a classification corresponding to a matching feature that matches the feature information of the flow;

[0040] Each of the flows is classified and stored according to the corresponding category.

[0041] According to an application identification method provided by the present invention, the traffic processing unit is specifically used for:

[0042] For each category, when it is determined that the flow to be identified that has been cached by the category meets the corresponding preset conditions, the application identification library corresponding to the category is called to perform identification processing on the flow to be identified to obtain an application identification result, and the application identification library includes the identification features corresponding to the category.

[0043] According to an application identification method provided by the present invention, the traffic processing unit is further used for:

[0044] Determine that the size of the to-be-identified streams cached by the classification reaches a set size corresponding to the classification; or,

[0045] It is determined that the duration of caching the to-be-identified flow in the classification reaches a preset duration corresponding to the classification.

[0046] According to an application identification method provided by the present invention, the traffic processing unit is further used for:

[0047] Creating a corresponding number of processes based on a preset number of processes corresponding to the classification;

[0048] Based on the created process, an application identification library corresponding to the classification is called, and feature information in the flow to be identified is matched with application identification features in the application identification library to obtain an application identification result.

[0049] According to an application identification method provided by the present invention, the traffic processing unit is further used for:

[0050] Generate a mapping table of the to-be-identified flow and the corresponding application identification result based on the application identification result;

[0051] The mapping table is stored in a database or a log.

[0052] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the above-mentioned application identification methods is implemented.

[0053] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the application identification method described in any one of the above is implemented.

[0054] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned application identification methods.

[0055] The application identification method, device and electronic device provided by the present invention first divide the network traffic data into multiple flows, then classify and process each flow one by one, classify and store each flow according to its category, and further perform application identification on the classified and stored flows to be identified based on the application identification library corresponding to the classification, thereby obtaining the identification results of each flow. For flows of different classifications, the application identification library corresponding to the classification is used, so that the flows to be identified of the category are matched and identified through the known features corresponding to the category, which can improve the matching speed and thus improve the identification efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0057] Figure 1 This is one of the flowcharts of the application identification method provided by the embodiment of the present invention;

[0058] Figure 2 This is the second flow chart of the application identification method provided by the embodiment of the present invention;

[0059] Figure 3 is a schematic diagram of the structure of an application identification device provided by an embodiment of the present invention;

[0060] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] Application identification is a mechanism that classifies traffic according to the application or protocol characteristics in the traffic. By using application identification technology to identify various applications in the traffic, the traffic can be finely controlled. Common application identification methods include the following:

[0063] 1. Feature recognition technology: Determine the application carried by the business traffic by identifying the feature information in the message. Different applications usually use different application protocols, and different application protocols have their own characteristics, which may be specific ports, specific strings, or specific bit sequences. In addition to detecting the traditional five-tuple information of the message, feature recognition technology also obtains more features for identifying applications by detecting the application layer information of the message.

[0064] 2. Association identification technology: mainly used to identify applications based on multi-channel protocols. There are more and more applications that use multi-channel protocols to transmit voice, video and files. The control channel and data channel of multi-channel protocols are separate, such as FTP (File Transfer Protocol), SIP (Session Initiation Protocol), H.323 (Audio and Video Transmission Protocol), etc. These protocols negotiate the communication parameters (such as port information, etc.) used to establish the data channel through the control channel, and transmit specific business data through the data channel. The association identification technology first identifies the application carried by the control channel message through feature recognition technology, and extracts the data channel information from the control channel message and records it in the application identification association table. Subsequently, the data channel message is identified according to the association table and marked as the corresponding application, thereby realizing the application identification of the multi-channel protocol message.

[0065] 3. Behavior recognition technology: Identify the application carried by the message by extracting the behavioral features of the message. There are some complex applications on the Internet, and it is difficult for us to select feature keywords as the identification features; there are also many encrypted applications that cannot be identified due to feature fuzziness caused by data encryption. Existing feature recognition technologies cannot identify some complex applications based on conventional features, while behavior recognition technology achieves accurate application identification through comprehensive investigation and selection of multiple behavioral feature indicators. Different applications have different available behavioral features. To accurately identify an application, it is necessary to capture a large amount of traffic samples and analyze and extract unique behavioral features. Usually, the proportion of upstream and downstream traffic, the frequency of message sending, the law of message length changes, etc. are all behavioral features that can be used.

[0066] When using the above method to identify applications in traffic, it is necessary to match the features in the traffic with all known application features to determine the application corresponding to each flow. Each flow is matched with all known application features, which requires large amount of calculation and slow matching speed, resulting in low identification efficiency.

[0067] In view of the technical problems existing in the prior art, the present application provides an application identification method. Figure 1 is one of the flow charts of the application identification method provided by the embodiment of the present invention, such as Figure 1As shown, the application identification method includes:

[0068] Step 101: Receive network traffic data, and divide the network traffic data into multiple flows.

[0069] Specifically, network traffic data is received, the network traffic data includes a plurality of messages, and after the network traffic data is received, the network traffic data is first divided into a plurality of independent streams.

[0070] In one embodiment, receiving network traffic data and dividing the network traffic data into a plurality of streams includes:

[0071] Receiving network flow data, and determining quintuple information of each message in the network flow data;

[0072] Determine a group of messages with the same five-tuple information in the network traffic data as a flow, so as to divide the network traffic data into multiple flows;

[0073] The five-tuple information includes source address, destination address, source port, destination port and protocol type.

[0074] Specifically, Figure 2 FIG. 2 is a flow chart of the application identification method provided by an embodiment of the present invention. Figure 2 As shown, after receiving the network flow data, the five-tuple information of each message in the network flow data is first determined, and the five-tuple information includes the source address, the destination address, the source port, the destination port and the protocol type. After determining the five-tuple information of each message, a group of messages with the same five-tuple information is determined as a flow, and the network flow data is divided into multiple flows based on this.

[0075] It is understandable that usually the five-tuple information of a request message and the corresponding response message is the same, and the flow division based on the five-tuple is to divide the request message and the corresponding response message into one flow.

[0076] Step 102: Classify each flow to determine the category to which each flow corresponds, and cache each flow according to the corresponding category.

[0077] Specifically, after the network traffic data is divided, that is, after the network traffic data is divided into multiple flows, each flow is classified and processed to determine the category of each flow. After the category corresponding to each flow is determined, each flow is classified and stored according to the category, that is, flows of the same category are stored together.

[0078] It is understandable that there may be flows whose categories cannot be determined in the network traffic data. Such flows can be marked as unknown flows, and all unknown flows can be stored together.

[0079] In one embodiment, the classifying each flow to determine the category corresponding to each flow, and classifying and caching each flow according to the corresponding category, includes:

[0080] Extracting feature information of each of the flows, and matching the feature information of the flows with the classification rule base, wherein the classification rule base includes a plurality of classifications and matching features corresponding to each classification;

[0081] Determining a category corresponding to the flow based on a classification corresponding to a matching feature that matches the feature information of the flow;

[0082] Each of the flows is classified and stored according to the corresponding category.

[0083] Specifically, Figure 2 As shown, when classifying each flow in the network traffic data, the characteristic information of each flow is first extracted, and then the extracted characteristic information of each flow is matched with the classification rule base. The classification rule base includes a variety of classification rules, and the classification rules include multiple classifications and matching features corresponding to each classification. When classifying each flow, the characteristic information of each flow is matched with the matching features in the classification rule base, and then the classification corresponding to the matching features is determined according to the matching features matched to the characteristic information of the flow. The classification is also the classification corresponding to the flow, so that the category of each flow can be determined. After determining the category of each flow, each flow is classified and stored according to the classification corresponding to each flow, and flows of the same category are stored together.

[0084] Exemplarily, the classification rule library may include a variety of predefined matching rules, such as the ports, IP (Internet Protocol, the protocol for interconnecting networks), requested domain names, and traffic characteristics of various types of flows. For example, web page (Web) flows usually use ports 80 or 443; video flows usually have a larger uplink and downlink ratio and a higher message sending frequency; game flows usually have a smaller message length and a lower delay, etc. Based on this, for example, the characteristic information of a certain flow extracted from the network traffic data is the use of port 443. After matching in the classification rule library, it is determined that the category corresponding to port 443 is a web page flow, and the category of the flow is determined to be a web page flow. For another example, when the message length of a certain flow extracted from the network traffic data is less than a first preset threshold, after matching in the classification rule library, it is determined that the category corresponding to the message length less than the first preset threshold is a game flow, and the category of the flow is determined to be a game flow. After determining the categories corresponding to each flow, the flows of the same category are stored in some, for example, web page flows can be stored together, game flows can be stored together, and video flows can be stored together.

[0085] Exemplarily, the classification rule base is predefined, and the classification rules can be dynamically updated. For example, when a new webpage flow and a new port number corresponding to the flow are added, the port number corresponding to the webpage flow in the classification rule base needs to be dynamically updated. The new port number is updated to the classification rule base so that the flow corresponding to the new port can be successfully identified as a webpage flow in the future.

[0086] Step 103: For each category, call the corresponding application identification library to perform application identification on each to-be-identified flow cached in the category to obtain an application identification result.

[0087] Specifically, Figure 2 As shown, after determining the category of each flow in the network traffic data, the application identification library corresponding to each category is called to perform application identification on each to-be-identified flow cached in each classification to determine the application corresponding to each flow.

[0088] Since each flow is classified, the application identification library corresponding to each classification only stores all identification features corresponding to the classification. In this case, when identifying each flow, it is only necessary to match it with the identification features corresponding to the classification, thereby improving the identification efficiency of each flow.

[0089] It is understandable that, for unknown flows, the application identification libraries corresponding to each category can be called in sequence to perform application identification on the unknown flows in sequence, thereby determining the application corresponding to the unknown flows. Furthermore, after the unknown flows are successfully identified, the classification rule library can be updated according to the feature information and identification results of the unknown flows, thereby improving the classification accuracy of the classification rule library.

[0090] In one embodiment, for each classification, calling the corresponding application identification library to perform application identification on each to-be-identified flow cached in the classification to obtain an application identification result includes:

[0091] For each category, when it is determined that the flow to be identified that has been cached by the category meets the corresponding preset conditions, the application identification library corresponding to the category is called to perform identification processing on the flow to be identified to obtain an application identification result, and the application identification library includes the identification features corresponding to the category.

[0092] Specifically, after determining the category of each flow in the network traffic data and storing them in categories, for each category, when calling the corresponding application identification library to perform application identification on each flow to be identified, first determine whether the cached flow to be identified in each category meets the corresponding preset conditions. It can be understood that the preset conditions corresponding to each category can be the same or different, and the embodiments of the present application do not make specific limitations here.

[0093] When the to-be-identified flows cached in each category meet the preset conditions, the application identification library corresponding to the category is called to identify the to-be-identified flows. It is understandable that after the to-be-identified flows stored in each category are identified based on the application identification library, they will be released from the cache, that is, the identified to-be-identified flows will be deleted from the cache of the corresponding category.

[0094] The application identification library is used to store and update identification features. The application identification library can be dynamically adjusted according to changes in the application. For example, when WeChat is updated from an old version to a new version, its port number changes. Then, the port number corresponding to WeChat in the application identification library needs to be dynamically updated so that the corresponding flow of the updated WeChat can be successfully matched and identified. The application identification library can identify the application name, version, protocol and other information to which the flow belongs. For example, for HTTP flows of web pages, the name of the visited website can be identified based on the Host field in the request message header of the flow, such as www.bing.com, www.baidu.com, etc.; the returned content type can also be identified based on the Content-Type field in the response message header, such as text / html, image / jpeg, etc.; the specific application name and version of the HTTP flow can also be identified based on specific fields or content in the request message and / or response message, such as the application corresponding to the HTTP flow is Weibo, QQ or Facebook, etc.

[0095] In one embodiment, determining that the to-be-identified flows cached by the classification meet corresponding preset conditions includes:

[0096] Determine that the size of the to-be-identified streams cached by the classification reaches a set size corresponding to the classification; or,

[0097] It is determined that the duration of caching the to-be-identified flow in the classification reaches a preset duration corresponding to the classification.

[0098] Specifically, when performing application identification on the flows corresponding to each category, batch identification can be performed, that is, preset conditions for batch processing can be set for each category, and the flows corresponding to each category can be monitored based on these preset conditions. When the monitoring determines that the flows cached in this category meet the preset conditions, batch processing is performed.

[0099] For each category, determining whether the cached to-be-identified flow of the category meets the corresponding preset conditions includes:

[0100] (1) Determine whether the size of the to-be-identified streams that have been cached by the classification has reached the set size corresponding to the classification. For example, for the streams of the web page class, it can be set that when the size of the stream cache of the network class reaches 10MB (MByte), it is determined that the stored 10MB of web page class streams are batch identified. It is understandable that after the cached 10MB of web page class streams are identified, they will be released from the cache corresponding to the web page class streams.

[0101] (2) Determine whether the duration of the stream to be identified in the category cache reaches the preset duration corresponding to the category. For example, for the video stream, it can be set that when the cache duration of the video stream is greater than 10 seconds, it is determined to perform batch identification processing on the 10-second cached stream of the video class. It is understandable that after the 10-second cached video stream is identified, it will be released from the cache corresponding to the video class.

[0102] In one embodiment, calling the application identification library corresponding to the classification to perform identification processing on the flow to be identified to obtain the application identification result includes:

[0103] Creating a corresponding number of processes based on a preset number of processes corresponding to the classification;

[0104] Based on the created process, an application identification library corresponding to the classification is called, and feature information in the flow to be identified is matched with application identification features in the application identification library to obtain an application identification result.

[0105] Exemplarily, for each classification, a preset number of processes can be set for each classifiable device. When identifying the to-be-identified flow corresponding to the classification, a corresponding number of processes can be constructed based on the preset number of processes, and the application identification library can be called through the constructed process to perform application identification on the to-be-identified flow in the classification.

[0106] For example, for web page flows, web page flows have more features, and more content needs to be identified during recognition, so 4 processes can be preset to process web page flows in batches. For game flows, game flows have fewer features, and less content needs to be identified during recognition, so 2 processes can be preset to process game flows in batches.

[0107] Exemplarily, different types of application identification libraries may be used to process different types of traffic, such as using a content-based application identification library for WEB traffic and a behavior-based application identification library for game traffic.

[0108] In one embodiment, obtaining the application identification result includes:

[0109] Generate a mapping table of the to-be-identified flow and the corresponding application identification result based on the application identification result;

[0110] The mapping table is stored in a database or a log.

[0111] Specifically, after performing application identification on the flows in the network traffic data, a mapping table of the flows to be identified and the corresponding application identification results can be generated based on the application identification results. For example, the application identification results of flows of the same type can be stored together. When storing, the five-tuple information of the flow and the corresponding application name can be stored in correspondence. The mapping table can be stored in a database or in a log for subsequent use.

[0112] The application identification method provided by the present invention first divides the network traffic data into multiple flows, then classifies and processes each flow one by one, classifies and stores each flow according to its category, and further performs application identification on the classified and stored flows to be identified based on the application identification library corresponding to the classification, thereby obtaining the identification results of each flow. For flows of different classifications, the application identification library corresponding to the classification is used, so that the flows to be identified of the category are matched and identified through the known features corresponding to the category, which can improve the matching speed and thus improve the identification efficiency.

[0113] The application identification device provided by the present invention is described below. The application identification device described below and the application identification method described above can be referenced to each other.

[0114] Figure 3 is a schematic diagram of the structure of an application identification device provided by an embodiment of the present invention, such as Figure 3 As shown, the application identification device includes: a traffic receiving unit 301, a traffic classification unit 302 and a traffic processing unit 303;

[0115] The traffic receiving unit 301 is used to receive network traffic data and divide the network traffic data into multiple flows;

[0116] The traffic classification unit 302 is used to classify each flow to determine the category corresponding to each flow, and cache each flow according to the corresponding category;

[0117] The traffic processing unit 303 is used to call the corresponding application identification library for each classification to perform application identification on each to-be-identified flow cached in the classification to obtain an application identification result.

[0118] In one embodiment, the traffic receiving unit 301 is specifically used for:

[0119] Receiving network flow data, and determining quintuple information of each message in the network flow data;

[0120] Determine a group of messages with the same five-tuple information in the network traffic data as a flow, so as to divide the network traffic data into multiple flows;

[0121] The five-tuple information includes source address, destination address, source port, destination port and protocol type.

[0122] In one embodiment, the traffic classification unit 302 is specifically used to:

[0123] Extracting feature information of each of the flows, and matching the feature information of the flows with the classification rule base, wherein the classification rule base includes a plurality of classifications and matching features corresponding to each classification;

[0124] Determining a category corresponding to the flow based on a classification corresponding to a matching feature that matches the feature information of the flow;

[0125] Each of the flows is classified and stored according to the corresponding category.

[0126] In one embodiment, the traffic processing unit 303 is specifically used for:

[0127] For each category, when it is determined that the flow to be identified that has been cached by the category meets the corresponding preset conditions, the application identification library corresponding to the category is called to perform identification processing on the flow to be identified to obtain an application identification result, and the application identification library includes the identification features corresponding to the category.

[0128] In one embodiment, the traffic processing unit 303 is further configured to:

[0129] Determine that the size of the to-be-identified streams cached by the classification reaches a set size corresponding to the classification; or,

[0130] It is determined that the duration of caching the to-be-identified flow in the classification reaches a preset duration corresponding to the classification.

[0131] In one embodiment, the traffic processing unit 303 is further configured to:

[0132] Creating a corresponding number of processes based on a preset number of processes corresponding to the classification;

[0133] Based on the created process, an application identification library corresponding to the classification is called, and feature information in the flow to be identified is matched with application identification features in the application identification library to obtain an application identification result.

[0134] In one embodiment, the traffic processing unit 303 is further configured to:

[0135] Generate a mapping table of the to-be-identified flow and the corresponding application identification result based on the application identification result;

[0136] The mapping table is stored in a database or a log.

[0137] The application identification device provided by the present invention first divides the network traffic data into multiple flows, then classifies and processes each flow one by one, classifies and stores each flow according to its category, and further performs application identification on the classified and stored flows to be identified based on the application identification library corresponding to the classification, thereby obtaining the identification results of each flow. For flows of different classifications, the application identification library corresponding to the classification is used, so that the flows to be identified of the category are matched and identified through the known features corresponding to the category, which can improve the matching speed and thus improve the identification efficiency.

[0138] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the application identification method, which includes:

[0139] Receiving network traffic data, and dividing the network traffic data into a plurality of flows;

[0140] Classify each flow to determine the category to which each flow corresponds, and cache each flow according to the corresponding category;

[0141] For each category, the corresponding application identification library is called to perform application identification on each to-be-identified stream cached in the category to obtain an application identification result.

[0142] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions 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 method 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 and other media that can store program codes.

[0143] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the application identification method provided by the above methods, the method comprising:

[0144] Receiving network traffic data, and dividing the network traffic data into a plurality of flows;

[0145] Classify each flow to determine the category to which each flow corresponds, and cache each flow according to the corresponding category;

[0146] For each category, the corresponding application identification library is called to perform application identification on each to-be-identified stream cached in the category to obtain an application identification result.

[0147] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the application identification method provided by the above methods, the method comprising:

[0148] Receiving network traffic data, and dividing the network traffic data into a plurality of flows;

[0149] Classify each flow to determine the category to which each flow corresponds, and cache each flow according to the corresponding category;

[0150] For each category, the corresponding application identification library is called to perform application identification on each to-be-identified stream cached in the category to obtain an application identification result.

[0151] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0152] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0153] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An application identification method, characterized in that: include: Receiving network traffic data, and dividing the network traffic data into a plurality of flows; Classify each flow to determine the category to which each flow corresponds, and cache each flow according to the corresponding category; For each category, the corresponding application identification library is called to perform application identification on each to-be-identified stream cached in the category to obtain an application identification result.

2. The application identification method according to claim 1, characterized in that: The receiving network traffic data and dividing the network traffic data into a plurality of streams comprises: Receiving network flow data, and determining quintuple information of each message in the network flow data; Determine a group of messages with the same five-tuple information in the network traffic data as a flow, so as to divide the network traffic data into multiple flows; The five-tuple information includes source address, destination address, source port, destination port and protocol type.

3. The application identification method according to claim 1, characterized in that: The classifying each flow to determine the category corresponding to each flow, and caching each flow according to the corresponding category, includes: Extracting feature information of each of the flows, and matching the feature information of the flows with the classification rule base, wherein the classification rule base includes a plurality of classifications and matching features corresponding to each classification; Determining a category corresponding to the flow based on a classification corresponding to a matching feature that matches the feature information of the flow; Each of the flows is classified and stored according to the corresponding category.

4. The application identification method according to claim 1, characterized in that: For each category, calling the corresponding application identification library to perform application identification on each to-be-identified stream cached in the category to obtain an application identification result includes: For each category, when it is determined that the flow to be identified that has been cached by the category meets the corresponding preset conditions, the application identification library corresponding to the category is called to perform identification processing on the flow to be identified to obtain an application identification result, and the application identification library includes the identification features corresponding to the category.

5. The application identification method according to claim 4, characterized in that: The determining that the to-be-identified flows cached by the classification meet corresponding preset conditions includes: Determine that the size of the to-be-identified streams cached by the classification reaches a set size corresponding to the classification; or, It is determined that the duration of caching the to-be-identified flow in the classification reaches a preset duration corresponding to the classification.

6. The application identification method according to claim 4, characterized in that: The calling of the application identification library corresponding to the classification to perform identification processing on the flow to be identified to obtain an application identification result includes: Creating a corresponding number of processes based on a preset number of processes corresponding to the classification; Based on the created process, an application identification library corresponding to the classification is called, and feature information in the flow to be identified is matched with application identification features in the application identification library to obtain an application identification result.

7. The application identification method according to any one of claims 1 to 6, characterized in that: The obtaining of the application identification result includes: Generate a mapping table of the to-be-identified flow and the corresponding application identification result based on the application identification result; The mapping table is stored in a database or a log.

8. An application identification device, characterized in that: include: A flow receiving unit, configured to receive network flow data and divide the network flow data into a plurality of flows; A traffic classification unit, used to classify each flow to determine the category corresponding to each flow, and cache each flow according to the corresponding category; The traffic processing unit is used to call the corresponding application identification library for each classification to perform application identification on each to-be-identified flow cached in the classification to obtain an application identification result.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the application identification method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the application identification method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

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

    CN109600317A

  • UPF data stream classification method, system and device based on machine learning and medium

    CN116055411A

  • Web application system identification method and device and readable storage medium

    CN117375958A