Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for realizing high-performance DNS service, computer equipment and storage medium

A DNS service, high-performance technology, applied in multi-program devices, inter-program communication, electrical components, etc., can solve problems such as low performance, complex development environment deployment, and inability to use resources, and achieve processing speed improvement, processing quick effect

Pending Publication Date: 2022-04-26
INTERNET DOMAIN NAME SYST BEIJING ENG RES CENT
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The first type of architecture is mainly due to low performance, generally below 200w qps (query per second)
[0009] The second architecture, the deployment of the development environment is complex, after the kernel is bypassed, the rich resources in the kernel cannot be used, so many functions need to be ported to the user mode

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
  • Method and device for realizing high-performance DNS service, computer equipment and storage medium
  • Method and device for realizing high-performance DNS service, computer equipment and storage medium
  • Method and device for realizing high-performance DNS service, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] figure 1 It is a flowchart of a method for realizing high-performance DNS service provided according to an exemplary embodiment of the present application. The method comprises the steps of:

[0035] Step S101, attaching the BPF packet filter to the XDP hook on the kernel network card driver; the BPF packet filter acts on each data packet received by the network card to filter, wherein, the data packet of the UDP53 port in the transport layer protocol , directly sent to the user state process to process the DNS request, and the other non-UDP53 port data packets are transmitted to the kernel protocol stack and then sent to the user state process to process the DNS request. Among them, the data packets of other non-UDP53 ports include the data packets of TCP port 53, and the other non-UDP53 data packets pass through the traditional kernel protocol stack and then arrive at the DNS located in the user layer for response service. Port 53 is opened by the DNS server and is ...

Embodiment 2

[0043] Embodiment 2 of the present invention provides a device for implementing high-performance DNS services, including: a BPF packet filtering unit and a DNS response service unit, wherein,

[0044] The BPF packet filtering unit is located at the kernel state level, attached to the XDP hook on the kernel network card driver, and is used to process the received DNS data packets and send them to the DNS response service unit, among them, the UDP53 port in the transport layer protocol The data packet is directly transmitted to the user state process to process the DNS request, and the data packet of other non-UDP53 ports is transmitted to the kernel protocol stack and then transmitted to the user state process to process the DNS request;

[0045] The DNS response service unit is located at the user mode level, and is used to process the DNS data packets sent by the BPF packet filter unit. Among them, the DNS request sent to the UDP53 port will send a response through the network...

Embodiment 3

[0049] Embodiment 3 of the present invention provides a kind of computer equipment, and its internal structure diagram can be as follows image 3 shown. The computer device includes a processor, memory and a network interface connected by a system bus. Wherein, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with other terminals or services through a network connection. When the computer program is executed by the processor, a method for realizing high-performance DNS service is implemented. Wherein, the computer device may be a server, and th...

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 a method and device for realizing high-performance DNS service, computer equipment and a storage medium. The method comprises the following steps: attaching a BPF packet filter to an XDP hook on a kernel network card driver; a data packet of a UDP53 port in a transport layer protocol is directly transmitted to a user mode process to process a DNS request, and data packets of other non-UDP53 ports are transmitted to a kernel protocol stack and then transmitted to the user mode process to process the DNS request; and after the DNS request is processed by the user mode process, different response sending modes are adopted according to the socket port type. According to the application, the BPF packet filtering unit is attached to the XDP hook on the network card driver in the kernel, the Udp53 traffic does not pass through a kernel protocol stack, the processing is fast, other traffic is not influenced, and the processing speed of the UDP53 request packet is obviously improved.

Description

technical field [0001] The present application relates to the technical field of computer domain name resolution, in particular to a method, device, computer equipment and storage medium for realizing high-performance DNS service. Background technique [0002] DNS (DomainName System, Domain Name System), a distributed database on the Internet as a mapping between domain names and IP addresses, enables users to access the Internet more conveniently, without having to remember IP numbers that can be directly read by machines. The process of finally obtaining the IP address corresponding to the host name through the host name is called domain name resolution (or host name resolution). The DNS protocol runs on top of the UDP protocol, using port number 53. In the RFC document, RFC 2181 has a specification for DNS, RFC 2136 explains the dynamic update of DNS, and RFC 2308 explains the reverse cache of DNS query. [0003] DNS (Domain Name System) is the first hop of Internet que...

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): H04L61/4511G06F9/54
CPCG06F9/545G06F9/546
Inventor 袁立志吴琦邢志杰毛伟
Owner INTERNET DOMAIN NAME SYST BEIJING ENG RES CENT