Method for determining IP address ownership by combining routing trace instruction features with graph analysis

CN114884850BActive Publication Date: 2024-10-08BEIJING ACT TECH DEV CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210375880.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-12
Publication Date
2024-10-08
Estimated Expiration
2042-04-12

AI Technical Summary

Technical Problem

并且很多第三方库是按照查询次数收费的,成本高又不够准确

Benefits of technology

[0028] This invention does not require a huge IP library maintenance burden, avoids large-scale data processing and big data cluster requirements and data storage burdens, and has high timeliness in analyzing data. In applicable scenarios, it reduces the burden of manual annotation of large-scale IP data and can be applied to IPv6 addresses. Quick area positioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114884850B_ABST
    Figure CN114884850B_ABST
Patent Text Reader

Abstract

The method for determining IP address ownership by combining route tracking instruction features with graph calculation analysis relates to the field of information technology. The present invention comprises the following steps: 1) the route tracking instruction dials the IP outside the domain to obtain graph features and completes the preliminary training samples; 2) the border-level route is calculated and the training samples are improved; 3) the training samples are input into the vector machine, and the training is performed through multi-feature configuration to obtain the automatic judgment model of IP address ownership. The present invention does not require the maintenance burden of a huge IP library, avoids the demand for large-scale data processing and big data clusters and the burden of data storage, has high timeliness in analyzing data, reduces the burden of manual annotation of large-scale IP data in applicable scenarios, and can be applied to the rapid regional positioning of IPv6 addresses.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology. Background Art

[0002] The traceroute command is a tool used to detect the number of gateways that a data packet passes through from the host that sends the data packet to the target host. The principle of the traceroute command is to try to send a probe packet with the minimum TTL to track the gateway that the data packet passes through to reach the target host, and then listen to an ICMP reply from the gateway. The default size of the data packet sent by the traceroute command is 38 bytes. TTL is called the survival time. ICMP is the Internet Control Message Protocol. It is a sub-protocol of the TCP / IP protocol family, used to transmit control messages between IP hosts and routers.

[0003] At present, the method of determining whether an IP address is an overseas address or a domestic address is implemented through an API provided by a third party, and what the API implements is a query instruction for an IP address library. In this way, determining whether an IP address is a domestic address or an overseas address depends on the accuracy and capacity of the IP address library. In addition, many third-party libraries charge according to the number of queries, which is costly and not accurate enough. The present invention provides a method for determining the ownership of an IP address by combining the characteristics of a routing tracking instruction with a graph algorithm analysis, which can determine the domestic ownership and overseas ownership of an IP address with a very low routing tracking instruction.

[0004] The present invention records the features generated by the routing tracking instruction traceroue overseas IP to generate a feature set, and uses the machine learning feature set to form a judgment model. The new IP address only passes through a very low-cost universal traceroute once, and the feature set is input into the judgment model to distinguish domestic and foreign IP addresses. The feature set includes: delay steep slope feature, repeated border routing feature, overall response time feature and other auxiliary features.

[0005] Explanation of the delay slope: Each node on the traceroute path will have a response time, and when crossing a large regional network, there will be a significant increase in network latency, just like the latency space suddenly went up a steep slope, hence the name delay slope. After countless traceroute cases, the delay slope on the outbound path is very obvious, not only the IP addresses of foreign countries with a long geographical distance have a significant delay slope, but also the IP addresses of foreign countries very close to the region have a significant delay slope.

[0006] The proximity centrality algorithm in the field of graph algorithms is a commonly used algorithm. The core of the algorithm is to calculate the average distance to other nodes. Points with high proximity centrality scores have the shortest distance to other nodes. In the network data formed by traceroute, only the border roads have high centrality scores.

[0007] The nodes found by the betweenness-centrality algorithm in the field of graph algorithms are the nodes that the shortest path between each pair of nodes in the graph passes through. In the graph of overseas IP addresses in the traceroute routing instruction, the border route meets the characteristics of betweenness-centrality.

[0008] SVM refers to support vector machine, which is a common discrimination method. In the field of machine learning, it is a supervised learning model, usually used for pattern recognition, classification and regression analysis. Through an appropriate amount of samples, the SVM support vector machine machine learning method can divide the feature parameters into the most appropriate and accurate values ​​through the hyperplane. It supports the most appropriate division of the total delay time and steep slope into time ranges, and forms the most reasonable combination of various features. Summary of the invention

[0009] In view of the shortcomings of the prior art, the method for determining IP address ownership by combining route tracking instruction features with graph calculation analysis provided by the present invention comprises the following steps: 1) using route tracking instructions to dial an out-of-domain IP to obtain graph features and complete preliminary training samples; 2) calculating border-level routes and improving training samples; 3) inputting the training samples into a vector machine, training through multi-feature configuration, and obtaining an automatic IP address ownership judgment model;

[0010] 1) Route tracing commands dial out-of-domain IPs to obtain graph features and complete preliminary training samples

[0011] ⑴ Collect 100,000 addresses identified as being from all over the world to obtain a sample set of foreign IP addresses, which can be obtained through public resources that provide foreign IP address sets;

[0012] (2) Deploy detection points, including at least one China Telecom public network IP detection point, one China Mobile public network IP detection point, and one China Unicom public network IP detection point; the server of each detection point makes a routing tracking instruction request for the foreign IP address sample set, and each routing tracking instruction generates a unique dialing number, which is called the dialing number of the routing tracking instruction;

[0013] ⑶ The server of each detection point establishes a sample library according to the return information of the route tracking instruction. The sample library includes: a. recording each IP address that the route tracking instruction passes through as a node, and recording the relationship between the IP addresses that the route tracking instruction passes through in sequence as a directed path. For example, a route tracking instruction passes through 30 hops, which will form 30 nodes and 29 directed paths; b. The data stored in the nodes of the sample library include: the node IP address, the response time on the node, the directed path to which the node belongs, and the dialing number of the route tracking instruction to which the node belongs; c. if an asterisk appears in the returned data during the route tracking instruction dialing test, the asterisk will be removed;

[0014] (4) Store the sample gallery as preliminary training samples;

[0015] 2) Calculate border-level routing and improve training samples

[0016] ⑴ Input the preliminary training samples into the betweenness centrality algorithm to calculate the nodes that are at the center of information traffic; the betweenness centrality algorithm is: , u is a node, p is the number of shortest paths between nodes s and t, P(u) is the number of shortest paths between s and t passing through node u. The larger the value of B(u), the greater the probability that node u is the central node;

[0017] (2) In the preliminary training sample, take the IP addresses of the first 2000 nodes with the largest B(u) values, input them into the proximity centrality algorithm, and calculate the node with the strongest information dissemination ability; the proximity centrality algorithm is:

[0018] , d(u,v) is the distance between u and v, u is the target node, v is the node other than the target node, the larger the value of C(u), the stronger the information dissemination ability of node u;

[0019] ⑶ Calculate the score M of the node becoming a border router,

[0020] , take the first 2000 nodes with the largest M value as the border routing nodes, and get the border routing node library;

[0021] (4) Add the border routing node library to the preliminary training samples to generate improved training samples;

[0022] 3) Input the training samples into the vector machine and train it through multi-feature configuration to obtain the automatic judgment model of IP address attribution

[0023] ⑴ According to the dial test number, determine whether the node with the same dial test number contains the border routing node. When the node with the same dial test number contains the border routing node, the vector machine outputs 1. When the node with the same dial test number does not contain the border routing node, the vector machine outputs 0. If the vector machine outputs 1, the data stored in the node with the same dial test number will be generated into steep slope pending sample data; if the vector machine outputs 0, it is determined that the target IP address is a domestic IP address;

[0024] (2) Calculate the delay percentage of the steep slope pending sample data, divide the response time of the next node by the response time of the previous node to obtain the delay percentage. When the delay percentage is greater than 200%, it is determined that a delay steep slope has occurred. When a delay steep slope occurs, the steep slope pending sample data with the delay steep slope will be used to generate response pending sample data; when no delay steep slope occurs, the steep slope pending sample data without the delay steep slope will be used to determine that the target IP address is a domestic IP address;

[0025] ⑶ Determine the response time of the last node in the response pending sample data. When the response time of the last node is greater than or equal to 200 milliseconds, generate comprehensive pending sample data from the response pending sample data; when the response time of the last node is less than 200 milliseconds, determine that the target IP address of the response pending sample data is a domestic IP address;

[0026] (4) Compare the nodes determined as border routes in the comprehensive pending sample data with the nodes with delay steep slopes. By comparing the directed paths, when a delay steep slope appears in the node after the node serving as the border route, the target IP of the comprehensive pending sample data is judged to be an overseas IP; when a delay steep slope appears in the second node after the node serving as the border route, the target IP of the comprehensive pending sample data is judged to be an overseas IP; in other cases, the target IP of the comprehensive pending sample data is judged to be a domestic IP.

[0027] Beneficial Effects

[0028] The present invention does not require the maintenance burden of a huge IP library, avoids the demand for large-scale data processing and big data clusters and the burden of data storage, has high timeliness in data analysis, reduces the burden of manual labeling of large-scale IP data in applicable scenarios, and can be used for rapid regional positioning of IPv6 addresses. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0030] Embodiment 1

[0031] See also Figure 1The method for determining IP address ownership by combining route tracking instruction features with graph calculation analysis provided by the present invention includes the following steps: S01 dialing an IP address outside the domain to obtain graph features and complete preliminary training samples; S02 calculating border-level routes and improving training samples; S03 inputting the training samples into a vector machine, training through multi-feature configuration, and obtaining an automatic IP address ownership judgment model;

[0032] S01 route tracking command dials out-of-domain IP to obtain graph features and completes the initial training sample

[0033] ⑴ Collect 100,000 addresses identified as being from all over the world to obtain a sample set of foreign IP addresses, which can be obtained through public resources that provide foreign IP address sets;

[0034] (2) Deploy detection points, including at least one China Telecom public network IP detection point, one China Mobile public network IP detection point, and one China Unicom public network IP detection point; the server of each detection point makes a routing tracking instruction request for the foreign IP address sample set, and each routing tracking instruction generates a unique dialing number, which is called the dialing number of the routing tracking instruction;

[0035] ⑶ The server of each detection point establishes a sample library according to the return information of the route tracking instruction. The sample library includes: a. recording each IP address that the route tracking instruction passes through as a node, and recording the relationship between the IP addresses that the route tracking instruction passes through in sequence as a directed path. For example, a route tracking instruction passes through 30 hops, which will form 30 nodes and 29 directed paths; b. The data stored in the nodes of the sample library include: the node IP address, the response time on the node, the directed path to which the node belongs, and the dialing number of the route tracking instruction to which the node belongs; c. if an asterisk appears in the returned data during the route tracking instruction dialing test, the asterisk will be removed;

[0036] (4) Store the sample gallery as preliminary training samples;

[0037] S02 Calculate border-level routing and improve training samples

[0038] ⑴ Input the preliminary training samples into the betweenness centrality algorithm to calculate the nodes that are at the center of information traffic; the betweenness centrality algorithm is: , u is a node, p is the number of shortest paths between nodes s and t, P(u) is the number of shortest paths between s and t passing through node u. The larger the value of B(u), the greater the probability that node u is the central node;

[0039] (2) In the preliminary training sample, take the IP addresses of the first 2000 nodes with the largest B(u) values, input them into the proximity centrality algorithm, and calculate the node with the strongest information dissemination ability; the proximity centrality algorithm is:

[0040] , d(u,v) is the distance between u and v, u is the target node, v is the node other than the target node, the larger the value of C(u), the stronger the information dissemination ability of node u;

[0041] ⑶ Calculate the score M of the node becoming a border router,

[0042] , take the first 2000 nodes with the largest M value as the border routing nodes, and get the border routing node library;

[0043] (4) Add the border routing node library to the preliminary training samples to generate improved training samples;

[0044] S03 inputs the training samples into the vector machine and trains it through multi-feature configuration to obtain an automatic IP address attribution judgment model

[0045] ⑴ According to the dial test number, determine whether the node with the same dial test number contains the border routing node. When the node with the same dial test number contains the border routing node, the vector machine outputs 1. When the node with the same dial test number does not contain the border routing node, the vector machine outputs 0. If the vector machine outputs 1, the data stored in the node with the same dial test number will be generated into steep slope pending sample data; if the vector machine outputs 0, it is determined that the target IP address is a domestic IP address;

[0046] (2) Calculate the delay percentage of the steep slope pending sample data, divide the response time of the next node by the response time of the previous node to obtain the delay percentage. When the delay percentage is greater than 200%, it is determined that a delay steep slope has occurred. When a delay steep slope occurs, the steep slope pending sample data with the delay steep slope will be used to generate response pending sample data; when no delay steep slope occurs, the steep slope pending sample data without the delay steep slope will be used to determine that the target IP address is a domestic IP address;

[0047] ⑶ Determine the response time of the last node in the response pending sample data. When the response time of the last node is greater than or equal to 200 milliseconds, generate comprehensive pending sample data from the response pending sample data; when the response time of the last node is less than 200 milliseconds, determine that the target IP address of the response pending sample data is a domestic IP address;

[0048] (4) Compare the nodes determined as border routes in the comprehensive pending sample data with the nodes with delay steep slopes. By comparing the directed paths, when a delay steep slope appears in the node after the node serving as the border route, the target IP of the comprehensive pending sample data is judged to be an overseas IP; when a delay steep slope appears in the second node after the node serving as the border route, the target IP of the comprehensive pending sample data is judged to be an overseas IP; in other cases, the target IP of the comprehensive pending sample data is judged to be a domestic IP.

Claims

1. A method for determining the ownership of an IP address by combining the characteristics of a routing tracking instruction with a graph calculation analysis, characterized in that The following steps are included: 1) Use routing tracking instructions to dial an out-of-domain IP to obtain graph features and complete preliminary training samples; 2) Calculate border-level routes and improve training samples; 3) Input the training samples into a vector machine, train it through multi-feature configuration, and obtain an automatic IP address attribution judgment model; 1) Route tracing commands dial out-of-domain IPs to obtain graph features and complete preliminary training samples ⑴ Collect 100,000 addresses from all over the world to obtain a sample set of foreign IP addresses; (2) Deploy multiple detection points. The server at the detection point makes a routing tracking instruction request for the foreign IP address sample set. Each routing tracking instruction generates a unique dialing number, which is called the dialing number of the routing tracking instruction. ⑶ The server of each detection point establishes a sample library according to the return information of the route tracking instruction. The sample library includes: a. recording each IP address passed by the route tracking instruction as a node, and recording the front and back relationship of the IP addresses passed by the route tracking instruction in sequence as a directed path; b. The data stored in the node of the sample library includes: the node IP address, the response time on the node, the directed path to which the node belongs, and the dialing number of the route tracking instruction to which the node belongs; c. if there is an asterisk in the returned data during the route tracking instruction dialing test, the asterisk will be removed; (4) Store the sample gallery as preliminary training samples; 2) Calculate border-level routing and improve training samples ⑴ Input the preliminary training samples into the betweenness centrality algorithm to calculate the nodes that are at the center of information traffic; the betweenness centrality algorithm is: , u is a node, p is the number of shortest paths between nodes s and t, P(u) is the number of shortest paths between s and t passing through node u. The larger the value of B(u), the greater the probability that node u is the central node; (2) In the preliminary training sample, take the IP addresses of the first 2000 nodes with the largest B(u) values, input them into the proximity centrality algorithm, and calculate the node with the strongest information dissemination ability; the proximity centrality algorithm is: , d(u,v) is the distance between u and v, u is the target node, v is the node other than the target node, the larger the value of C(u), the stronger the information dissemination ability of node u; ⑶ Calculate the score M of the node becoming a border router, , take the first 2000 nodes with the largest M value as the border routing nodes, and get the border routing node library; (4) Add the border routing node library to the preliminary training samples to generate improved training samples; 3) Input the training samples into the vector machine and train it through multi-feature configuration to obtain the automatic judgment model of IP address attribution ⑴ According to the dial test number, determine whether the node with the same dial test number contains the border routing node. When the node with the same dial test number contains the border routing node, the vector machine outputs 1. When the node with the same dial test number does not contain the border routing node, the vector machine outputs 0. If the vector machine outputs 1, the data stored in the node with the same dial test number will be generated into steep slope pending sample data; if the vector machine outputs 0, it is determined that the target IP address is a domestic IP address; (2) Calculate the delay percentage of the steep slope pending sample data, divide the response time of the next node by the response time of the previous node to obtain the delay percentage. When the delay percentage is greater than 200%, it is determined that a delay steep slope has occurred. When a delay steep slope occurs, the steep slope pending sample data with the delay steep slope will be used to generate response pending sample data; when no delay steep slope occurs, the steep slope pending sample data without the delay steep slope will be used to determine that the target IP address is a domestic IP address; ⑶ Determine the response time of the last node in the response pending sample data. When the response time of the last node is greater than or equal to 200 milliseconds, generate comprehensive pending sample data from the response pending sample data; when the response time of the last node is less than 200 milliseconds, determine that the target IP address of the response pending sample data is a domestic IP address; (4) Compare the nodes determined as border routes in the comprehensive pending sample data with the nodes with delay steep slopes. By comparing the directed paths, when a delay steep slope appears in the node after the node serving as the border route, the target IP of the comprehensive pending sample data is judged to be an overseas IP; when a delay steep slope appears in the second node after the node serving as the border route, the target IP of the comprehensive pending sample data is judged to be an overseas IP; in other cases, the target IP of the comprehensive pending sample data is judged to be a domestic IP.

Citation Information

Patent Citations

  • Method for determining packet transmission route in IP telecommunication network system

    CN101588291A

  • Determination method of router geographic position

    CN105119827A

  • System and method for predicting the geographic location of an internet protocol address

    EP2541838A1

  • Method of and system for path selection

    US11215467B1

  • Centralized route calculation for a multi-hop streetlight network

    US20090066540A1