Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

IP address list storage and query method applied to DNS query

A DNS query and IP address technology, applied in the field of IP address list storage and query, to achieve the effect of reducing the number of queries

Active Publication Date: 2016-06-01
CHINA INTERNET NETWORK INFORMATION CENTER
View PDF4 Cites 32 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] These structures have a common disadvantage. Taking View as an example, when configuring N Views, you need to build N trees (tables). When matching an IP, the worst case is that you need to search N times

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 list storage and query method applied to DNS query
  • IP address list storage and query method applied to DNS query
  • IP address list storage and query method applied to DNS query

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] The merging process of this embodiment is as follows figure 1 , 2 shown, where figure 1 It is a schematic diagram of merging according to the priority principle, figure 2 It is a schematic diagram of merging according to the IP longest matching principle. During the merger process, according to the business requirements, follow the IP longest match principle or match according to the priority. The specific steps are described as follows:

[0038] 1) The IP address list of each policy is deduplicated to build a red-black tree (RedBlackTree), with the IP segment as the key value (node ​​key), and the policy id (policy identification), priority (depending on the specific business , the data requirements of nodes are different) as info (node ​​data);

[0039] 2) Classify priority according to different services: authoritative View sets priority according to the order of configuration, recursive View determines priority according to configured priority, and can confi...

Embodiment 2

[0047] In this embodiment, the View business is still taken as an example. The specific merging process is as follows: Figure 4 , 5 shown, where Figure 4 It is a schematic diagram of merging according to each IP array, Figure 5 It is a schematic diagram of merging between groups according to the principle of priority. The specific steps are described as follows:

[0048] 1) Build an array for each View IP, and sort the array according to the size of the starting IP. The sorted results are as follows Figure 4 view1 and view2 on the left;

[0049] 2) Merge the IP arrays of view1 and view2 within the group to remove duplicate IP addresses. The result after deduplication is as follows Figure 4 view1 and view2 on the right;

[0050] 3) Split and merge the IP arrays of view1 and view2 according to the priority principle, and the final result (merged array) is as follows Figure 5 shown.

[0051] In the above embodiment, if the arrays are queried using the dichotomy meth...

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 relates to an IP address list storage and query method applied to DNS query. The method comprises the following steps: firstly carrying out deduplication processing on the IP address list of each strategy, and storing by using modes of a red black tree, an array, a linked list and the like; and then combining the IP address lists of different strategies of each service to construct an IP address list+strategy form and storing, following an IP longest matching principle or a priority principle in the combination process; and continuously combining the IP address list+strategy storage structures of different services to construct and store an IP address list+service+strategy form; sorting the IP address list+service+strategy storage structures according to IP address list initial address sizes; and performing the DNS query by using dichotomy and the like query method while in query. Through the adoption of the method provided by the invention, the existing IP storage structure is improved, the operation is simple, the query time can be reduced, and the query efficiency is improved.

Description

technical field [0001] The invention belongs to the fields of information technology and DNS technology, and in particular relates to an IP address list storage and query method applied to DNS query. Background technique [0002] The matching of IP addresses widely exists in the DNS (Domain Name System, domain name system) query process, such as the server-side query black and white list, View (view) client IP address list, recursive server Sortlist (routing redirection) configuration, etc., IP The fast matching of the address list affects the query efficiency to a certain extent. [0003] RadixTree (radix tree) is a commonly used IP routing storage structure. In fact, IP routing lookup is one of the most commonly used fields of Radixtree. When storing IP data, especially CIDR (Classless Inter-Domain Routing), Radix degenerates into a binary tree, and the left and right subtrees represent 1 or 0 of the binary representation of IP, so for IPv4, the largest Radix tree The he...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/12
CPCH04L61/4511H04L61/00
Inventor 李晓东李洪涛闫夏莉叶崛宇岳巧丽王楠张海阔
Owner CHINA INTERNET NETWORK INFORMATION CENTER
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products