CN105119827A

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 the TCP/UPD protocol from multiple detection sources and use the route tracking program to obtain the IP data packets to access the multiple interfaces. 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 addresses of multiple interfaces of the router reach the IP addresses of each node in the path of each interface of the router. The IP geo-location database of IP address obtains its reference geo-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 specific rules are removed; and the filtered feature values are weighted and calculated Get real geographic data.

CN105119827A, drawing sheet 1
Sheet 1 of 2

Term

8.8 yearsto projected expiry

Projected expiry 14 July 2035, counted from filing; an application has no term until it is granted.

  1. Priority and filed
  2. Published
  3. Today
  4. Projected expiry

6 claims: 1 independent, 5 dependent

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