IP address ownership information indexing and fast querying method

An IP address and index technology, applied in the field of computer networks, can solve problems such as high flexibility, delay, and increased query time

Inactive Publication Date: 2014-02-05
COMP NETWORK INFORMATION CENT CHINESE ACADEMY OF SCI
View PDF3 Cites 28 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The second query method is highly flexible. Developers can extract the required relevant information from GeoIP or QQ IP database files in csv format (or text format) according to their own needs, organize them into IP CIDR block attribution information, and can Add custom IP CIDR attribution information, and then import it into the database (such as MySQL database), but this query method needs to access the database every time and execute SQL query statement operations, so it will increase the query time and affect the query speed
However, with the widespread use of IPV6 addresses, it is necessary to provide corr...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • IP address ownership information indexing and fast querying method
  • IP address ownership information indexing and fast querying method
  • IP address ownership information indexing and fast querying method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0088] The technical solutions in the embodiments of the present invention will be fully described below in conjunction with the drawings in the embodiments of the present invention. Including the construction and update of the IP address attribution information query tree and the IP address attribution information query algorithm.

[0089] 1. IP address attribution information query tree construction includes two steps:

[0090] First, define IP CIDR address block attribution information to form a configuration file.

[0091] The first step is to determine the required attribution information record format based on the requirements in practical applications, which consists of fields such as CIDR block and country name, among which the CIDR block field is an indispensable field, and other fields can be increased or decreased according to actual needs.

[0092] In the second step, according to the attribution information record format determined in the first step, the required...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses an IP address ownership information indexing and fast querying method. The method includes the first step that an ownership information configuration file is selected or built; the second step that CIDR block records in the configuration file are read and each record is built as a new node of a query tree; if a block belongs to an IPV4 address block or an IPV6 address block, and a head node corresponding to a query sub-tree of the IPV4 or a query sub-tree of the IPV6 is empty, then the new node is used as the head node, or the corresponding head nodes are selected to carry out transversal on the query sub-tree until conditions are met (the transversal is carried out to reach leaf nodes, or comparing bits of current nodes are larger than the new node and comprises CIDR block information), and joint network prefix length L of the current nodes and the new node is calculated, if the L is larger than the comparing bits of the current nodes, the L will return to father nodes and the father nodes are set as the current nodes; the insertion position of the new node is determined according to the L value and the current nodes and the ownership information of the L value is associated to the new node. The IP address ownership information indexing and fast querying method has higher querying efficiency.

Description

technical field [0001] The invention relates to the field of computer network and communication field, in particular to a fast query method of IP address attribution information based on Patricia query tree. Background technique [0002] At present, IP address-based services (such as weather forecast, etc.), network management systems and security software provided on the Internet all need to use IP address attribution information, such as country information, city information, organization information, AS information, latitude and longitude information, etc. By querying the attribution information corresponding to an IP address, the weather forecast service can return the weather information of the city corresponding to the IP host; the network management system can monitor the traffic and other related information of a given monitoring object (country, institution, etc.); Security software can also specify corresponding security policies to clean specified traffic, such as...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/12G06F17/30
Inventor 李亮雄韩春静李佟张磊吕红蕾葛敬国游军玲
Owner COMP NETWORK INFORMATION CENT CHINESE ACADEMY OF SCI
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products