CN105119827B

Determination method of router geographic position

Abstract

The invention provides a method for determining the geographic location of a router, which can accurately obtain the geographic location of the router, that is, the information of the province and city where the router is located. It includes the following steps: perform alias resolution detection on the target router to obtain the IP addresses of multiple interfaces of the target router; use TCP/UPD protocol from multiple detection sources to obtain IP data packets to access the multiple interfaces IP The IP address, path sequence and response time value of all nodes in the path of the address are used as the first set of characteristic values; the obtained IP address of multiple interfaces of the router reaches the IP address of each node in the path of each interface of the router. The IP geo-location database of the company obtains its reference geographic location as the second set of feature values; by processing and filtering the above-mentioned feature values using specific rules, the geographic location data that conflicts with the specific rules are removed; and the filtered feature values are weighted and calculated Get real geographic data.

CN105119827B, drawing sheet 1
Sheet 1 of 2

Term

8.8 yearsleft in the term

Expires 14 July 2035.

  1. Priority and filed
  2. Granted
  3. Today
  4. Expires

5 claims: 1 independent, 4 dependent

  1. 1
    1· 一种路由器地理位置的判断方法,包括以下步骤: 1) 对目标路由器进行别名解析探测,获得目标路由器的多个接口的IP地址; 2) 从多个探测源利用TCP/UDP协议,使用路由跟踪程序获得IP数据包访问所述多个接 口的IP地址所经过的路径中所有的节点的IP地址、路径顺序及响应时间值作为第一组特征 值; 3) 对步骤1)获得的路由器多个接口的IP地址和步骤2)获得的到达路由器各接口的路 径中各节点的IP地址使用公开的IP地理位置库获得其参考地理位置作为第二组特征值; 4) 通过对第一组特征值及第二组特征值使用一特定规则进行处理和过滤,去除与所述 特定规则冲突的地理位置数据; 5) 通过对步骤4)过滤后的第一组特征值及第二组特征值进行加权计算得到路由器的 真实地理数据;加权计算公式如下: Ρ=ΣΡΐ+ΣΡΐ j*Tij/ETij 其中,Pi为路由器各节点参考地理位置;Pi j为到达路由器各接口经过的各条路径中 前一个节点参考地理位置;Ti j为路径中前一个节点到达接口的响应时间。
  2. 2
    如权利要求1所述的路由器地理位置的判断方法,其特征在于,步骤1)中通过IGMP协 议对目标路由器进行别名解析探测。
  3. 3
    如权利要求1所述的路由器地理位置的判断方法,其特征在于,步骤2)中使用不少于 20个探测源分别使用TCP/UDP协议使用路由跟踪程序获得访问目标路由器多个IP地址的所 采取的所有路径。
  4. 4
    如权利要求1所述的路由器地理位置的判断方法,其特征在于,步骤3)所述公开的IP 地理位置库为互联网免费公开的第三方地理位置库。
  5. 5
    如权利要求1所述的路由器地理位置的判断方法,其特征在于,步骤4)中使用的特定 规则包括: 4-1)同一个节点地理位置是唯一的; 4-2)同城市两个节点之间的响应时间应小于m ; 4-3)同省两个城市之间响应时间应处于η和。之间; 4-4)跨省回折数据予以纠正或者剔除; 其中,m是同城市两个节点之间响应时间的最大值,η是同省同两个城市的节点之间的 最小响应时间,ο是同省两个城市的节点之间的最大响应时间。
Independent claims5