Network traffic detection method and system

Through the analysis of network traffic data packets and the application of the target business priority model, the packet detection and matching process is optimized, solving the problems of low detection efficiency and poor business rule recognition in the existing technology, and achieving more efficient traffic fraud detection. .

CN115134808BActive Publication Date: 2024-10-18CHINA MOBILE GRP GUANGDONG CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110261213.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-10
Publication Date
2024-10-18
Estimated Expiration
2041-03-10

AI Technical Summary

Technical Problem

When the existing technology detects network mobile phone traffic fraud, the detection efficiency is low and the recognition of traffic anti-fraud business rules is poor, and it cannot effectively prevent traffic fraud carried out by forged proxy servers.

Method used

By analyzing network traffic data packets, using the target business priority model to determine business priority, optimizing the packet detection and matching process, and improving anti-fraud detection capabilities, including detection of target IP addresses, target port numbers, and target URL addresses. The model is trained through the BP neural network algorithm, determines the business priority based on weight parameters such as access frequency, average access duration, Internet access period and business traffic value, and performs matching based on the priority.

Benefits of technology

It improves the operating efficiency of the equipment, shortens the number of packet inspections, enhances the detection ability of network traffic fraud, and reduces the equipment load and risk of misoperation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115134808B_ABST
    Figure CN115134808B_ABST
Patent Text Reader

Abstract

The present invention provides a network traffic detection method and system, the method comprising: parsing a network traffic data packet to obtain a target address to be matched of the network traffic data packet; determining a service priority based on a target service priority model; matching the target address to be matched according to the service priority and a preset matching rule to detect the network traffic data packet. The system is used to execute the above method. The network traffic detection method and system provided by the present invention parses the network traffic data packet, and determines the service priority through a target service priority model, optimizes the entire packet detection and matching process, thereby improving the operating efficiency of the device, shortening the number of times the entire device packet is detected, and improving the anti-fraud detection capability by detecting the target IP address, target port number, and target URL address in the network traffic data packet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a network traffic detection method and system. Background Art

[0002] With the popularization of "smart terminals + APP", mobile phones have become an indispensable part of people's daily lives. In recent years, the continuous occurrence of online mobile phone traffic fraud cases has seriously disrupted the normal development of the telecommunications industry.

[0003] A common method of mobile phone traffic fraud on existing networks is to achieve free Internet access by forging a proxy server. Criminals install a customized APP on the mobile terminal and use a proxy server to recombine the three-layer IP address, host address and seven-layer URL, and use the pre-configured free-flow conditions of the content billing of the GGSN / SAEGW device to encapsulate the actual access traffic in the data packet of the content billing URI. When the GGSN / SAEGW performs packet inspection, the fake URI data packet matches the pre-defined free-flow rules and is marked with the free-flow service code, thereby achieving free Internet access traffic and causing traffic charges for the operator.

[0004] In order to solve the above problem of bypassing the operator's content billing URL free traffic, the existing technology solves the method of using fake proxy servers to commit traffic fraud, such as Figure 1 As shown in the figure: The core network equipment turns on the DNS sniffer function, and the GGSN / SAEGW retains a list of layer 3 and layer 7 IP and domain names to form a mapping table of designated host servers and IP addresses. For example, for the URL www.baidu.com, the GGSN / SAEGW regularly sends query requests to the DNS server and obtains the host server address corresponding to this URL, which is 112.80.248.73, etc. Then, the server address mapping list is saved in the GGSN / SAEGW. When a user accesses a service, although the GGSN / SAEGW is configured to access the URL www.baidu.com without traffic, if the destination IP address of the message is not included in the host server address mapping table, it is considered to be a fake server fraud, and the service it accesses will be charged to prevent traffic fraud.

[0005] The existing methods for solving traffic fraud using fake proxy servers have the problems of low detection efficiency and poor recognition of traffic anti-fraud business rules. Summary of the invention

[0006] The network traffic detection method and system provided by the present invention are used to overcome the above-mentioned problems existing in the prior art. By parsing the network traffic data packets and determining the priority of the service through the target service priority model, the entire packet detection and matching process is optimized, thereby improving the operating efficiency of the equipment and shortening the number of packet detections of the entire equipment. By detecting the target IP address, target port number and target URL address in the network traffic data packets, the anti-fraud detection capability is improved.

[0007] The present invention provides a network traffic detection method, comprising:

[0008] Parsing the network traffic data packet to obtain a target address to be matched of the network traffic data packet;

[0009] Determine business priorities based on the target business priority model;

[0010] According to the service priority and the preset matching rule, the target address to be matched is matched to detect the network traffic data packet;

[0011] The target address to be matched includes a target IP address, a target port number and a target URL address.

[0012] According to a network traffic detection method provided by the present invention, the target service priority model is determined in the following manner:

[0013] Input the training samples into the preset service priority model for iterative training, and determine the optimal weight parameter combination of the preset service priority model based on the BP neural network algorithm;

[0014] Determine the target service priority model according to the optimal weight parameter combination and the preset service priority model;

[0015] The training samples include user Internet service call records obtained at preset intervals;

[0016] The user's Internet service call list includes the IP address, port number and URL address of the free flow service;

[0017] The optimal weight parameter combination includes the access frequency weight parameter, average access time weight parameter, Internet access time period weight parameter and service flow value weight parameter corresponding to the preset number of free flow services;

[0018] The preset number of free-flow services are the first preset number of free-flow services selected after arranging the total number of service accesses in the user's Internet call list obtained within a preset period in descending order.

[0019] According to a network traffic detection method provided by the present invention, the training samples are input into a preset service priority model for iterative training, and the optimal weight parameter combination of the preset service priority model is determined based on a BP neural network algorithm, including:

[0020] The training samples are input into the preset business priority model for iterative training, and the initial weight parameter combination is optimized based on the back propagation algorithm until the output error of the preset business priority model is less than the preset value, the training is stopped, and the optimal weight parameter combination is determined based on the optimized weight parameter combination.

[0021] According to a network traffic detection method provided by the present invention, determining the service priority based on the target service priority model includes:

[0022] The service priorities of the first preset number of free-flow services are obtained according to the access frequency weight parameter, the average access duration weight parameter, the Internet access period weight parameter and the service flow value weight parameter.

[0023] According to a network traffic detection method provided by the present invention, matching the target address to be matched according to the service priority and the preset matching rule to detect the network traffic data packet includes:

[0024] Match the target IP address and the target port number with the IP address and port number of the free-flow service with the highest service priority;

[0025] If the match succeeds, determine whether the target URL address exists in the target address to be matched;

[0026] If the target URL address exists, the target URL address is matched with the URL address of the free-flow service with the highest service priority, and after the URL match is passed, a free-flow mark is added to the network traffic data packet;

[0027] If the target URL address does not exist, a free flow mark is added to the network traffic data packet.

[0028] According to a network traffic detection method provided by the present invention, the target address to be matched is matched according to the service priority and the preset matching rule to detect the network traffic data packet, and further includes:

[0029] Match the target IP address and the target port number with the IP address and port number of the free-flow service with the highest service priority. If the match fails, perform URL matching on the target URL address and the URL address of the free-flow service with the highest service priority;

[0030] If the URL matches, the target IP address is mapped and matched with the preset host service address table, and a free flow mark is added to the network traffic data packet after the mapping matches.

[0031] According to a network traffic detection method provided by the present invention, the URL matching of the target URL address with the URL address of the free-flow service with the highest service priority further includes:

[0032] If the URL matching fails, the target address to be matched is matched with the IP addresses, port numbers and URL addresses of the remaining free-flow services in turn according to the service priority and the preset matching rule.

[0033] The present invention also provides a network traffic detection system, comprising: a target address acquisition module, a service priority determination module and a network traffic detection module;

[0034] The target address acquisition module is used to parse the network traffic data packet to obtain the target address to be matched of the network traffic data packet;

[0035] The service priority determination module is used to determine the service priority based on the target service priority model;

[0036] The network traffic detection module is used to match the target address to be matched according to the service priority and the preset matching rule, so as to detect the network traffic data packet;

[0037] The target address to be matched includes a target IP address, a target port number and a target URL address.

[0038] 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, the steps of any of the above-mentioned network traffic detection methods are implemented.

[0039] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the network traffic detection methods described above are implemented.

[0040] The network traffic detection method and system provided by the present invention optimize the entire packet detection and matching process by parsing network traffic data packets and determining the priority of services through a target service priority model, thereby improving the operating efficiency of the device and shortening the number of packet detections of the entire device. By detecting the target IP address, target port number and target URL address in the network traffic data packet, the anti-fraud detection capability is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] 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.

[0042] Figure 1 It is a flow chart of a network traffic detection method provided by the prior art;

[0043] Figure 2 This is one of the flow charts of the network traffic detection method provided by the present invention;

[0044] Figure 3 This is the second flow chart of the network traffic detection method provided by the present invention;

[0045] Figure 4 It is a structural schematic diagram of the network traffic detection system provided by the present invention;

[0046] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0047] 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.

[0048] China Mobile launched a business model of monthly traffic packages or free traffic in 2007, that is, differentiated management based on the services. The principle of implementation is to enable content billing on GGSN / SAEGW, that is, through the user data packet inspection (DPI) mechanism, pre-configure the three-layer IP address and URL used by the specified service in GGSN / SAEGW in advance. When the data message passes through the device, it is unpacked and compared. If the preset content billing rules are hit, the corresponding service code is marked in the call bill, and the billing department performs free traffic operations based on the service code in the call bill.

[0049] The common method of current mobile phone traffic fraud is to achieve free Internet access through fake proxy servers. The main reasons for mobile phone network traffic fraud are as follows:

[0050] 1. The requirements for rule matching in existing content billing specifications are relatively simple and do not take anti-fraud into consideration;

[0051] 2. There is no specific regulation on the synthesis method of key content billing matching URL, but the http protocol encapsulation is flexible, the packet header has multiple optional fields, and the service has various different assembly methods. The corresponding GGSN / SAEGW can only do the largest range of matching.

[0052] The existing technology is based on the network traffic detection method provided by GGSN / SAEGW, such as Figure 1 As shown, the DNS sniffer's three-layer rules use domain name format for identification. Specifically, after all services with three- and four-layer addresses (IP address + port number) are detected, the DNS sniffer is detected. Because the seven-layer URL address set of all services is configured in one table, the process "whether the three-layer address is in the host server address table corresponding to the seven-layer URL DNS sniffer" is a step, so in the traditional approach, a business flow address needs to be compared with a host server address table resolved from 16129 (127*127) URLs at most.

[0053] The existing method of detecting network traffic data packets based on DNS sniffer has the following disadvantages:

[0054] 1. Low detection efficiency: All free traffic URLs are uniformly defined in the same URL set. During the retrieval process, they are searched one by one from top to bottom. For low-priority services, all previous URLs that are not related to the service need to be searched again, resulting in low retrieval efficiency and poor service access experience.

[0055] 2. Poor recognition of business rules: The current pure seven-layer URL rule framework does not configure rules according to business. All host server address mapping tables are placed in the same set, resulting in poor recognition of each business rule.

[0056] 3. Complex maintenance of bureau data: There is no independent business module. When the rule priority needs to be adjusted, other defined businesses need to be deleted. The deletion and addition instructions and processes are cumbersome and prone to misoperation. In view of several shortcomings of the current equipment DNS sniffer configuration, the present invention provides a network traffic detection method, which mainly proposes a network traffic anti-fraud detection method based on user behavior business flow and reasonable allocation of business priority, specifically:

[0057] Figure 2 It is one of the flow charts of the network traffic detection method provided by the present invention, such as Figure 2 As shown, the method includes:

[0058] S1. Parse the network traffic data packet to obtain the target address to be matched of the network traffic data packet;

[0059] S2. Determine the service priority based on the target service priority model;

[0060] S3. Match the target address to be matched according to the service priority and the preset matching rules to detect the network traffic data packet;

[0061] The target address to be matched includes the target IP address, the target port number and the target URL address.

[0062] It should be noted that the execution subject of the above method may be a computer device.

[0063] The present invention utilizes a multi-dimensional business algorithm to construct a target business priority model, thereby determining business priorities, dynamically changing the effective position of a DNS sniffer, embedding the DNS sniffer into the matching process of each business data stream, and changing the original DNS sniffer configuration of a general and redundant matching mode.

[0064] Optionally, the user network traffic data packet is parsed to obtain the target IP address, target port number and target URL address of the service access in the network traffic data packet;

[0065] A target service priority model is constructed based on a multi-dimensional service algorithm, and the service priority is determined based on the target priority model. According to preset matching rules and service priority order, the target IP address, target port number and target URL address of the service access in the network traffic data packet are matched with the IP address, port number and URL address of the service flow (service 1 to service n, n is the total number of free-flow services in the service flow) in the target service priority model to detect the user's network traffic data packet.

[0066] The network traffic detection method provided by the present invention optimizes the entire packet detection and matching process by parsing network traffic data packets and determining the priority of services through a target service priority model, thereby improving the operating efficiency of the device and shortening the number of packet detections of the entire device. By detecting the target IP address, target port number and target URL address in the network traffic data packet, the anti-fraud detection capability is improved.

[0067] Further, in one embodiment, the target service priority model in step S2 is determined in the following manner:

[0068] S21, inputting the training samples into the preset service priority model for iterative training, and determining the optimal weight parameter combination of the preset service priority model based on the BP neural network algorithm;

[0069] S22, determining a target service priority model according to an optimal weight parameter combination and a preset service priority model;

[0070] The training samples include user Internet service call records obtained at preset intervals;

[0071] The user's Internet service call list includes the IP address, port number and URL address of the free traffic service;

[0072] The optimal weight parameter combination includes the access frequency weight parameter, the average access time weight parameter, the Internet access time weight parameter and the service flow value weight parameter corresponding to a preset number of free flow services;

[0073] The preset number of free-flow services are the first preset number of free-flow services selected after arranging the total number of service accesses in the user's Internet call records obtained within a preset period in descending order.

[0074] Optionally, the user Internet service call records obtained at preset intervals are used as training samples and input into a preset service priority model for iterative training, and a target service priority model based on multi-dimensional service priority evaluation of user behavior is established through a BP neural network algorithm.

[0075] By collecting mobile user Internet service call records every preset period T (the call record content includes Internet access time period, service code, service traffic, service access frequency, city, user number and other information), a target service priority model is established based on user behavior characteristics, and attribute characteristics of different dimensions are used as indicator variables. The total number of service accesses in the user Internet call records obtained within the preset period T are arranged in descending order, and the websites of a preset number of free-flow services (such as TOP100) before the total number of service accesses within the preset period T and their access frequencies, average access durations, Internet access time periods, and service traffic values ​​are extracted. The weight parameters of each indicator attribute of the target priority model (the access frequency, average access duration, Internet access time period and service traffic value corresponding to a preset number of free-flow services) are trained through the BP neural network algorithm, and the weight parameters of each indicator attribute are adaptively adjusted optimally according to the TOP100 ranking to obtain the optimal weight parameter combination.

[0076] According to the general characteristics of users' Internet services and the data information that can be provided by user call records, the following data samples are collected as indicator attributes of the multidimensional algorithm:

[0077] By collecting the time points when users use a certain service, specifically, according to the equipment load, there are idle time and busy time, analyzing the time points when each service appears, and counting which services appear more frequently during busy time and idle time, the information on the online time period when the user accesses the service is obtained.

[0078] By collecting the frequency of users using a certain service, the frequency of service codes appearing in the user's online service call list is used to obtain the online frequency of users accessing services. The more frequent the user accesses, the more times the device performs DPI packet detection, which has a greater impact on the device load.

[0079] The average access time of users accessing a service is obtained by collecting the average time the users use a service. The longer the user access time, the more times the device performs DPI packet detection.

[0080] The service flow value of the user's service access is obtained by collecting the size of the data packets forwarded by the GGSN / SAEGW during a certain period of time. The larger the service flow, the greater the load on the equipment.

[0081] The BP neural network algorithm is a supervised learning algorithm. Its main idea is to input training samples, use the back propagation algorithm to repeatedly adjust and train the weights and deviations of the network, so that the output vector is as close as possible to the expected vector. When the error sum of the squares of the network output layer is less than the specified error, the training is completed, and the weights and deviations of the network are saved. The network traffic detection method provided by the present invention identifies the service priority based on the four dimensions of free-flow service access frequency, service traffic value, average access time and Internet access time period, which is different from using a single attribute to define the priority, optimizes the matching order, and reduces the equipment load.

[0082] Furthermore, in one embodiment, step S21 may specifically include:

[0083] S211. Input the training samples into the preset business priority model for iterative training, optimize the initial weight parameter combination based on the back propagation algorithm, and stop the training until the output error of the preset business priority model is less than the preset value, and determine the optimal weight parameter combination based on the optimized weight parameter combination.

[0084] Optionally, in step 2, weight parameter initialization, randomly assign each connection weight w, v and threshold θ in the network j , r t .

[0085] Step 2: Calculate the output of each unit in the hidden layer and output layer based on the given input-output mode:

[0086]

[0087]

[0088] Where: a i is the actual input of the i-th neuron in the hidden layer, b j is the actual output of the jth neuron in the hidden layer, at is the actual input of the tth neuron in the output layer, c t is the actual output of the tth neuron in the output layer, w ij is the connection weight from the input layer to the hidden layer, v jt is the connection weight from the hidden layer to the output layer, n is the number of hidden layers, and p is the number of output layers.

[0089]

[0090]

[0091] Where: is the correction error of the output layer, is the correction error of the hidden layer, is the output layer sample.

[0092] Step 3: Calculate the new connection weight v′ jt , w′ ij , the calculation formula is as follows:

[0093]

[0094]

[0095] Wherein, α, β are learning coefficients, and 0<α<1, 0<β<1.

[0096] Step 4. Select the next input mode and repeat steps 2-3 to repeatedly train to optimize the initial weight parameter combination until the output error of the preset business priority model (the output error of the BP neural network) is less than the preset value, then end the training and determine the optimal weight parameter combination based on the optimized weight parameter combination.

[0097] Optionally, after the training is completed, an optimal weight parameter combination is formed. In the process of applying the target business priority model to determine the business priority in actual scenarios, the optimal weight parameter combination can also be revised. Specifically, the fit of the target business priority model is evaluated at a certain time period (such as every month), and the optimal weight parameter combination of the target business priority model is revised and optimized.

[0098] The network traffic detection method provided by the present invention optimizes the initial weight parameter combination based on the back propagation algorithm to determine the optimal weight parameter combination, thereby laying a foundation for subsequently determining the target business priority model based on the optimal weight parameter combination and realizing differentiated matching of business priorities.

[0099] Furthermore, in one embodiment, step S2 may further specifically include:

[0100] S23. Obtain the service priorities of a preset number of free-flow services according to the access frequency weight parameter, the average access time weight parameter, the Internet access period weight parameter and the service flow value weight parameter.

[0101] Optionally, according to the above method, the access frequency weight parameter, the average access time weight parameter, the Internet access time period weight parameter and the service flow value weight parameter are obtained as shown in Table 1:

[0102] Table 1:

[0103] Indicator properties Weight Parameters Visit frequency 29.46% Business flow value 38.55% Average visit duration 25% Internet access time 6.99%

[0104] The business flow address (including IP address, port number and URL address) of the free-flow service is input into the target priority business model as the data source, and the business priority of the first preset number of free-flow services is determined according to the optimal weight parameter combination (such as the access frequency weight parameter, average access time weight parameter, Internet access time period weight parameter and business traffic value weight parameter in Table 1).

[0105] The network traffic detection method provided by the present invention obtains the optimal weight parameter combination of the target service priority model through training, divides the service flow according to the service priority, has a clear logical architecture, and when the matching order needs to be adjusted, only the priority of the corresponding preset number of free-flow services needs to be adjusted, so that deleting and adding free-flow service instructions in the original matching order is relatively concise and easy to operate.

[0106] Furthermore, in one embodiment, step S3 may specifically include:

[0107] S31, matching the target IP address and target port number with the IP address and port number of the free-flow service with the highest service priority;

[0108] S32: If the match succeeds, determine whether the target URL address exists in the target address to be matched;

[0109] S33. If the target URL address exists, the target URL address is matched with the URL address of the free-flow service with the highest service priority, and after the URL match is passed, a free-flow identifier is added to the network traffic data packet;

[0110] S34. If the target URL address does not exist, a free flow mark is added to the network traffic data packet.

[0111] The network traffic detection method provided by the present invention embeds the effective position of the DNS sniffer into each business flow, directly moves the items of the corresponding business from the three-layer rule of the DNS sniffer to the three-layer rule of the business itself, and changes the seven-layer rule set called by each corresponding item from the seven-layer rule set of the DNS sniffer to the seven-layer rule set of the business itself.

[0112] Optionally, the network traffic detection method provided by the present invention embeds the effective position of the DNS sniffer into each service flow, directly moves the entry of the corresponding service from the matching rule of the DNS sniffer to the matching rule of the service itself, and specifically matches the target IP address and target port number with the IP address and port number of the free flow service with the highest service priority;

[0113] If the match succeeds, determine whether the target URL address exists in the target address to be matched;

[0114] If the target URL address exists, the target URL address is matched with the URL address of the free-flow service with the highest service priority, and after the URL match is passed, a free-flow mark is added to the network traffic data packet;

[0115] If the target URL address does not exist, a free flow mark is added to the network traffic data packet.

[0116] The network traffic detection method provided by the present invention solves the problem that when the DNS sniffer is used to detect network traffic data packets in the prior art, all free-flow URLs need to be uniformly defined in the same URL set, and the retrieval process is from top to bottom, and one by one, for low-priority services, all previous URLs unrelated to the service need to be retrieved, resulting in low retrieval efficiency and poor service access experience.

[0117] Furthermore, in one embodiment, step S3 may further specifically include:

[0118] S35, matching the target IP address and the target port number with the IP address and the port number of the free-flow service with the highest service priority, if the match fails, matching the target URL address with the URL address of the free-flow service with the highest service priority;

[0119] If the URL matches, the target IP address is mapped and matched with the preset host service address table, and a free flow mark is added to the network traffic data packet after the mapping matches.

[0120] Optionally, the target IP address and the target port number are matched with the IP address and the port number of the free-flow service with the highest service priority. If the match fails, the host server address parsed by the DNS sniffer of the seven-layer URL set of this service is started to be compared. Specifically, the target URL address is matched with the URL address of the free-flow service with the highest service priority.

[0121] If the URL matches, the target IP address is mapped and matched with the preset host service address table, and a free flow mark is added to the network traffic data packet after the mapping matches.

[0122] The network traffic detection method provided by the present invention compares and matches a business flow address with a host server address table parsed from 127 URLs at most, and the number of comparison matches is directly reduced from a maximum of tens of thousands to a maximum of more than one hundred, and the number of matches is greatly reduced, thereby reducing equipment overhead and improving detection effect.

[0123] Furthermore, in one embodiment, step S35 may further specifically include:

[0124] S351. If the URL matching fails, the target address to be matched is matched with the IP addresses, port numbers and URL addresses of the remaining free-flow services in turn according to the service priority and preset matching rules.

[0125] Optionally, if the target URL address is matched with the URL address of the free-flow service (service 1) with the highest service priority, and the URL match fails, the target address to be matched (including the target IP address, target port number and target URL address) is matched with the IP addresses, port numbers and URL addresses of the remaining free-flow services (services 2-service n) in turn according to the above service priority and preset matching rules, such as Figure 3 shown.

[0126] The network traffic detection method provided by the present invention enables high-priority services to be matched in advance based on the service priority attributes of free-flow services, greatly reduces the number of retrieval items, improves the recognition efficiency of packet detection, and reduces equipment load.

[0127] The network traffic detection system provided by the present invention is described below. The network traffic detection system described below and the network traffic detection method described above can be referenced to each other.

[0128] Figure 4 It is a structural diagram of the network flow detection system provided by the present invention. Figure 4As shown, it includes: a target address acquisition module 410, a service priority determination module 411 and a network traffic detection module 412; the target address acquisition module 410 is used to parse the network traffic data packet to obtain the target address to be matched of the network traffic data packet;

[0129] A service priority determination module 411, configured to determine service priorities based on a target service priority model;

[0130] The network traffic detection module 412 is used to match the target address to be matched according to the service priority and the preset matching rule to detect the network traffic data packet;

[0131] The target address to be matched includes the target IP address, the target port number and the target URL address.

[0132] The network traffic detection system provided by the present invention optimizes the entire packet detection and matching process by parsing network traffic data packets and determining the priority of services through a target service priority model, thereby improving the operating efficiency of the device and shortening the number of packet detections of the entire device. By detecting the target IP address, target port number and target URL address in the network traffic data packet, the anti-fraud detection capability is improved.

[0133] Figure 5 is a schematic diagram of the structure of an electronic device provided by the present invention, such as Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 511, a memory 512 and a bus 513, wherein the processor 510, the communication interface 511 and the memory 512 communicate with each other through the bus 513. The processor 510 may call the logic instructions in the memory 512 to execute the following method:

[0134] Parse the network traffic data packet to obtain the target address to be matched of the network traffic data packet;

[0135] Determine business priorities based on the target business priority model;

[0136] According to the business priority and preset matching rules, the target address to be matched is matched to detect the network traffic data packets;

[0137] The target address to be matched includes the target IP address, the target port number and the target URL address.

[0138] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when 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, which is stored in a storage medium and includes several instructions for enabling a computer power screen (which can be a personal computer, a server, or a network power screen, 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: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0139] Furthermore, the present invention discloses a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute the network traffic detection method provided by the above-mentioned method embodiments, for example, comprising:

[0140] Parse the network traffic data packet to obtain the target address to be matched of the network traffic data packet;

[0141] Determine business priorities based on the target business priority model;

[0142] According to the business priority and preset matching rules, the target address to be matched is matched to detect the network traffic data packets;

[0143] The target address to be matched includes the target IP address, the target port number and the target URL address.

[0144] On the other hand, 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 network traffic detection method provided in the above embodiments, for example, including:

[0145] Parse the network traffic data packet to obtain the target address to be matched of the network traffic data packet;

[0146] Determine business priorities based on the target business priority model;

[0147] According to the business priority and preset matching rules, the target address to be matched is matched to detect the network traffic data packets;

[0148] The target address to be matched includes the target IP address, the target port number and the target URL address.

[0149] The system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown 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 solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0150] 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 power screen (which can be a personal computer, a server, or a network power screen, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0151] 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. A network traffic detection method, characterized in that: include: Parsing the network traffic data packet to obtain a target address to be matched of the network traffic data packet; Determine business priorities based on the target business priority model; The target service priority model is determined in the following manner: Input the training samples into the preset service priority model for iterative training, and determine the optimal weight parameter combination of the preset service priority model based on the BP neural network algorithm; Determine the target service priority model according to the optimal weight parameter combination and the preset service priority model; The training samples include user Internet service call records obtained at preset intervals; The user's Internet service call list includes the IP address, port number and URL address of the free flow service; The optimal weight parameter combination includes the access frequency weight parameter, the average access time weight parameter, the Internet access time weight parameter and the service flow value weight parameter corresponding to a preset number of free flow services; The preset number of free-flow services are the first preset number of free-flow services selected after the total number of service accesses in the Internet call records of the user obtained within a preset period are arranged in descending order; The determining of the service priority based on the target service priority model includes: Obtaining the service priorities of the first preset number of free-flow services according to the access frequency weight parameter, the average access duration weight parameter, the Internet access period weight parameter and the service flow value weight parameter; According to the service priority and the preset matching rule, the target address to be matched is matched to detect the network traffic data packet; The target address to be matched includes a target IP address, a target port number and a target URL address.

2. The network traffic detection method according to claim 1, characterized in that: The step of inputting the training samples into a preset service priority model for iterative training and determining the optimal weight parameter combination of the preset service priority model based on a BP neural network algorithm includes: The training samples are input into the preset business priority model for iterative training, and the initial weight parameter combination is optimized based on the back propagation algorithm until the output error of the preset business priority model is less than the preset value, the training is stopped, and the optimal weight parameter combination is determined based on the optimized weight parameter combination.

3. The network traffic detection method according to claim 1, characterized in that: The matching of the target address to be matched according to the service priority and the preset matching rule to detect the network traffic data packet includes: Match the target IP address and the target port number with the IP address and port number of the free-flow service with the highest service priority; If the match succeeds, determine whether the target URL address exists in the target address to be matched; If the target URL address exists, the target URL address is matched with the URL address of the free-flow service with the highest service priority, and after the URL match is passed, a free-flow mark is added to the network traffic data packet; If the target URL address does not exist, a free flow mark is added to the network traffic data packet.

4. The network traffic detection method according to claim 3, characterized in that: The method of matching the target address to be matched according to the service priority and the preset matching rule to detect the network traffic data packet also includes: Match the target IP address and the target port number with the IP address and port number of the free-flow service with the highest service priority. If the match fails, perform URL matching on the target URL address and the URL address of the free-flow service with the highest service priority; If the URL matches, the target IP address is mapped and matched with the preset host service address table, and a free flow mark is added to the network traffic data packet after the mapping matches.

5. The network traffic detection method according to claim 4, characterized in that: The URL matching of the target URL address with the URL address of the free-flow service with the highest service priority further includes: If the URL matching fails, the target address to be matched is matched with the IP addresses, port numbers and URL addresses of the remaining free-flow services in turn according to the service priority and the preset matching rule.

6. A network traffic detection system, characterized in that: include: Target address acquisition module, service priority determination module and network traffic detection module; The target address acquisition module is used to parse the network traffic data packet to obtain the target address to be matched of the network traffic data packet; The service priority determination module is used to determine the service priority based on the target service priority model; The target service priority model is determined in the following manner: Input the training samples into the preset service priority model for iterative training, and determine the optimal weight parameter combination of the preset service priority model based on the BP neural network algorithm; Determine the target service priority model according to the optimal weight parameter combination and the preset service priority model; The training samples include user Internet service call records obtained at preset intervals; The user's Internet service call list includes the IP address, port number and URL address of the free flow service; The optimal weight parameter combination includes the access frequency weight parameter, the average access time weight parameter, the Internet access time weight parameter and the service flow value weight parameter corresponding to a preset number of free flow services; The preset number of free-flow services are the first preset number of free-flow services selected after the total number of service accesses in the Internet call records of the user obtained within a preset period are arranged in descending order; The determining of the service priority based on the target service priority model includes: Obtaining the service priorities of the first preset number of free-flow services according to the access frequency weight parameter, the average access duration weight parameter, the Internet access period weight parameter and the service flow value weight parameter; The network traffic detection module is used to match the target address to be matched according to the service priority and the preset matching rule, so as to detect the network traffic data packet; The target address to be matched includes a target IP address, a target port number and a target URL address.

7. An electronic 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 steps of the network traffic detection method according to any one of claims 1 to 5 are implemented.

8. 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 steps of the network traffic detection method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Using a machine learning classifier to assign a data retention priority for network forensics and retrospective detection

    US20170374090A1

  • System and Method for Detecting Fraudulent Internet Traffic

    US20180075478A1