Application flow analysis method and system

By correlating and analyzing DNS logs and Flow data to identify and analyze application traffic, it solves the problems of high analysis cost and poor accuracy in the existing technology, and achieves more efficient identification and statistics of application traffic.

CN118764402APending Publication Date: 2024-10-11CHINA UNITECHS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410970599.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing application traffic analysis methods such as DPI technology are costly and difficult to collect uniformly in backbone networks, and the DPI logs in IDC computer rooms lack application domain name information, resulting in inaccurate and operable analysis.

Method used

By correlating and analyzing DNS logs and Flow data, we can determine the application and application address type to which the DNS request belongs, and perform layer-by-layer analysis to reduce data scale and improve analysis accuracy.

Benefits of technology

It greatly reduces the analysis cost and improves the accuracy and operability of application traffic analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764402A_ABST
    Figure CN118764402A_ABST
Patent Text Reader

Abstract

The invention discloses an application flow analysis method and system, and the method comprises the steps: determining an application to which a DNS request belongs, an application address and an application address type through a DNS log and a domain name feature library, and enabling the application address type to be divided into an exclusive type and a shared type; performing association analysis on the port allocation rule of the client address, and determining the port range of Flow and DNS requests; determining a first application Flow according to the application address and an application end address of the application address type associated Flow; analyzing the Flow and the DNS request through triple association, and determining a second application Flow; determining a third application Flow according to the DNS request number, the request mode and the service type; and aggregating the first application Flow, the second application Flow and the third application Flow to obtain traffic statistical information of the applications. According to the method and the system, the application flow is identified and analyzed through correlation analysis of the DNS and the Flow, so that the analysis cost is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of application traffic analysis, and in particular to an application traffic analysis method and system. Background Art

[0002] Existing application traffic analysis is generally performed through DPI (Deep Packet Inspection) technology. However, for backbone networks, the amount of data is huge and the cost of DPI analysis is high. There are few cases in which operators use DPI to analyze backbone network traffic. Another common solution is to collect DPI logs from IDC (Internet Data Center) computer rooms and determine the application associated with the session through the five-tuple information and URL information in the DPI logs. Many DPI logs do not have application domain name information, resulting in the inability to fully determine the specific application even based on the DPI logs. In actual operations, because the amount of DPI log data is very large and there are many IDC computer rooms, it is difficult to collect them in a unified manner. Therefore, this solution lacks operability. Summary of the invention

[0003] In order to solve the above problems existing in the prior art, the present invention provides an application traffic analysis method and system, which identifies and analyzes application traffic by associating and analyzing DNS and Flow, thereby greatly reducing the analysis cost.

[0004] To achieve the above object, the present invention adopts the following technical solutions:

[0005] In one embodiment of the present invention, a method for analyzing application traffic is proposed, the method comprising:

[0006] Determine the application, application address, and application address type to which the DNS request belongs through DNS logs and domain name feature database. Application address types are divided into exclusive and shared types.

[0007] Correlate and analyze the port allocation rules of the client address to determine the port range of Flow and DNS requests;

[0008] Determine the first application Flow according to the application address and the application address type associated with the application end address of the Flow;

[0009] Determine the second application flow by analyzing the flow and DNS request through triple association;

[0010] Determine the third application flow based on the number of DNS requests, request method, and service type;

[0011] Aggregate the first application flow, the second application flow, and the third application flow to obtain traffic statistics information of the application.

[0012] Furthermore, the triplet includes an application address, a client address, and a port range of the client address. If the Flow is consistent with the DNS triplet, it is determined that the application corresponding to the second Flow is the application in the associated DNS request.

[0013] Furthermore, the port range of the client address includes the port range of the client address of Flow and DNS requests. If the client address of Flow and DNS requests is consistent with the client address of AAA, the port range of the client address of AAA is the port range of the client address of Flow and the port range of the client address of DNS requests. Otherwise, the port range of the client address of Flow and DNS requests is 1-65535.

[0014] Furthermore, the application end address of the Flow is associated with the exclusive application address, the Flow is marked with an application identifier, and aggregation is performed according to the application Flow, thereby obtaining the first application Flow.

[0015] Furthermore, the third application Flow analyzes the business type, request method and number of DNS requests of the applications carried by the shared application address in the same time period. The business type, request method and number of DNS requests are used to determine the traffic proportion of different applications carried by the shared application address through different weight coefficients.

[0016] In one embodiment of the present invention, an application traffic analysis system is also proposed, the system comprising:

[0017] The DNS analysis module is used for parsing, cleaning, data identification and statistical analysis of DNS logs. Based on the DNS logs, the application, application address and application address type to which the DNS request belongs are determined. The application address type is divided into exclusive type and shared type. Based on the application address, an application address library is built as the application address cleaning range of Flow.

[0018] AAA analysis module, used for parsing and cleaning AAA logs, and analyzing the port allocation rules of client addresses based on AAA logs;

[0019] Flow analysis module, used for flow analysis, cleaning and port regularization processing;

[0020] A first Flow application analysis module, configured to associate an application end address of a Flow with an application address and an application address type to determine a first application Flow;

[0021] The second Flow application analysis module is used to determine the second application Flow by analyzing the Flow and the DNS request through triple association;

[0022] The third Flow application analysis module is used to determine the third application Flow according to the number of DNS requests, the request method and the service type;

[0023] The application aggregation module is used to aggregate the first flow application, the second flow application and the third flow application according to the aggregation rule to obtain traffic statistics information of the application.

[0024] Furthermore, the first Flow application analysis module is specifically used to:

[0025] The application end address of the Flow is associated with the exclusive application address, the Flow is marked with an application identifier, and aggregation is performed according to the application Flow to obtain the first application Flow.

[0026] Furthermore, the second Flow application analysis module is specifically used to:

[0027] The Flow and DNS request are analyzed based on the triple association. The triple includes the application address, client address and port range of the client address. If the Flow is consistent with the DNS triple, it is determined that the application corresponding to the second Flow is the application in the associated DNS request.

[0028] Furthermore, the port range of the client address includes the port range of the client address of Flow and DNS requests. If the client address of Flow and DNS requests is consistent with the client address of AAA, the port range of the client address of AAA is the port range of the client address of Flow and the port range of the client address of DNS requests. Otherwise, the port range of the client address of Flow and DNS requests is 1-65535.

[0029] Furthermore, the third Flow application analysis module is specifically used for:

[0030] By analyzing the business type, request method and number of DNS requests of the applications carried by the shared application address in the same time period, the business type, request method and number of DNS requests are used to jointly determine the traffic proportion of different applications carried by the shared application address through different weight coefficients.

[0031] In one embodiment of the present invention, a computer device is also proposed, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the aforementioned application traffic analysis method when executing the computer program.

[0032] In one embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a computer program for executing the application traffic analysis method.

[0033] Beneficial effects:

[0034] 1. The present invention associates and analyzes DNS and Flow to identify and analyze application traffic, greatly reducing the analysis cost.

[0035] 2. The present invention analyzes layer by layer based on the specific characteristics of DNS and Flow, thereby reducing the scale of data landing and improving the accuracy of analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic diagram of the application flow analysis method of the present invention;

[0037] Figure 2 is an application traffic analysis architecture diagram of an embodiment of the present invention;

[0038] Figure 3 It is a schematic diagram of the structure of the application flow analysis system of the present invention;

[0039] Figure 4 It is a schematic diagram of the computer device structure of the present invention. DETAILED DESCRIPTION

[0040] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0041] Those skilled in the art will appreciate that the embodiments of the present invention may be implemented as a system, system, device, method or computer program product. Therefore, the present disclosure may be implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0042] According to an implementation manner of the present invention, an application traffic analysis method is proposed, which determines the application, application address and application address type to which the DNS request belongs through DNS logs and domain name feature libraries, and the application address types are divided into exclusive and shared types; the port allocation rules of the client address are analyzed in an associated manner to determine the Flow and the port range of the DNS request; the first application Flow is determined by associating the application end address of the Flow with the application address and the application address type; the second application Flow is determined by triple association analysis of the Flow and the DNS request; the third application Flow is determined according to the number of DNS requests, the request method and the business type; and the first application Flow, the second application Flow and the third application Flow are aggregated to obtain the traffic statistics information of the application.

[0043] The principle and spirit of the present invention are explained in detail below with reference to several representative embodiments of the present invention.

[0044] Figure 1 Schematic diagram of the flow chart of the application flow analysis method of the present invention. Figure 1 As shown, the method includes:

[0045] S1. Determine the application, application address, and application address type to which the DNS request belongs through DNS logs and domain name feature database.

[0046] DNS (Domain Name System) logs include DNS request time, client address, client source port, DNS server address, domain name, address type, CNAME, A / AAAA records, and code.

[0047] The domain name feature library includes domain names, application codes, application names, customer identifiers, and application types. Application types include short videos, live broadcasts, shopping, instant messaging, and news information.

[0048] If the domain name in the DNS log matches the domain name signature database, an application tag is added to the DNS log to indicate that the DNS request is for the application.

[0049] Application address types include exclusive and shared. Exclusive means that an IP address carries only one application, while shared means that an IP address carries multiple applications.

[0050] The application address is constructed into an application address library, which is used to perform preliminary cleaning of Flow.

[0051] According to the exclusive address of the application, a unique address rule base is constructed, including the service province, exclusive address, application, belonging city and belonging province. The service province is the province where the client address of the DNS request is located, and the belonging province is the province where the application address, i.e. the exclusive address, is located.

[0052] The number of DNS requests is aggregated according to the time granularity. The aggregated DNS includes time, domain name, application, CNAME, A / AAAA record, number of requests, request method and province. DNS request methods include real-time requests and scheduled requests.

[0053] S2. Correlate and analyze the port allocation rules of the client address to determine the port range of Flow and DNS requests.

[0054] The port allocation rules of the client address include the province where the client is located, the starting port and range of the client address. By analyzing the AAA (Authentication, Authorization, Accounting) log, a port allocation rule library for the client address is constructed.

[0055] The port allocation rule of the client address is determined by analyzing the AAA log; the AAA log includes the log time, client address, NAT address, port range and user status.

[0056] If the port range in the AAA log is not empty, the external client address (NAT address), starting port, and port allocation range of AAA are recorded. The port allocation range is the end port minus the NAT starting port plus 1. There are generally two types of port allocation ranges: 2048 and 4096. The starting port is the minimum starting port of the address.

[0057] The port range of Flow and DNS requests includes the port range of Flow's client address and the source port range of DNS requests (the port range of the client address). If the client address of Flow and the client address of DNS requests are consistent with the client address of AAA, the port range of AAA's client address is the port range of Flow's client address and the source port range of DNS requests. Otherwise, the port range of Flow's client address and the source port range of DNS requests are 1-65535.

[0058] Flow information includes: device identification, source address, destination address, source port, destination port, protocol, source AS, destination AS, number of bytes, and number of packets.

[0059] The port processing of DNS is similar to that of Flow. The port of its client address is associated with the client address corresponding to AAA, and the port of the DNS client address is converted into a port range.

[0060] S3. Determine the first application Flow according to the application address and the application address type associated with the application end address of the Flow.

[0061] The source address of the Flow is associated with the exclusive address of the application, and the Flow is marked with an application identifier, and aggregation is performed according to the application Flow to obtain the first application Flow.

[0062] The components of application flow include: time, source address prefix, source address, destination address prefix, application identifier, source AS-PATH, destination AS-PATH, number of bytes and number of packets. AS-PATH is determined by matching the BGP routing table.

[0063] S4. Analyze the Flow and DNS request through triple association to determine the second application Flow.

[0064] The triplet includes the source address (application address), the destination address (client address) and the port range (port range of the client address). If the Flow is consistent with the DNS triplet, the application corresponding to the second Flow is determined to be the application in the associated DNS request.

[0065] S5. Determine the third application Flow according to the number of DNS requests, request method and service type.

[0066] The third application Flow analyzes the business type, request method, and number of DNS requests of the applications carried by the shared address in the same time period. The business type, request method, and number of DNS requests are used to determine the traffic proportion of different applications carried by the shared address through different weight coefficients.

[0067] The third application flow is mainly for clients that have not passed the DNS request or clients that have accessed multiple applications at the same time.

[0068] S6. Aggregate the first application Flow, the second application Flow, and the third application Flow to obtain traffic statistics information of the applications.

[0069] The first application flow, the second application flow, and the third application flow are aggregated according to the aggregation rules, and the traffic direction of the application is determined in combination with the city to which the AS belongs.

[0070] Aggregation rules can be aggregated according to different characteristics, such as by province, city, application, time and other dimensions.

[0071] It should be noted that, although the operations of the method of the present invention are described in a specific order in the above embodiments and the accompanying drawings, this does not require or imply that the operations must be performed in the specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.

[0072] In order to explain the above-mentioned application flow analysis method more clearly, a specific embodiment is described below. However, it should be noted that this embodiment is only for better illustrating the present invention and does not constitute an improper limitation to the present invention.

[0073] Example:

[0074] In this embodiment, a certain operator collects DNS logs and AAA data from 31 provinces across the country, and pushes them to the application traffic analysis system respectively. At the same time, it collects the traffic from the metropolitan area network egress and the IDC egress, and forwards the Flow to the application traffic analysis system. Figure 2 shown.

[0075] The implementation steps are as follows:

[0076] S1. Determine the application, application address, and application address type to which the DNS request belongs through DNS logs and domain name feature database.

[0077] In this embodiment, the DNS log is pushed by each province, and the DNS log file carries the timestamp and DNS province information. The DNS (Domain Name System) log includes the DNS request time, client address, client source port, DNS server address, domain name, address type, CNAME, A / AAAA record and code.

[0078] When a user accesses an application, he first needs to access the DNS server, which returns the server address of the application. The application then initiates access to the application based on the returned address.

[0079] The domain name feature library includes domain names, application codes, application names, customer identifiers, and application types. Application types include short videos, live broadcasts, shopping, instant messaging, and news information.

[0080] In specific implementation, applications include TikTok, WeChat, QQ, Alipay and Taobao, etc.

[0081] During specific implementation, the domain name feature library includes domain name information and application types of applications that need to be analyzed.

[0082] If the domain name in the DNS log matches the domain name feature library, an application tag is added to the DNS log to indicate that the client of the DNS request is requesting the application.

[0083] A / AAAA record: application server address, that is, application address. The A record is an IPv4 address and the AAAA record is an IPv6 address.

[0084] The code is the response code of the DNS request. A code of 0 indicates a successful DNS response.

[0085] Analyze the DNS logs, aggregate the application addresses, and determine the applications carried by the application addresses. Application address types include exclusive and shared. Exclusive means that the IP address carries only one application, and shared means that the IP address carries multiple applications. For example, the address 100.100.100.10 carries both TikTok and QQ. In this case, the address 100.100.100.10 is considered a shared address, and the application cannot be directly determined by the address. The client request associated with DNS is required to determine the specific application of Flow.

[0086] The application address is constructed into an application address library, which is used to perform preliminary cleaning of Flow.

[0087] According to the exclusive address of the application, a unique address rule base is constructed, including the service province, exclusive address, application, belonging city and belonging province. The service province is the province where the client address of the DNS request is located, and the belonging province is the province where the application address, i.e. the exclusive address, is located.

[0088] In the specific implementation, DNS requests are cleaned through exclusive addresses, and only DNS request logs of shared addresses and new addresses are retained.

[0089] In specific implementation, the number of DNS requests is aggregated at a time granularity of 5 minutes. The aggregated DNS request information includes: time, domain name, application, CNAME, A / AAAA record, number of requests, request method and province, etc.

[0090] The request method analyzes the DNS requested by the client. If the same client address makes DNS requests to the same domain name multiple times in a row, the DNS request of the application is considered to be a real-time request, otherwise it is a timed request.

[0091] S2. Correlate and analyze the port allocation rules of the client address to determine the port range of Flow and DNS requests.

[0092] The port allocation rules of the client address include the province where the client is located, the starting port and range of the client address. By analyzing the AAA (Authentication, Authorization, Accounting) log, a port allocation rule library for the client address is constructed.

[0093] The port allocation rules of the client address are determined by analyzing the AAA log; the AAA log includes the log time, client private address, NAT address, port range and user status, etc. The port range includes the start port and the end port, such as 1025-3072, 3073-5120. The port range of each client address will be divided into different small segments for different users to use. If the port allocation range is the same, such as 2048, each user can use 2048 ports.

[0094] If the port range in the AAA log is not empty, the external client address (NAT address), starting port, and port allocation range of AAA are recorded. The port allocation range is the NAT end port in the AAA log minus the NAT start port plus 1. There are generally two types of port allocation ranges: 2048 and 4096. The starting port is the minimum starting port of the address.

[0095] The port range of Flow and DNS requests includes the port range of Flow's client address and the source port range of DNS requests (the port range of the client address). If the client address of Flow and the client address of DNS requests are consistent with the client address of AAA, the client address port range of AAA is the port range of Flow's client address and the source port range of DNS requests. Otherwise, the port range of Flow's client address and the source port range of DNS are 1-65535.

[0096] Flow information includes: device identification, source address, destination address, source port, destination port, protocol, source AS, destination AS, number of bytes and number of packets, etc. Flow is divided into upstream and downstream. Upstream means the client accesses the application server, and downstream means the application server responds to the client. For upstream Flow, the client address is the source address of the upstream Flow, and the application address is the destination address of the upstream Flow; for downstream Flow, the client address is the destination address of the downstream Flow, and the application address is the source address of the Flow.

[0097] In specific implementation, take the downstream flow as an example, by comparing the destination address of the flow (for the downstream flow, the destination address of the flow is the client address) with the port allocation rule base of the AAA client address, if the destination address hits the AAA client address, the port allocation range corresponding to the destination address (such as 2048, 4096) is rounded up, if the integer is N, the destination port range of the flow is: the flow start port P0 = the start port of the client address + the port range multiplied by N, the flow end port P1 = the start port of the client address + the port range multiplied by (N+1). If the address of the flow does not hit, the flow start port P0 = 1, the flow end port P1 = 65535. After port processing, the flow becomes the source address, destination address and destination port range (P0-P1), etc.

[0098] The port processing of DNS is similar to that of Flow. Its source port is associated with the client address corresponding to AAA, and the port of the DNS client address is converted into a port range (T0-T1).

[0099] S3. Determine the first application Flow according to the source address of the Flow associated with the application address and the application address type;

[0100] The source address of the Flow is associated with the exclusive address of the application, and the Flow is marked with an application identifier, and aggregation is performed according to the application Flow to obtain the first application Flow.

[0101] The components of application flow include: time, source address prefix, source address, destination address, destination address prefix, application identifier, source AS-PATH, destination AS-PATH, number of bytes and number of packets. AS-PATH is determined by matching the BGP routing table.

[0102] In the specific implementation, you can choose the downstream flow. The downstream flow has a larger flow and is more valuable for analysis. The composition of the downstream flow includes time, source address prefix, source address, application identifier, source AS-PATH, destination AS-PATH, number of bytes, and number of packets.

[0103] The Flow is first cleaned through the application address database, and then associated with the exclusive address for analysis. If the Flow is not associated with the exclusive address, the remaining original Flow is stored in the database. By analyzing the Flow by address type, the data size of the original Flow stored in the database can be greatly reduced.

[0104] S4. Determine the second application Flow by analyzing the Flow and the DNS request through triple association.

[0105] The triplet includes the source address (application address), the destination address (client address) and the port range (port range of the client address). If the Flow is consistent with the triplet of the DNS request, the application corresponding to the second Flow is determined to be the application in the associated DNS request.

[0106] In the specific implementation, taking the following Flow as an example, the second application Flow associates and analyzes the destination address, source address, destination port range of the Flow with the DNS source address, destination address, and source port range. If the three are consistent, it is determined that the application corresponding to the second application Flow is the application in the associated DNS request.

[0107] In specific implementation, the Flow time is used as the basis, and the DNS data before and after can be correlated and analyzed.

[0108] In specific implementation, for the Flow with a shared address, after the application is determined, the session information of the Flow can be recorded, and the Flow can preferentially match the application corresponding to the historical session information.

[0109] S5. Determine the third application Flow according to the number of DNS requests, the request method and the service type.

[0110] The third application Flow analyzes the business type, request method, and number of DNS requests of the applications carried by the shared address in the same time period. The business type, request method, and number of DNS requests are used to determine the traffic proportion of different applications carried by the shared address through different weight coefficients.

[0111] The third application flow is mainly for clients that have not passed the DNS request or clients that have accessed multiple applications at the same time.

[0112] DNS request methods include real-time refresh and scheduled refresh. Real-time refresh is to continuously make DNS requests, obtain the latest application address, and use the latest DNS response address to make application requests. Scheduled refresh is to initiate DNS requests after a certain period of time. Generally, APP and video services use real-time refresh to improve reliability, and news services generally use scheduled refresh.

[0113] The traffic proportion of different applications of the shared address in the same time period = total number of bytes × number of requests of a certain application / total number of requests.

[0114] In specific implementation, the number of requests for the application corresponding to the DNS shared address for 5 minutes is recorded, and the traffic coefficient of the application is determined according to the business type, such as the coefficient of short video is M1, instant messaging is M2, music is M3, and shopping is M4. A shared address D is shared by Douyin and Taobao. During this time period, the downstream traffic of D is T (byte). During this time period, the number of DNS requests for Douyin is C1, and the number of requests for Taobao is C2. The request method of Douyin is real-time refresh, and its coefficient is R1, and that of Taobao is R2. The total number of requests after regularization is A = C1*M1*R1+C2*M4*R2; among which the byte is A1 = C1*M1*R1, and the byte is A2 = C2*M4*R2 for Taobao; then the Douyin traffic of this address is = T*A1 / A.

[0115] When the third application Flow is entered into the database, it will be split into multiple items based on the application information, the difference being the flow information and the application.

[0116] S6. Aggregate the first application Flow, the second application Flow, and the third application Flow to obtain application traffic statistics information.

[0117] The first application flow, the second application flow, and the third application flow are aggregated according to the aggregation rules, and the traffic direction of the application is determined in combination with the city to which the AS belongs.

[0118] Aggregation rules include AS, address prefix, province, application, and customer.

[0119] AS stands for AS-PATH. The AS of each city is different. The attribution information of application traffic can be determined based on the AS information.

[0120] In specific implementation, taking the following Flow as an example, the deployment rules of the application can be determined according to the AS of the source address of the Flow. Combined with the AS of the destination address, the total traffic estimate of each application serving each city or province can be determined.

[0121] Based on the same inventive concept, the present invention also proposes an application traffic analysis system. The implementation of the system can refer to the implementation of the above method, and the repeated parts will not be repeated. The term "module" used below can be a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0122] Figure 3 Schematic diagram of the application flow analysis system of the present invention. Figure 3 As shown, the system includes:

[0123] DNS analysis module 101: DNS resolution, cleaning, data identification and statistical analysis; determine the application, application address and application address type to which the DNS request belongs based on the DNS log. The application address type is divided into exclusive and shared types; build an application address library based on the application address as the application address cleaning range of the Flow. First, read the DNS log content, clean the DNS data, discard the data with a code other than 0, clean the DNS data according to the domain name feature library, discard the data that is not within the feature, and label the DNS data with an application tag if it matches the domain name in the feature library. Analyze the application request method to determine whether it is real-time refresh or scheduled refresh, and aggregate the number of application requests; build an application address library and an exclusive address library based on the application address. Finally, correlate and analyze the AAA data to regularize the port range of DNS.

[0124] AAA analysis module 102: AAA log parsing and cleaning, analyzing the port allocation rules of the client address according to the AAA log. Reading AAA data, discarding the data with empty NAT port range, writing the province, NAT address, starting end and port range of AAA into the database, for the same NAT address and client address, if the starting port is smaller than the starting port in the database, it is updated, that is, the starting port in the database is the minimum port of the address.

[0125] Flow analysis module 103: receives Flow traffic, parses it according to the Flow template, cleans the Flow according to the application address library, and marks the Flow with source AS-PATH and destination AS-PATH, as well as the forwarding device information of the Flow in combination with the BGP routing table. The Flow is associated with and analyzed by the AAA address port library, the client port of the Flow is regularized, and finally the processed Flow is sent to the application analysis module.

[0126] The first Flow application analysis module 104: marks the Flow with an application identifier according to the application end address of the Flow associated with the exclusive address of the application, and aggregates according to the application Flow to obtain the first application Flow.

[0127] The components of application flow include: time, source address prefix, source address, destination address, destination address prefix, application identifier, source AS-PATH, destination AS-PATH, number of bytes and number of packets. AS-PATH is determined by matching the BGP routing table.

[0128] The Flow is first cleaned through the application address library, and then associated with the exclusive address for analysis. If the Flow is not associated with the exclusive address, the remaining Flow is stored in the library.

[0129] The second Flow application analysis module 105: analyzes Flow and DNS according to triple association, where the triple includes application address, client address and port range of client address. If the Flow is consistent with the DNS triple, it is determined that the application corresponding to the second Flow is the application in the associated DNS request.

[0130] The third Flow application analysis module 106: by analyzing the business type, request method and number of DNS requests of the applications carried by the shared address in the same time period, the business type, request method and number of DNS requests are used to jointly determine the traffic proportion of different applications carried by the shared address through different weight coefficients.

[0131] The application aggregation module 107 aggregates the first flow application, the second flow application, and the third flow application according to the aggregation rule.

[0132] Aggregation rules include AS, address prefix, province, application, and customer.

[0133] It should be noted that although several modules of the application traffic analysis system are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules described above can be embodied in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules for embodiment.

[0134] Based on the above invention concept, Figure 4 As shown, the present invention also proposes a computer device 200, including a memory 210, a processor 220, and a computer program 230 stored in the memory 210 and executable on the processor 220. When the processor 220 executes the computer program 230, the aforementioned application traffic analysis method is implemented.

[0135] Based on the aforementioned inventive concept, the present invention further proposes a computer-readable storage medium, which stores a computer program for executing the aforementioned application traffic analysis method.

[0136] The application traffic analysis method and system proposed in the present invention associate and analyze DNS and Flow to identify and analyze application traffic, greatly reducing the analysis cost; according to the specific characteristics of DNS and Flow, layer-by-layer analysis is performed, which reduces the scale of data landed and improves the accuracy of analysis.

[0137] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements contained in the spirit and scope of the attached claims.

[0138] Regarding the limitation of the protection scope of the present invention, those skilled in the art should understand that, based on the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the protection scope of the present invention.

Claims

1. An application traffic analysis method, characterized in that: The method includes: Determine the application, application address, and application address type to which the DNS request belongs through DNS logs and domain name feature database. Application address types are divided into exclusive and shared types. Correlate and analyze the port allocation rules of the client address to determine the port range of Flow and DNS requests; Determine the first application Flow according to the application address and the application address type associated with the application end address of the Flow; Determine the second application flow by analyzing the flow and DNS request through triple association; Determine the third application flow based on the number of DNS requests, request method, and service type; Aggregate the first application flow, the second application flow, and the third application flow to obtain traffic statistics information of the application.

2. The application flow analysis method according to claim 1, characterized in that: The triplet includes the application address, the client address and the port range of the client address. If the Flow is consistent with the DNS triplet, it is determined that the application corresponding to the second Flow is the application in the associated DNS request.

3. The application flow analysis method according to claim 2, characterized in that: The port range of the client address includes the port range of the client address of Flow and DNS requests. If the client address of Flow and DNS requests is consistent with the client address of AAA, the port range of the client address of AAA is the port range of the client address of Flow and the port range of the client address of DNS requests. Otherwise, the port range of the client address of Flow and DNS requests is 1-65535.

4. The application flow analysis method according to claim 1, characterized in that: The application end address of the Flow is associated with the exclusive application address, the Flow is marked with an application identifier, and aggregation is performed according to the application Flow to obtain the first application Flow.

5. The application traffic analysis method according to claim 1, characterized in that: The third application Flow analyzes the business type, request method and number of DNS requests of the applications carried by the shared application address in the same time period. The business type, request method and number of DNS requests are used to determine the traffic proportion of different applications carried by the shared application address through different weight coefficients.

6. An application traffic analysis system, characterized in that: The system includes: The DNS analysis module is used for parsing, cleaning, data identification and statistical analysis of DNS logs. Based on the DNS logs, the application, application address and application address type to which the DNS request belongs are determined. The application address type is divided into exclusive type and shared type. Based on the application address, an application address library is built as the application address cleaning range of Flow. AAA analysis module, used for parsing and cleaning AAA logs, and analyzing the port allocation rules of client addresses based on AAA logs; Flow analysis module, used for flow analysis, cleaning and port regularization processing; A first Flow application analysis module, configured to associate an application end address of a Flow with an application address and an application address type to determine a first application Flow; The second Flow application analysis module is used to determine the second application Flow by analyzing the Flow and the DNS request through triple association; The third Flow application analysis module is used to determine the third application Flow according to the number of DNS requests, the request method and the service type; The application aggregation module is used to aggregate the first flow application, the second flow application and the third flow application according to the aggregation rule to obtain traffic statistics information of the application.

7. The application traffic analysis system according to claim 6, characterized in that: The first Flow application analysis module is specifically used to: The application end address of the Flow is associated with the exclusive application address, the Flow is marked with an application identifier, and aggregation is performed according to the application Flow to obtain the first application Flow.

8. The application traffic analysis system according to claim 6, characterized in that: The second Flow application analysis module is specifically used for: The Flow and DNS request are analyzed based on the triple association. The triple includes the application address, client address and port range of the client address. If the Flow is consistent with the DNS triple, it is determined that the application corresponding to the second Flow is the application in the associated DNS request.

9. The application traffic analysis system according to claim 8, characterized in that: The port range of the client address includes the port range of the client address of Flow and DNS requests. If the client address of Flow and DNS requests is consistent with the client address of AAA, the port range of the client address of AAA is the port range of the client address of Flow and the port range of the client address of DNS requests. Otherwise, the port range of the client address of Flow and DNS requests is 1-65535.

10. The application traffic analysis system according to claim 6, characterized in that: The third Flow application analysis module is specifically used for: By analyzing the business type, request method and number of DNS requests of the applications carried by the shared application address in the same time period, the business type, request method and number of DNS requests are used to jointly determine the traffic proportion of different applications carried by the shared application address through different weight coefficients.

11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 5 is implemented.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method according to any one of claims 1 to 5.