A method, system and medium for intelligent identification and classification of TTL values based on IP protocol
Through the intelligent identification and classification method based on the TTL value of the IP protocol, the problem of difficult identification of IP address ownership in the enterprise's internal network is solved, accurate monitoring of network traffic and effective management of data security are achieved, and the accuracy of network management is improved.
Patent Information
- Application Number
- CN202410558290.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-08
AI Technical Summary
Existing technology is difficult to accurately identify and classify IP address ownership in enterprise internal network traffic, making data security monitoring difficult to implement, especially when IPv4 addresses have been allocated and the private network segment is used irregularly.
Using an intelligent identification and classification method based on the IP protocol TTL value, by obtaining environmental traffic data, using the change point detection algorithm to calculate the critical value in the TTL data, combined with the UA field of the HTTP protocol request body for iterative judgment, the internal and external network access status is generated. Output the intranet IP list for analysis of network structure ownership.
It achieves accurate identification and classification of IP addresses, improves the accuracy of network management and data security monitoring, is completely independent of IP address allocation conventions, and enhances the accuracy of network structure division.
Smart Images

Figure CN118138380B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network traffic analysis, and in particular to a method, system and medium for intelligent identification and classification of TTL values based on IP protocol. Background Art
[0002] With the advancement and popularization of digital construction, the network structure of enterprises or certain regions has become more complex, and their internal systems are difficult to manage and their data security is difficult to guarantee. In order to monitor the operation of internal systems and their related data risks, network administrators or relevant regulatory departments and systems need to divide the IP areas in network traffic, mainly to distinguish whether they are areas under their management.
[0003] For the internal network of a department, enterprise or other area, it is usually necessary to monitor and audit its Internet data. There are different monitoring models and methods for different flows, especially for the monitoring of internal system traffic, to prevent the leakage of confidential data or sensitive data or other network and data security risks. One of the prerequisites for this type of detection is to distinguish the flow direction of the managed network traffic, and distinguish the IP range of the internal system and users, as well as the range of the external network IP. The necessity of this demand mainly comes from the following three aspects:
[0004] (1) The use of IPv4 private network segments is not a hard requirement, but a usage convention. In actual usage scenarios, many enterprises or regions do not allocate IP addresses for their internal systems according to this convention;
[0005] (2) Public IPv4 addresses have been exhausted. Since the global public IPv4 addresses have been exhausted and the IPv6 protocol has yet to be popularized, many operators and enterprises around the world will use NAT and other technical means to solve this problem. This also means that IP addresses in a certain area are no longer limited to the range divided by the private network segment;
[0006] (3) It is impossible to accurately determine the scope of the managed system based solely on the private network segment. That is, the actual internal system IP address segment may only use part of the private network segment. However, if only the private network segment is used for judgment, it is impossible to monitor the changes in the internal network structure and the actual situation.
[0007] For example, a server device identification method with publication number CN113992631A provides a method for identifying servers in network management that does not rely on manual registration and identification, and avoids the difficulty in finding servers that are privately built in the network, reinstalled, or assigned new network addresses. However, it does not involve the ownership of the identified server, and the additional monitoring requirements brought about by its ownership. Summary of the invention
[0008] The present invention solves the problem of irregular use of IP addresses during network access by terminals or servers within an enterprise or a certain range of environments, and proposes an intelligent identification and classification method, system and medium based on the TTL value of the IP protocol. The method of the present invention can accurately identify and classify IP addresses, and provide a certain monitoring dimension for the internal network environment management and data security monitoring and governance of the enterprise, that is, whether the IP address belongs to the enterprise or the scope of its jurisdiction.
[0009] In order to achieve the above object, the present invention adopts the following technical solution: a method for intelligent identification and classification of TTL values based on IP protocol, comprising the following steps:
[0010] Obtain environmental flow data and use it as sample data;
[0011] The TTL data in the sample data is processed, and the critical value in the TTL data is calculated using the change point detection algorithm;
[0012] The sample data is judged according to the critical value to obtain the internal and external network access situation. For the sample data that cannot be judged, the internal and external network access situation is obtained by judging whether one of its source end or destination end is within the scope of the internal network;
[0013] Generate an intranet IP list based on intranet and extranet access conditions;
[0014] Analyze the traffic according to the intranet IP list, determine its network structure affiliation, and add corresponding information.
[0015] In this technical solution, firstly, a sample is taken to obtain environmental flow data to obtain sample data, and then the sample data is analyzed and judged, and finally the classification and judgment basis of the network architecture is obtained; it mainly involves data cleaning, calculation of critical values in TTL data, judgment of sample data based on critical values, and output of the intranet IP list; the flow is analyzed and judged based on the intranet IP list, and the data after the final judgment is transmitted to the corresponding data security or network management system for monitoring and analysis.
[0016] The present invention is further configured as follows: the step of determining the sample data according to the critical value to obtain the internal and external network access situation includes:
[0017] In the interval corresponding to the critical value, if the TTL value of the sample data is greater than the critical value data, it is determined to be an intranet-intranet access mode; if the TTL value of the sample data is less than the critical value data, it is determined to be an intranet-extranet access mode or an extranet-intranet access mode;
[0018] Combine the mask to output the intranet IP set and the Internet IP set.
[0019] In the present technical solution, after the critical value of TTL is obtained through the corresponding substation detection algorithm, the TTL data is classified according to the critical value, mainly divided into the above-mentioned intranet-intranet access mode, intranet-extranet (extranet-intranet) access mode and sample data sets that cannot be judged; for the sample data that can be judged, that is, the sample data determined to be the intranet-intranet access mode and the intranet-extranet (extranet-intranet) access mode, it can be combined with the mask to output the corresponding intranet IP set and the Internet IP set.
[0020] The present invention is further configured as follows: the obtaining of the intranet and intranet access conditions by judging whether one of the source end or the destination end is within the intranet range comprises:
[0021] The sample data set that cannot be determined is associated with the HTTP layer data, and the operating system of the source end is determined according to the UA field of the HTTP protocol request body, and then the access type is determined according to its TTL initial value;
[0022] For non-HTTP protocol sessions, the obtained internal and external network access conditions are used to perform iterative judgment.
[0023] In this technical solution, for data sets that cannot be judged using the TLL critical value, the UA field of the HTTP protocol request body and the known IP list are used to perform auxiliary iterative judgment.
[0024] The present invention is further configured as follows: the step of obtaining environmental flow data and using it as sample data includes:
[0025] Through deep traffic analysis and restoration technology, network session traffic data of relevant network environments is obtained, and the fields to be used are restored and standardized.
[0026] In this technical solution, some fields in the above-mentioned environmental traffic data are restored, such as the source address (srcIp), destination address (dstIp), source port (srcPort), destination port (dstPort) and lifetime (TTL).
[0027] The present invention is further configured as follows: the step of using a change point detection algorithm to calculate a critical value in TTL data includes:
[0028] The Bayesian change point detection algorithm is used to calculate the set formed by the TTL data, determine the change point positions in the TTL data, and use these change point positions as the critical values in the TTL data.
[0029] In this technical solution, the Bayesian change point detection algorithm is a method for discovering change points in time series. Based on the theory of Bayesian statistics, it finds the locations where sudden changes occur in the data sequence. These changes may represent different data patterns or behaviors, and ultimately determines the change point locations of the sample data (i.e., the TTL value dividing line locations).
[0030] The present invention is further configured as follows: the processing of the TTL data in the sample data includes:
[0031] De-directionalize the source and destination of TTL data.
[0032] In this technical solution, the source and destination of the data are de-oriented, that is, the source and destination are no longer distinguished.
[0033] The present invention is further configured as follows: for non-HTTP protocol sessions, the obtained internal and external network access conditions are used to perform iterative judgment, including:
[0034] When the TTL value interval is [a,b], and there is a critical value c1 in the interval, the access with the TTL value in [c1,b] is judged as intranet-intranet access mode, and its source and destination are both intranet;
[0035] The access with TTL value [a,c1] is judged as intranet-intranet access mode, but the direction cannot be determined. The direction is determined based on the obtained intranet and intranet access conditions.
[0036] In this technical solution, the calculation is performed repeatedly until no new results are generated.
[0037] The present invention is further configured as follows: the step of determining the direction based on the obtained internal and external network access conditions includes:
[0038] If the source end belongs to the intranet IP, the corresponding destination end is determined to be the external network; if the source end belongs to the external network IP, the corresponding destination end is determined to be the intranet.
[0039] In this technical solution, the obtained internal and external network access conditions are the internal and external network access conditions that have been obtained through judgment.
[0040] A system for intelligent identification and classification based on TTL values of IP protocols, using the above-mentioned method for intelligent identification and classification based on TTL values of IP protocols, comprising:
[0041] The flow restoration module obtains environmental flow data as sample data and restores related fields;
[0042] The network architecture analysis module analyzes and determines the sample data, and finally obtains the classification and determination basis of the network architecture;
[0043] The network architecture identification module uses the results of the network architecture analysis module as the basis for determining real-time traffic data, analyzes the traffic, determines its network structure affiliation, and adds corresponding information.
[0044] In this technical solution, the traffic restoration module is connected to the network architecture analysis module, and the network architecture analysis module is connected to the network architecture identification module, and the three together execute the above-mentioned step process of intelligent identification and classification based on IP protocol TTL value.
[0045] A medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for intelligent identification and classification of TTL values based on the IP protocol are implemented.
[0046] In the present technical solution, when the computer program is running, the content of the above method can be executed.
[0047] The present invention can bring the following beneficial effects:
[0048] 1. The present invention mines this type of information through traffic data and corresponding algorithms, providing more convenient and accurate device information for network managers or data review systems;
[0049] 2. The present invention determines and divides the managed traffic IP according to the traffic data characteristics, which is completely independent of the above conventional information, thereby improving the accuracy of the network structure division information. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 The present invention is a schematic diagram of the overall analysis process of an intelligent identification and classification system based on IP protocol TTL values.
[0051] Figure 2 The present invention is a schematic diagram of the analysis flow of a network architecture analysis module based on an IP protocol TTL value intelligent identification and classification system. DETAILED DESCRIPTION
[0052] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation method described herein is only an optimal embodiment of the present invention, which is only used to explain the present invention and does not limit the scope of protection of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0053] In this embodiment, the Chinese explanations corresponding to the English terms involved are mainly: source address (srcIp), destination address (dstIp), source port (srcPort), destination port (dstPort), lifetime (TTL, the abbreviation of Time To Live, from the IP protocol message, this field specifies the maximum number of network segments allowed to pass before the IP packet is discarded by the router), UA (useragent, which is the "User Agent" field in the http protocol request body. This field describes the relevant information of the browser of the client using the http service, based on which the browser type and version and the type and version information of the corresponding client's operating system can be obtained.
[0054] The theoretical basis of the technical solution of this embodiment is that the TTL value in the IP protocol data packet will be reduced by 1 each time it is forwarded by a router. Therefore, from a statistical point of view, for a session from within the enterprise to access the remote Internet or the Internet to access the internal address of the enterprise, and for a session from within the enterprise to access the internal address, since the path of the intranet-intranet access is usually much smaller than the number of intranet-extranet (or extranet-intranet) routing times, there will be a clear dividing line in the TTL value, which can be used as a basis for distinguishing the ownership of the IP address in the traffic.
[0055] Example 1
[0056] This embodiment proposes an intelligent identification and classification method based on IP protocol TTL value. Figure 1 , which mainly includes the following steps.
[0057] Step S1, first, obtain environmental flow data, and then use it as sample data.
[0058] Specifically, sampling is used to obtain part of the environmental flow data, and the part of the environmental flow data obtained by sampling is used as sample data for analysis.
[0059] In this embodiment, data is acquired and restored based on deep traffic analysis and restoration technology; after the network session traffic data in the network environment is acquired through the deep traffic analysis technology, the fields therein are restored. Specifically, these fields are all fields that need to be used later.
[0060] In more detail, some fields in the above-mentioned environmental traffic data are restored, and the specific fields mainly include the source address (srcIp), destination address (dstIp), source port (srcPort), destination port (dstPort) and lifetime (TTL).
[0061] Of course, you can also restore fields other than those mentioned above. The specific details are determined by management needs and subsequent analysis needs, which are not listed here one by one.
[0062] Step S2, after completing step S1, refer to Figure 2 , proceed to step S2.
[0063] First, step S2.1 is performed to process the TTL data in the sample data; this is mainly a process of cleaning the sample data.
[0064] It mainly performs de-directional processing on the source and destination of TTL data.
[0065] In this technical solution, the source and destination of the data are de-oriented, that is, the source and destination are no longer distinguished.
[0066] In more detail, for the TTL data field, it is necessary to exclude data with a value of 0 or 1, and at the same time, the source and destination of the data are de-oriented, that is, the source and destination are no longer distinguished. This is because for the same group of source and destination, the routing path of the data packet is similar to the path of the reversely sent data packet, but duplicate data is not deleted. On the one hand, it is necessary to exclude abnormal values, and on the other hand, the systems at both ends are different, and their initial default values of TTL are different.
[0067] Then proceed to step 2.2, calculate according to the change point detection algorithm, and finally obtain the critical value in the TTL data.
[0068] Specifically, a Bayesian change point detection algorithm is used to perform calculations to obtain the change point positions in the TTL data, and finally the change point positions are used as critical values in the TTL data for subsequent judgment.
[0069] In this embodiment, the interface format of input data and output results refers to Table 1:
[0070] Table 1 Interface format table for input data and output results
[0071] .
[0072] In this technical solution, the Bayesian change point detection algorithm is a method for finding change points in time series, or other types of data, as long as the data is continuous or sequential. Based on the theory of Bayesian statistics, find the location of sudden changes in the data sequence, which may represent different data patterns or behaviors, and finally determine the change point location of the sample data (i.e., the TTL value dividing line location).
[0073] In this embodiment, the continuity of TTL values in the range of [0, 255], its decreasing characteristics, and the difference between accessing the intranet and the extranet are utilized to effectively find the location of the mutation in a set of TTL data using the Bayesian change point detection algorithm, which can be regarded as the demarcation point between intranet-intranet and intranet-extranet access. The resulting change point location is extracted for subsequent calculations.
[0074] Step S2.3, after obtaining the critical value of the corresponding TTL data in step S2.2, verify and judge the obtained critical value. If there is a conflict, it is necessary to return to step 2.2 for verification and correction, that is, to verify and adjust the obtained decomposition interval.
[0075] In this embodiment, for this step, a set of TTL critical values obtained from the analysis results are judged. Theoretically, the range of TTL values is [1,255], and the default TTL initial values of different operating systems are different. The default initial values of the most common systems are 30, 64, 128, 255.
[0076] Due to the characteristic that the TTL value is reduced by one after routing forwarding, for a session from within the enterprise to access the remote Internet or the Internet to access the internal address of the enterprise, and a session from within the enterprise to access the internal address, the TTL value will show a clear dividing line. In the corresponding initial value interval, the value above the TTL critical value is the intranet-intranet access, and its srcIp and dstIp are both internal IP addresses of the enterprise; in the corresponding initial value interval, the value below the TTL critical value is the access from the external network to the intranet (or the intranet to the Internet). Therefore, in theory, in a general network environment, the TTL value distribution may have 4 critical values in the 4 intervals divided by the above 4 default values.
[0077] However, due to the similarity of some initial values, the critical value is often reduced. At the same time, some data can determine the access type, but it is impossible to determine whether it is the srcIp or dstIp end of the external network, so it is necessary to further determine the rationality of the result and whether there is a conflict.
[0078] Then enter step S2.4, that is, judge the sample data according to the critical value to obtain the internal and external network access situation. If its ownership can be directly determined, the internal network IP list and the Internet IP list are output. The data that cannot be directly determined is also output and retained for subsequent iterative determination.
[0079] Specifically, within the interval corresponding to the critical value, if the TTL value of the sample data is greater than the critical value, then it is determined to be an intranet-intranet access mode; if the TTL value of the sample data is less than the critical value, then it is determined to be an intranet-extranet access mode or an extranet-intranet access mode. After determining the access mode it belongs to, it outputs the intranet IP set and the Internet IP set according to the mask.
[0080] In the present technical solution, after the critical value of TTL is obtained through the corresponding substation detection algorithm, the TTL data is classified according to the critical value, mainly divided into the above-mentioned intranet-intranet access mode, intranet-extranet (extranet-intranet) access mode and sample data sets that cannot be judged; for the sample data that can be judged, that is, the sample data determined to be the intranet-intranet access mode and the intranet-extranet (extranet-intranet) access mode, it can be combined with the mask to output the corresponding intranet IP set and the Internet IP set.
[0081] For data in intranet-intranet access mode, the intranet segment of the IP can be obtained by combining the IP and subnet mask.
[0082] Step S2.5, for the data of the intranet-extranet access mode, use the generated intranet network segment to determine whether one of the source and destination ends is within the intranet range. If so, the other end IP combined with the mask can obtain the corresponding Internet network segment. Because of the continuity of the TTL value in the data packet forwarding link, the external network IP determined is the Internet IP, not the IP in the non-Internet area outside the management area.
[0083] For step S2.5, in more detail, the sample data set that cannot be determined is associated with the HTTP layer data, the operating system of the source end is determined according to the UA field of the HTTP protocol request body, and then the access type is determined according to its TTL initial value.
[0084] For non-HTTP protocol sessions, the obtained internal and external network access conditions are used to perform iterative judgment.
[0085] In this technical solution, for data sets that cannot be judged using the TLL critical value, the UA field of the HTTP protocol request body and the known IP list are used to perform auxiliary iterative judgment.
[0086] The reason why some of the data mentioned in step S2.5 cannot be directly judged by the critical value is that there are different TTL default initial values for different operating systems, which results in the TTL values of data generated by different systems falling into different intervals after flowing through the network. Common default values include: 30, 64, 128, 255, etc. Due to the complexity of the network structure, some intervals with similar initial values often show that the access type crosses and is difficult to judge directly. Various algorithms often have difficulty in obtaining good results in such intervals. In order to ensure the accuracy of the results, the present invention uses the HTTP data restored by deep analysis and the existing result data, and adopts further iterative analysis and calculation.
[0087] Specifically, it includes the following sub-steps.
[0088] Step S2.5.1, the sample data set that cannot be determined is defined as data set A, which is associated with the parsed HTTP layer data using srcIp, and the operating system of the source end can be determined through the UA field content in the HTTP protocol request body, thereby obtaining its TTL initial value to determine the access type of the session corresponding to the current TTL (that is, whether it is an intranet-extranet access mode or an intranet-intranet access mode).
[0089] Step S2.5.2, for non-HTTP protocol sessions, when the TTL value interval is [a,b], there is a critical value c1 in the interval, then the access with the TTL value in [c1,b] is determined to be an intranet-intranet access mode, and its source and destination are both intranet; the access with the TTL value in [a,c1] is determined to be an intranet-intranet access mode, but the direction cannot be determined. The direction is determined by the obtained intranet and intranet access conditions. If the source belongs to the intranet IP, then the corresponding destination is determined to be the extranet; if the source belongs to the extranet IP, then the corresponding destination is determined to be the intranet.
[0090] Specifically, the present invention uses the determined result as the basis for iterative calculation. For example, for accesses with TTL in the interval [128, 255], a critical value c1 can be obtained. For accesses between [c1, 255], it can be determined as intranet-to-intranet accesses with an initial value of 255, that is, the network segments where srcIp and dstIp are located are both intranet.
[0091] For the session in the interval [128, c1], it can be determined as an intranet-extranet access with an initial value of 255, but it is impossible to directly determine the specific correspondence between it and srcIp and dstIp. For such a situation where the type can be determined but the direction cannot be determined specifically, the present invention searches for srcIp and dstIp in the obtained intranet and extranet results.
[0092] For example, if the srcIp in the above case is already in the intranet IP, then its dstIp can be determined as the extranet. For other TTL interval data that cannot be directly determined, the same iterative method is used for calculation.
[0093] Step S2.5.3: If S2.5.2 can obtain new results, the data set A is processed in a loop until no new results are generated in step S2.5.2.
[0094] Step S2.5.4: Introduce new sample data and perform calculations from step S1.
[0095] Step S2.6: For limited sample data, a certain termination condition can be set for the process from step S2.5.1 to step S2.5.4. In this embodiment, the intranet IP list and the Internet IP list no longer change as the convergence condition. If the condition is met, the intranet IP list is output.
[0096] Step S3: Use the intranet IP list as the basis for determining real-time traffic data, analyze the traffic, determine its network structure, and add corresponding information. For data that cannot be determined, add it to step S2 for iterative analysis.
[0097] Step S4, transmitting the processed data to the corresponding data security or network management system for monitoring and analysis.
[0098] This embodiment also proposes an intelligent identification and classification system based on IP protocol TTL value, referring to Figure 1 , the above-mentioned intelligent identification and classification method based on IP protocol TTL value is applicable, which mainly includes a traffic restoration module, a network architecture analysis module and a network architecture judgment module.
[0099] In this technical solution, firstly, a sample is taken to obtain environmental flow data to obtain sample data, and then the sample data is analyzed and judged, and finally the classification and judgment basis of the network architecture is obtained; it mainly involves data cleaning, calculation of critical values in TTL data, judgment of sample data based on critical values, and output of the intranet IP list; the flow is analyzed and judged based on the intranet IP list, and the data after the final judgment is transmitted to the corresponding data security or network management system for monitoring and analysis.
[0100] The main function of the flow restoration module is to obtain sample data, which is specifically environmental flow data, and then restore the corresponding fields; for details, please refer to the content of step S1 above in this embodiment.
[0101] The network architecture analysis module mainly performs the function of analyzing and judging based on the acquired sample data, and the final result can be used as the classification and judgment basis of the network architecture. For details, please refer to the content of step S2 in this embodiment.
[0102] For the network architecture identification module, the result of the network architecture analysis module is used as the basis for determining the real-time traffic data, the traffic is analyzed, its network structure is determined, and corresponding information is added. For details, please refer to the content of step S3 in this embodiment.
[0103] In this technical solution, the traffic restoration module is connected to the network architecture analysis module, and the network architecture analysis module is connected to the network architecture identification module, and the three together execute the above-mentioned step process of intelligent identification and classification based on IP protocol TTL value.
[0104] A medium is also proposed, on which a corresponding computer program is stored. When a processor executes the computer program, the process of the intelligent identification and classification method based on the IP protocol TTL value can be executed.
[0105] The process of the present invention mainly comprises:
[0106] Using network traffic data as data, the required key fields include srcIp, dstIp, srcPort, dstPort, and TTL;
[0107] Clean and integrate data: mainly including the directionless integration of relevant data at the source and destination ends;
[0108] Select the corresponding algorithm and parameters, and the algorithm module results meet the final interface content; the main purpose is to obtain a set of critical values of the sample data TTL value;
[0109] The sample data is judged by the obtained TTL critical value, and the data is classified into three groups of results: intranet-intranet access set1, intranet-extranet (extranet-intranet) access set2, and unjudged data set set3; for the data that has been judged, the intranet IP set and the Internet IP set are output in combination with the mask; here, because of the continuity of the TTL value in the data packet forwarding link, the external network IP obtained by judgment is the Internet IP, not the IP in the non-Internet area outside the management area;
[0110] For data sets that cannot be judged using the TTL threshold, the UA field of the HTTP protocol request body and the known IP list are used for auxiliary iterative judgment;
[0111] Set certain iteration exit conditions, and when the conditions are met, output the set as the result, which can be output to other systems for use;
[0112] When other systems use the results of this module and generate data that cannot be judged, they can add it to the set3 set and continue to use it for iterative judgment to expand the result set.
[0113] This embodiment has the following technical effects:
[0114] (1) It is not necessary to know the network topology structure or IP distribution of the network devices within the management scope as background information. With the continuous update and development of various network devices and structures, for medium and large enterprises or large network areas, it is often difficult to obtain accurate information about the structure of their internal networks and the distribution of device IPs through filing information or consulting relevant persons in charge. The present invention does not rely on such prior information, but mines such information through traffic data and certain algorithms, providing network managers or data review systems with more convenient and accurate device information.
[0115] (2) It can break through the convention of traditional IP address allocation and make judgments on the managed devices. The existing related technologies judge the intranet IP based on the convention used for private network IP division into three categories: A, B, and C. This has the disadvantage that, on the one hand, it is impossible to manage IP addresses within the enterprise but exposed to the public network. On the other hand, if the enterprise does not allocate IPs according to the above conventions, data omissions and inaccuracies will occur. The present invention determines and divides the managed traffic IPs based on the characteristics of the traffic data, and is completely independent of the above convention information, thereby improving the accuracy of the network structure division information.
[0116] (3) While providing internal network structure information, the present invention also provides supplementary information on its access to the Internet. For network administrators or data audit systems, the division of their internal network structure is basic information, and they are also very concerned about the behavior of these internal systems accessing the Internet. Often, data and security risks occur in the link between internal and Internet communications, while internal access is less common. The present invention directly uses the internal and Internet as the dividing line for the division of IP addresses in the traffic, rather than the internal and external. The present invention makes a more accurate division between the internal and external, providing more fine-grained analysis information for subsequent management systems.
[0117] Example 2
[0118] Different from the first embodiment, this embodiment uses a clustering algorithm or a density estimation calculation to calculate the critical value in the TTL data set.
[0119] For example, an unsupervised clustering algorithm such as the K-Mean algorithm can be used. The judgment and classification problem of TTL value data is a one-dimensional data classification problem, and because the conditions of different network environments are different, it is impossible to obtain training data without knowing the results, so the K-mean algorithm can be used to improve the accuracy of the output result boundary.
[0120] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc., which contain computer-usable program codes.
Claims
1. A method for intelligent identification and classification of TTL values based on IP protocol, characterized in that: The following steps are involved: Obtain environmental flow data and use it as sample data; The TTL data in the sample data is processed, and the critical value in the TTL data is calculated using the change point detection algorithm; The sample data is judged according to the critical value to obtain the intranet and extranet access situation. For the sample data that cannot be judged, the intranet and extranet access situation is obtained by judging whether one of its source end or destination end is within the intranet range; including: associating the sample data set that cannot be judged with HTTP layer data, judging the operating system of the source end according to the UA field of the HTTP protocol request body, and then judging the access type according to its TTL initial value; for non-HTTP protocol sessions, when the TTL value interval range is [a,b], there is a critical value c1 in the interval, then the access with the TTL value in [c1,b] is judged as the intranet-intranet access mode; the access with the TTL value in [a,c1] is judged as the intranet-extranet access mode; Generate an intranet IP list based on intranet and extranet access conditions; Analyze the traffic according to the intranet IP list, determine its network structure affiliation, and add corresponding information.
2. According to claim 1, a method for intelligent identification and classification of TTL values based on IP protocol, characterized in that: The method of judging the sample data according to the critical value to obtain the internal and external network access conditions includes: In the interval corresponding to the critical value, if the TTL value of the sample data is greater than the critical value data, it is determined to be an intranet-intranet access mode; if the TTL value of the sample data is less than the critical value data, it is determined to be an intranet-extranet access mode or an extranet-intranet access mode; Combine the mask to output the intranet IP set and the Internet IP set.
3. The method for intelligent identification and classification of TTL values based on IP protocol according to claim 1 or 2, characterized in that: The method of obtaining the intranet and extranet access conditions by judging whether one of the source end or the destination end is within the intranet range also includes: for non-HTTP protocol sessions, using the obtained intranet and extranet access conditions to perform iterative judgment.
4. The method for intelligent identification and classification of TTL values based on IP protocol according to claim 1 or 2, characterized in that: The step of obtaining environmental flow data and using it as sample data further includes: Through deep traffic analysis and restoration technology, network session traffic data of relevant network environments is obtained, and the fields to be used are restored and standardized.
5. The method for intelligent identification and classification of TTL values based on IP protocol according to claim 1 is characterized in that: The method of using a change point detection algorithm to calculate a critical value in TTL data includes: The Bayesian change point detection algorithm is used to calculate the set formed by the TTL data, determine the change point positions in the TTL data, and use these change point positions as the critical values in the TTL data.
6. The method for intelligent identification and classification of TTL values based on IP protocol according to claim 1 or 2, characterized in that: The processing of the TTL data in the sample data includes: De-directionalize the source and destination of TTL data.
7. The method for intelligent identification and classification of TTL values based on IP protocol according to claim 3 is characterized in that: For non-HTTP protocol sessions, the iterative judgment is performed using the obtained internal and external network access conditions, which also includes: The access with TTL value [a,c1] is judged as intranet-extranet access mode, but the direction cannot be determined. The direction is determined based on the obtained intranet-extranet access situation.
8. The method for intelligent identification and classification of TTL values based on IP protocol according to claim 7 is characterized in that: Determining the direction based on the obtained internal and external network access conditions includes: If the source end belongs to the intranet IP, the corresponding destination end is determined to be the external network; if the source end belongs to the external network IP, the corresponding destination end is determined to be the intranet.
9. A system for intelligent identification and classification of TTL values based on IP protocol, using a method for intelligent identification and classification of TTL values based on IP protocol according to any one of claims 1 to 8, characterized in that: include: The flow restoration module obtains environmental flow data as sample data and restores related fields; The network architecture analysis module analyzes and determines the sample data, and finally obtains the classification and determination basis of the network architecture; The network architecture identification module uses the results of the network architecture analysis module as the basis for determining real-time traffic data, analyzes the traffic, determines its network structure affiliation, and adds corresponding information.
10. A medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method for intelligent identification and classification of TTL values based on the IP protocol as claimed in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
IP address management method, device and equipment and computer readable storage medium
CN113992631A
Identification method of inside and outside network messages
CN101547127A
HTTP hijack monitoring analysis and positioning method based on information security system
CN109474587A
Intranet and extranet access control method for network security chip and network security chip
CN112714129A
Method for verifying login of public network communication platform for intranet, electronic equipment and medium
CN114338204A
