[go: up one dir, main page]

CN104065761A - Application server selection method and network connection method - Google Patents

Application server selection method and network connection method Download PDF

Info

Publication number
CN104065761A
CN104065761A CN201410062729.1A CN201410062729A CN104065761A CN 104065761 A CN104065761 A CN 104065761A CN 201410062729 A CN201410062729 A CN 201410062729A CN 104065761 A CN104065761 A CN 104065761A
Authority
CN
China
Prior art keywords
application server
address
dns
domain name
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410062729.1A
Other languages
Chinese (zh)
Inventor
董斌雁
孙鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410062729.1A priority Critical patent/CN104065761A/en
Publication of CN104065761A publication Critical patent/CN104065761A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application provides an application server selecting method and a network connection method. The methods include that a client simultaneously sends a DNS (Domain Name System) query request which comprises a domain name to a plurality of DNS servers; When a DNS server send an IP (Internet Protocol) address corresponding to the domain name back to the client according to the DNS query request, the client generates a candidate list of IP addresses in accordance with the IP address; the client simultaneously sends a connection request to an application server corresponding to every IP address in accordance with the candidate list of IP addresses; an optimal application server is determined according to state information of response to the connection request of every application server. The application server selecting method and the network connection method can ensure the reliability of DNS resolution service and shorten time consumption as well as can meet the specific needs of network applications and improve the safety.

Description

应用服务器选取方法和网络连接方法Application server selection method and network connection method

本发明专利申请是申请日为2011年9月29日、申请号为201110294802.4、名称为“一种域名系统DNS的最优应用服务器选取方法和装置”的中国发明专利申请的分案申请。 The patent application of the present invention is a divisional application of a Chinese invention patent application with an application date of September 29, 2011, an application number of 201110294802.4, and a title of "A Method and Device for Selecting an Optimal Application Server for Domain Name System DNS".

技术领域 technical field

本申请涉及互联网域名解析的技术领域,特别是涉及一种域名系统DNS的最优应用服务器选取方法,及一种域名系统DNS的最优应用服务器选取装置。 The present application relates to the technical field of Internet domain name resolution, in particular to a method for selecting an optimal application server of the domain name system DNS, and a device for selecting an optimal application server of the domain name system DNS.

背景技术 Background technique

在互联网的应用中,域名和IP地址是不可缺少的,因为人们访问网站必须要通过网站的域名和IP地址来查找登录。现有技术查找域名和IP地址的时候要运用到DNS,也就是域名系统(或称之为域名服务器)。DNS用于域名的解析,为Internet上的主机分配域名地址和IP地址。也就是说,当用户向DNS请求域名地址解析时,该系统就会自动把域名地址转为IP地址。在实际中,任何域名都至少有一个DNS来对域名进行解析,至少是两个。因为DNS可以轮回处理,第一个解析失败可以找第二个。这样只要有一个DNS解析正常,就不会影响域名的正常使用。 In the application of the Internet, the domain name and IP address are indispensable, because people must use the domain name and IP address of the website to find and log in when visiting the website. The prior art uses DNS, that is, domain name system (or domain name server) when looking up domain names and IP addresses. DNS is used for domain name resolution, assigning domain name addresses and IP addresses to hosts on the Internet. That is to say, when a user requests DNS for domain name address resolution, the system will automatically convert the domain name address into an IP address. In practice, any domain name has at least one DNS to resolve the domain name, at least two. Because DNS can be processed in turn, the first resolution failure can find the second one. In this way, as long as one DNS resolves normally, the normal use of the domain name will not be affected.

DNS协议可以使用UDP协议和TCP协议作为传输层协议,现有技术中,Windows客户端主机系统仅实现了UDP协议作为DNS协议的传输层协议。UDP协议具有以下特性: The DNS protocol can use the UDP protocol and the TCP protocol as the transport layer protocol. In the prior art, the Windows client host system only implements the UDP protocol as the transport layer protocol of the DNS protocol. The UDP protocol has the following characteristics:

1、UDP协议是一个无接连协议,传输数据之前源端和终端不建立连接,当它想传送时就简单地去抓取来自应用程序的数据,并尽可能快地把它扔到网络上。在发送端,UDP协议传送数据的速度仅仅是受应用程序生成数据的速度、计算机的能力和传输带宽的限制;在接收端,UDP 协议把每个消息段放在队列中,应用程序每次从队列中读一个消息段。 1. The UDP protocol is a connectionless protocol. The source and the terminal do not establish a connection before transmitting data. When it wants to transmit, it simply grabs the data from the application and throws it on the network as quickly as possible. At the sending end, the speed at which UDP protocol transmits data is only limited by the speed at which the application generates data, the capabilities of the computer, and the transmission bandwidth; at the receiving end, the UDP protocol puts each message segment in a queue, and the Read a message segment from the queue.

2、由于传输数据不建立连接,因此也就不需要维护连接状态,包括收发状态等,因此一台服务机可同时向多个客户机传输相同的消息。 2. Since the data transmission does not establish a connection, there is no need to maintain the connection status, including the sending and receiving status, so one server can transmit the same message to multiple clients at the same time.

3、UDP协议信息包的标题很短,只有8个字节,相对于TCP的20个字节信息包的额外开销很小。 3. The header of the UDP protocol information packet is very short, only 8 bytes, and the additional overhead of the 20-byte information packet of TCP is very small.

4、吞吐量不受拥挤控制算法的调节,只受应用软件生成数据的速率、传输带宽、源端和终端主机性能的限制。 4. The throughput is not regulated by the congestion control algorithm, but only limited by the rate of data generated by the application software, transmission bandwidth, source end and terminal host performance.

5、UDP协议使用尽最大努力交付,即不保证可靠交付,因此主机不需要维持复杂的链接状态表。 5. The UDP protocol uses best-effort delivery, that is, reliable delivery is not guaranteed, so the host does not need to maintain a complex link state table.

6、UDP协议是面向报文的。发送方的UDP协议对应用程序交下来的报文,在添加首部后就向下交付给IP层。既不拆分,也不合并,而是保留这些报文的边界,因此,应用程序需要选择合适的报文大小。 6. The UDP protocol is packet-oriented. The UDP protocol of the sender delivers the message delivered by the application to the IP layer after adding the header. The boundaries of these packets are neither split nor merged, but the boundaries of these packets are preserved, so the application needs to choose an appropriate packet size.

选择UDP协议作为DNS应用层协议的优点是速度快,但存在以下缺点: The advantage of choosing the UDP protocol as the DNS application layer protocol is that it is fast, but it has the following disadvantages:

1、由于Windows系统实现DNS协议是基于同步的,DNS服务器根据自身的负载情况把域名对应的IP地址集合随机散列返回给客户端,仅实现了基于服务器端的均衡负载,解析服务是同步的,因此在某些特定网络状况下,解析耗时比较长,因此DNS解析服务不可靠并且耗时时间较长; 1. Since the DNS protocol implemented by the Windows system is based on synchronization, the DNS server randomly hashes the IP address set corresponding to the domain name to the client according to its own load conditions, and only realizes load balancing based on the server side, and the resolution service is synchronous. Therefore, in some specific network conditions, the resolution takes a long time, so the DNS resolution service is unreliable and takes a long time;

2、Windows系统DNS解析服务是面向全系统的,不具备特定应用程序可配置DNS服务器,不能满足某些网络应用需求; 2. The DNS resolution service of Windows system is oriented to the whole system. It does not have a specific application program to configure the DNS server, and cannot meet the needs of some network applications;

3、Windows系统DNS解析服务存在漏洞,易被劫持篡改,安全性较低。 3. There are loopholes in the DNS resolution service of the Windows system, which is easy to be hijacked and tampered with, and the security is low.

因此,目前需要本领域技术人员迫切解决的一个技术问题就是:实现一种域名系统DNS的最优应用服务器选取方法,以保证DNS解析服务可靠性并缩短耗时,同时能够满足一些特定的网络应用需求,并提高安全性。 Therefore, a technical problem that needs to be urgently solved by those skilled in the art is: to realize an optimal application server selection method of the domain name system DNS, so as to ensure the reliability of the DNS resolution service and shorten the time-consuming, while satisfying some specific network applications. needs and improve security.

发明内容 Contents of the invention

本申请所要解决的技术问题是提供一种域名系统DNS的最优应用服务器选取方法,以保证DNS解析服务可靠性并缩短耗时,同时能够满足一些特定的网络应用需求,并提高安全性。 The technical problem to be solved in this application is to provide a method for selecting an optimal application server of the domain name system DNS, so as to ensure the reliability of the DNS resolution service and shorten the time-consuming, while meeting some specific network application requirements and improving security.

相应的,本申请还提供一种域名系统DNS的最优应用服务器选取装置,以确保上述方法在实际中的应用及实现。 Correspondingly, the present application also provides a device for selecting an optimal application server of the domain name system DNS, so as to ensure the practical application and realization of the above method.

为了解决上述问题,本申请公开了一种域名系统DNS的最优应用服务器选取方法,包括: In order to solve the above problems, this application discloses a method for selecting an optimal application server of the domain name system DNS, including:

客户端向多个DNS服务器同时发送DNS查询请求,所述DNS查询请求中包括域名; The client sends a DNS query request to multiple DNS servers simultaneously, and the DNS query request includes a domain name;

当有DNS服务器根据所述DNS查询请求向客户端返回域名对应的IP地址,客户端根据所述IP地址生成候选IP地址列表; When a DNS server returns the IP address corresponding to the domain name to the client according to the DNS query request, the client generates a candidate IP address list according to the IP address;

客户端根据所述侯选IP地址列表,向各IP地址对应的应用服务器同时发送连接请求; The client sends a connection request to the application server corresponding to each IP address at the same time according to the list of candidate IP addresses;

依据各应用服务器对所述连接请求的响应状态信息,确定最优应用服务器。 The optimal application server is determined according to the response state information of each application server to the connection request.

优选的,所述的方法,还包括: Preferably, the method also includes:

将当前域名及对应最优服务器的IP地址写入客户端的缓存中,并记录所述域名及对应IP地址记录的生命周期TTL信息。 Write the current domain name and the IP address of the corresponding optimal server into the cache of the client, and record the life cycle TTL information of the domain name and the corresponding IP address.

优选的,在客户端向多个DNS服务器同时发送DNS查询请求的步骤之前,还包括: Preferably, before the step that the client sends DNS query requests to multiple DNS servers simultaneously, it also includes:

客户端查询其缓存中是否有当前待请求查询的域名的对应IP地址的记录,若有,则判断所述域名及对应IP地址记录的生命周期TTL信息是否过期,若否,则直接提取所述IP地址。 The client checks whether there is a record corresponding to the IP address of the domain name to be queried currently in its cache, and if so, determines whether the life cycle TTL information of the domain name and the corresponding IP address record has expired, and if not, directly extracts the IP address.

优选的,所述依据各应用服务器对所述连接请求的响应状态信息确定最优应用服务器的步骤包括: Preferably, the step of determining the optimal application server according to the response status information of each application server to the connection request includes:

若在预设时间内,有应用服务器第一时间响应所述连接请求,则中断与其它应用服务器的连接,将当前应用服务器确定为最优应用服务器。 If an application server responds to the connection request within the preset time, the connection with other application servers is terminated, and the current application server is determined as the optimal application server.

优选的,所述依据各应用服务器对所述连接请求的响应状态信息确定最优应用服务器的步骤包括: Preferably, the step of determining the optimal application server according to the response status information of each application server to the connection request includes:

若超出预设时间后,有多台应用服务器响应所述连接请求,则对各台应用服务器的连接时间进行排序,将连接时间最短的应用服务器确定为最优应用服务器。 If multiple application servers respond to the connection request after the preset time has elapsed, the connection time of each application server is sorted, and the application server with the shortest connection time is determined as the optimal application server.

优选的,所述依据各应用服务器对所述连接请求的响应状态信息确定最优应用服务器的步骤包括: Preferably, the step of determining the optimal application server according to the response status information of each application server to the connection request includes:

当客户端所发送的DNS查询请求为基于HTTP协议的DNS查询请求时,获取响应所述连接请求的应用服务器的下载速度,将下载速度最快的应用服务器确定为最优应用服务器。 When the DNS query request sent by the client is a DNS query request based on the HTTP protocol, the download speed of the application server responding to the connection request is obtained, and the application server with the fastest download speed is determined as the optimal application server.

优选的,所述客户端根据IP地址生成候选IP地址列表包括: Preferably, the generating of the candidate IP address list by the client according to the IP address includes:

获取所述IP地址所属的网段; Obtain the network segment to which the IP address belongs;

从各网段提取一个IP地址写入候选IP地址列表。 Extract an IP address from each network segment and write it into the candidate IP address list.

本申请实施例还公开了一种域名系统DNS的最优应用服务器选取装置,包括: The embodiment of the present application also discloses a device for selecting an optimal application server of the domain name system DNS, including:

域名请求模块:用于由客户端向多个DNS服务器同时发送DNS查询请求,所述DNS查询请求中包括域名; Domain name request module: used for simultaneously sending DNS query requests to multiple DNS servers by the client, where the DNS query requests include domain names;

候选IP地址列表生成模块:用于在有DNS服务器根据所述DNS查询请求向客户端返回域名对应的IP地址,由客户端根据所述IP地址生成候选IP地址列表; Candidate IP address list generation module: used to return the IP address corresponding to the domain name to the client according to the DNS query request by the DNS server, and the client generates a candidate IP address list according to the IP address;

IP地址连接请求模块:用于由客户端根据所述侯选IP地址列表,向各IP地址对应的应用服务器同时发送连接请求; IP address connection request module: used for the client to simultaneously send connection requests to the application servers corresponding to each IP address according to the list of candidate IP addresses;

最优应用服务器确定模块:用于依据各应用服务器对所述连接请求的响应状态信息,确定最优应用服务器。 Optimal application server determining module: used to determine the optimal application server according to the response state information of each application server to the connection request.

优选的,所述的装置,还包括: Preferably, the device further includes:

域名信息记录模块:用于将当前域名及对应最优服务器的IP地址写入客户端的缓存中,并记录所述域名及对应IP地址记录的生命周期TTL信 息。 Domain name information recording module: used to write the current domain name and the IP address of the corresponding optimal server into the cache of the client, and record the life cycle TTL information of the domain name and the corresponding IP address record.

优选的,所述的装置,还包括: Preferably, the device further includes:

客户端缓存查询模块:用于客户端查询其缓存中是否有当前待请求查询的域名的对应IP地址的记录,若有,则判断所述域名及对应IP地址记录的生命周期TTL信息是否过期,若否,则直接提取所述IP地址。 Client cache query module: used for the client to query whether there is a record corresponding to the IP address of the domain name to be requested to query in its cache, and if so, to determine whether the life cycle TTL information of the domain name and the corresponding IP address record has expired, If not, the IP address is extracted directly.

优选的,所述最优应用服务器确定模块进一步包括: Preferably, the optimal application server determination module further includes:

第一时间最优应用服务器确定子模块:用于在预设时间内,有应用服务器第一时间响应所述连接请求时,中断与其它应用服务器的连接,将当前应用服务器确定为最优应用服务器。 The sub-module for determining the optimal application server at the first time: used to interrupt the connection with other application servers when an application server responds to the connection request at the first time within the preset time, and determine the current application server as the optimal application server .

优选的,所述最优应用服务器确定模块进一步包括: Preferably, the optimal application server determination module further includes:

连接时间最优应用服务器确定子模块:用于在超出预设时间后,有多台应用服务器响应所述连接请求时,对各台应用服务器的连接时间进行排序,将连接时间最短的应用服务器确定为最优应用服务器。 Optimal connection time application server determination sub-module: used to sort the connection time of each application server when multiple application servers respond to the connection request after the preset time is exceeded, and determine the application server with the shortest connection time For the optimal application server.

优选的,所述最优应用服务器确定模块进一步包括: Preferably, the optimal application server determination module further includes:

下载速度最优应用服务器确定子模块:用于在客户端所发送的DNS查询请求为基于HTTP协议的DNS查询请求时,获取响应所述连接请求的应用服务器的下载速度,将下载速度最快的应用服务器确定为最优应用服务器。 Optimal download speed application server determination submodule: used to obtain the download speed of the application server responding to the connection request when the DNS query request sent by the client is a DNS query request based on the HTTP protocol, and download the fastest The application server is determined as the optimal application server.

优选的,所述候选IP地址列表生成模块包括: Preferably, the candidate IP address list generation module includes:

网段获取子模块:获取所述IP地址所属的网段; The network segment obtaining submodule: obtaining the network segment to which the IP address belongs;

IP地址提取子模块:用于从各网段提取一个IP地址写入候选IP地址列表。 IP address extraction sub-module: used to extract an IP address from each network segment and write it into the list of candidate IP addresses.

与现有技术相比,本申请包括以下优点: Compared with the prior art, the present application includes the following advantages:

本申请仍然采用UDP协议作为DNS协议的传输层协议,但是以异步并发方式发送多个DNS查询请求给多个DNS服务器,由于采用异步并发的方式实现,当有DNS服务器响应返回请求中域名对应的IP地址时,客户端立即解析,不受DNS服务器个数的增加而影响整体解析响应时间。 由于每个DNS服务器的请求及响应时间不同,因而可以获得最快的DNS响应。从而解决了现有技术中Windows系统DNS解析服务不支持多DNS并发请求,解析服务不可靠并且耗时时间较长的缺陷。 This application still uses the UDP protocol as the transport layer protocol of the DNS protocol, but sends multiple DNS query requests to multiple DNS servers in an asynchronous and concurrent manner. The client resolves the IP address immediately, and the overall resolution response time is not affected by the increase in the number of DNS servers. Since the request and response time of each DNS server is different, the fastest DNS response can be obtained. Therefore, the defects in the prior art that the DNS resolution service of the Windows system does not support multiple DNS concurrent requests, the resolution service is unreliable and takes a long time are solved.

本申请实现了DNS服务器配置策略,并且不受DNS服务器个数的增加而影响整体解析速度。满足各种网络应用需求。从而解决了现有技术中Windows系统DNS解析服务是面向全系统的,不具备特定应用程序可配置DNS服务器,不能满足某些网络应用需求的缺陷。 This application implements the DNS server configuration strategy, and the overall resolution speed is not affected by the increase in the number of DNS servers. Meet various network application requirements. Thereby, the defect that the DNS resolution service of the Windows system in the prior art is oriented to the whole system, does not have a specific application program to configure the DNS server, and cannot meet the requirements of some network applications is solved.

本申请解析DNS服务器返回的IP地址,相应建立与对应应用服务器的连接,根据连接时间最小作为最优应用服务器IP地址返回给调用者,实现了基于连接测速的优化策略。对于HTTP协议的DNS查询请求,本申请还支持根据最快的HTTP GET下载该域名根URL的下载速度作为最优应用服务器IP地址返回给调用者,实现了基于HTTP GET下载测速的优化策略。解决了现有技术中Windows系统DNS解析服务不提供任何加速优化策略的缺陷:达到了网络加速的目的。可以自适应发现最短路径与响应最快的最优应用服务器对应的IP地址。可以运用于教育网加速应用、电信网通移动运营商网络资源优化访问。对用户而言,提供了更快的网络服务。 This application analyzes the IP address returned by the DNS server, establishes a connection with the corresponding application server accordingly, and returns it to the caller as the optimal application server IP address according to the minimum connection time, realizing an optimization strategy based on connection speed measurement. For the DNS query request of the HTTP protocol, this application also supports downloading the root URL of the domain name according to the fastest HTTP GET and returning it to the caller as the optimal application server IP address, realizing an optimization strategy based on HTTP GET download speed measurement. It solves the defect that the DNS resolution service of the Windows system does not provide any acceleration optimization strategy in the prior art: the purpose of network acceleration is achieved. It can adaptively discover the shortest path and the IP address corresponding to the optimal application server with the fastest response. It can be used to accelerate applications on education networks, and optimize access to network resources of telecom and mobile operators. For users, faster network services are provided.

本申请自行实现了DNS解析服务,并以加密方式保存经过优化的DNS解析结果。相比Windows系统DNS解析服务有更高的安全性。本申请解决了Windows系统DNS解析服务存在漏洞,易被劫持篡改的缺陷。 This application realizes the DNS resolution service by itself, and saves the optimized DNS resolution result in an encrypted manner. Compared with Windows system DNS resolution service, it has higher security. This application solves the defect that the DNS resolution service of the Windows system has loopholes and is easily hijacked and tampered with.

附图说明 Description of drawings

图1是本申请一种域名系统DNS的最优应用服务器选取方法实施例1的步骤流程图; Fig. 1 is the flow chart of the steps of embodiment 1 of the optimal application server selection method of a kind of domain name system DNS of the present application;

图2是本申请一种域名系统DNS的最优应用服务器选取方法实施例2的步骤流程图; Fig. 2 is the flow chart of the steps of embodiment 2 of the optimal application server selection method of a domain name system DNS of the present application;

图3是本申请一种域名系统DNS的最优应用服务器选取装置实施例 的结构图。 Fig. 3 is a structural diagram of an embodiment of an optimal application server selection device of a domain name system DNS in the present application.

具体实施方式 Detailed ways

为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。 In order to make the above objects, features and advantages of the present application more obvious and comprehensible, the present application will be further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

为使本领域技术人员更好地理解本申请,以下对域名系统(DNS)的相关技术进行说明。 In order to enable those skilled in the art to better understand the present application, the related technologies of Domain Name System (DNS) are described below.

域名系统(DNS)是一种用于TCP/IP应用程序的分布式数据库,它提供主机名字和IP地址之间的转换信息。通常,网络用户通过UDP协议(User Datagram Protocol,用户数据包协议)和DNS服务器进行通信,服务器在特定的53端口监听,并返回用户所需的相关信息。 The Domain Name System (DNS) is a distributed database for TCP/IP applications that provides translation information between host names and IP addresses. Usually, network users communicate with the DNS server through the UDP protocol (User Datagram Protocol, User Datagram Protocol). The server listens on a specific port 53 and returns the relevant information required by the user.

DNS分为Client(客户端)和Server(服务器),Client扮演发问的角色,也就是问Server一个Domain Name(域名)的真正IP地址,Server要回答此Domain Name的真正IP地址。通常,当地的DNS先会查自己的资料库,如果自己的资料库没有此Domain Name的真正IP地址,则会往该DNS上所设的DNS服务器询问,依此得到此Domain Name的真正IP地址之后,将该Domain Name对应的真正IP地址存起来,并回答客户。 DNS is divided into Client (client) and Server (server). Client plays the role of asking questions, that is, asking Server for the real IP address of a Domain Name (domain name), and Server must answer the real IP address of the Domain Name. Usually, the local DNS will first check its own database. If its own database does not have the real IP address of the Domain Name, it will ask the DNS server set on the DNS to obtain the real IP address of the Domain Name. After that, save the real IP address corresponding to the Domain Name and answer the customer.

DNS服务器会根据不同的授权区(Zone),记录所属该网域下的各名称资料,这个名称资料包括:网域下的次网域名称以及主机名称,在每一个DNS名称服务器中都有一个快取缓存区(Cache),这个快取缓存区的主要目的是将该名称服务器所查询出来的名称及相对的IP地址记录在快取缓存区中,当下一次还有另外一个客户端到此服务器上去查询相同的名称时,服务器就不用在到别台主机上去寻找,而可以直接从快取缓存区中找到对应的名称记录资料,传回给客户端,从而加速客户端对名称查询的速度。 The DNS server will record each name information under the domain according to different authorization zones (Zone). This name information includes: the sub-domain name and host name under the domain. There is one in each DNS name server Cache, the main purpose of this cache is to record the name and the relative IP address queried by the name server in the cache, when another client comes to this server next time When searching for the same name, the server does not need to search on other hosts, but can directly find the corresponding name record data from the cache buffer and send it back to the client, thereby speeding up the name query speed of the client.

例如,当DNS客户端向指定的DNS服务器查询网际网路上的某一台主机名称,DNS服务器会在该资料库中找寻用户所指定的名称,如果没有,该服务器会在自己的快取缓存区中查询有无该笔名称记录,如果 找到对应的名称记录,则从DNS服务器直接将所对应到的IP地址传回给客户端,如果名称服务器在资料记录查不到,且快取缓存区中也没有对应的名称记录,服务器才会向别的名称服务器查询所要的名称。 For example, when the DNS client queries the specified DNS server for a host name on the Internet, the DNS server will look for the name specified by the user in the database. If there is a name record in the query, if the corresponding name record is found, the corresponding IP address will be sent back to the client directly from the DNS server. If the name server cannot be found in the data record and the cache cache If there is no corresponding name record, the server will query other name servers for the desired name.

或如,DNS客户端向指定的DNS服务器查询网际网路上某台主机名称,当DNS服务器在该资料记录找不到用户所指定的名称时,会转向该服务器的快取缓存区找寻是否有该资料,当快取缓存区也找不到时,会向最接近的名称服务器去要求帮忙找寻该名称的IP地址,在另一台服务器上也用相同的动作执行查询操作,当查询到后会回复原本要求查询的源服务器,该源DNS服务器在接收到另一台DNS服务器查询的结果后,先将所查询到的主机名称及对应IP地址记录到快取缓存区中,最后在将所查询到的结果回复给客户端。 Or, for example, the DNS client queries the designated DNS server for the name of a certain host on the Internet. When the DNS server cannot find the name specified by the user in the data record, it will turn to the cache cache of the server to find out whether there is such a name. information, when the cache cache area cannot be found, it will ask the nearest name server to help find the IP address of the name, and perform the query operation with the same action on another server, and when it is found, it will Reply to the source server that originally requested the query. After receiving the query result from another DNS server, the source DNS server first records the queried host name and corresponding IP address in the cache buffer, and finally saves the queried The result is returned to the client.

本申请的主要思想在于,实现了不调用Windows WinSock API实现DNS协议的机制,通过将需要解析的域名同时异步并发发送给多个DNS服务器,一旦有DNS服务器响应返回,则客户端解析IP地址,若IP地址多于1个,则根据不同网段进行筛选并存入侯选IP地址列表,客户端遍历侯选IP地址列表,异步发送建立连接服务器请求,并根据各应用服务器对所述连接请求的响应状态信息,确定最优应用服务器。 The main idea of this application is to realize the mechanism of DNS protocol without calling Windows WinSock API. By sending the domain name to be resolved to multiple DNS servers asynchronously and concurrently, once the DNS server responds back, the client resolves the IP address. If there are more than one IP address, it will be screened according to different network segments and stored in the list of candidate IP addresses, the client will traverse the list of candidate IP addresses, send a request to establish a connection to the server asynchronously, and respond to the connection request according to each application server Response status information to determine the optimal application server.

参照图1,示出了本申请的一种域名系统DNS的最优应用服务器选取方法实施例1的步骤流程图,具体可以包括以下步骤: Referring to FIG. 1 , it shows a flow chart of the steps of Embodiment 1 of a method for selecting an optimal application server of a domain name system DNS according to the present application, which may specifically include the following steps:

步骤101:客户端向多个DNS服务器同时发送DNS查询请求; Step 101: the client sends DNS query requests to multiple DNS servers simultaneously;

在实际中,所述DNS查询请求中包括域名,可以由客户端根据预先设置的DNS服务器列表,向列表中指定的多个DNS服务器异步并发发送。在具体应用中,可以通过I/O Completion port机制(完成端口)实现异步并发的发送机制。 In practice, the DNS query request includes the domain name, which can be sent asynchronously and concurrently by the client to multiple DNS servers specified in the list according to the preset DNS server list. In a specific application, the asynchronous and concurrent sending mechanism can be realized through the I/O Completion port mechanism (completion port).

步骤102:当有DNS服务器根据所述DNS查询请求向客户端返回域名对应的IP地址,客户端根据所述IP地址生成候选IP地址列表; Step 102: When a DNS server returns the IP address corresponding to the domain name to the client according to the DNS query request, the client generates a candidate IP address list according to the IP address;

若有DNS服务器根据客户端发起的DNS查询请求返回域名对应的IP 地址,则客户端将接收到的IP地址,逐个插入候选IP地址列表,然后可以根据是否在同一网段进行排重处理。 If a DNS server returns the IP address corresponding to the domain name according to the DNS query request initiated by the client, the client will insert the received IP addresses into the list of candidate IP addresses one by one, and then perform deduplication processing according to whether they are in the same network segment.

具体而言,在本申请的一种优选实施例中,所述客户端可以通过以下子步骤根据IP地址生成候选IP地址列表: Specifically, in a preferred embodiment of the present application, the client can generate a list of candidate IP addresses according to the IP addresses through the following sub-steps:

子步骤S01:获取所述IP地址所属的网段; Sub-step S01: Obtain the network segment to which the IP address belongs;

子步骤S02:从各网段提取一个IP地址写入候选IP地址列表。 Sub-step S02: Extract an IP address from each network segment and write it into the list of candidate IP addresses.

在具体实现中,同一网段的IP地址可以只保留第一个IP地址作为候选最优IP,并插入候选IP地址列表中。 In a specific implementation, only the first IP address of the IP addresses on the same network segment may be reserved as the candidate optimal IP, and inserted into the list of candidate IP addresses.

例如:返回的IP地址集合为: For example: the returned IP address set is:

202.101.22.35 202.101.22.35

202.101.22.36 202.101.22.36

202.102.21.23 202.102.21.23

202.102.21.25 202.102.21.25

其中,202.101.22.35和202.101.22.36属于同一网段的IP地址,202.102.21.23和202.102.21.25属于同一网段的IP地址。 Among them, 202.101.22.35 and 202.101.22.36 belong to the IP addresses of the same network segment, and 202.102.21.23 and 202.102.21.25 belong to the IP addresses of the same network segment.

提取各网段中的第一个IP地址,202.101.22.35和202.102.21.23,将这两个IP地址写入候选IP地址列表中,如下表所示: Extract the first IP address in each network segment, 202.101.22.35 and 202.102.21.23, and write these two IP addresses into the candidate IP address list, as shown in the following table:

在实际中,所述IP地址对应应用服务器的地址。在实际中,如果DNS服务器根据所述DNS查询请求在预设时间内向客户端未返回域名对应的IP地址,则向客户端返回错误提示信息。 In practice, the IP address corresponds to the address of the application server. In practice, if the DNS server does not return the IP address corresponding to the domain name to the client within the preset time according to the DNS query request, it returns an error message to the client.

本申请仍然采用UDP协议作为DNS协议的传输层协议,但是以异步并发方式发送多个DNS查询请求给多个DNS服务器,由于采用异步并发的方式实现,当有DNS服务器响应返回请求中域名对应的IP地址时, 客户端立即解析,不受DNS服务器个数的增加而影响整体解析响应时间。由于每个DNS服务器的请求及响应时间不同,因而可以获得最快的DNS响应。从而解决了现有技术中Windows系统DNS解析服务不支持多DNS并发请求,解析服务不可靠并且耗时时间较长的缺陷;再者,本申请实现了DNS服务器配置策略,并且不受DNS服务器个数的增加而影响整体解析速度。满足各种网络应用需求。从而解决了现有技术中Windows系统DNS解析服务是面向全系统的,不具备特定应用程序可配置DNS服务器,不能满足某些网络应用需求的缺陷。 This application still uses the UDP protocol as the transport layer protocol of the DNS protocol, but sends multiple DNS query requests to multiple DNS servers in an asynchronous and concurrent manner. The client resolves the IP address immediately, and the overall resolution response time is not affected by the increase in the number of DNS servers. Since the request and response time of each DNS server is different, the fastest DNS response can be obtained. Thereby solving the defect that the Windows system DNS resolution service does not support multiple DNS concurrent requests in the prior art, the resolution service is unreliable and takes a long time; moreover, the application implements the DNS server configuration strategy, and is not affected by individual DNS servers. The increase of the number will affect the overall analysis speed. Meet various network application requirements. Thereby, the defect that the DNS resolution service of the Windows system in the prior art is oriented to the whole system, does not have a specific application program to configure the DNS server, and cannot meet the requirements of some network applications is solved.

步骤103:客户端根据所述侯选IP地址列表,向各IP地址对应的应用服务器同时发送连接请求; Step 103: The client sends a connection request to the application server corresponding to each IP address according to the candidate IP address list;

客户端对候选IP地址列表中的所有候选IP地址进行遍历,并异步向各IP地址对应的应用服务器发起连接请求。 The client traverses all the candidate IP addresses in the candidate IP address list, and asynchronously initiates a connection request to the application server corresponding to each IP address.

步骤104:依据各应用服务器对所述连接请求的响应状态信息,确定最优应用服务器。 Step 104: Determine the optimal application server according to the response status information of each application server to the connection request.

作为本申请实施例具体应用的示例,可以选择连接时间最少的应用服务器作为最优应用服务器,也可以选择下载速度最快的应用服务器作为最优应用服务器。 As an example of a specific application of the embodiment of the present application, the application server with the shortest connection time may be selected as the optimal application server, or the application server with the fastest download speed may be selected as the optimal application server.

具体而言,在本申请的一种优选实施例中,所述步骤103可以包括: Specifically, in a preferred embodiment of the present application, the step 103 may include:

子步骤S11:若在预设时间内,有应用服务器第一时间响应所述连接请求,则中断与其它应用服务器的连接,将当前应用服务器确定为最优应用服务器。 Sub-step S11: If an application server responds to the connection request within the preset time, the connection with other application servers is terminated, and the current application server is determined as the optimal application server.

例如:假设预设的接收应用服务器连接的时间为100ms,客户端向候选IP地址列表中各候选IP地址对应的应用服务器发出连接请求后,有一个候选IP地址对应的应用服务器A第一个作出了响应,其接收请求并作出响应的耗时是20ms。在收到这个应用服务器A的响应后,客户端立刻取消当前所有网络连接事件,不等待其它应用服务器的响应,把应用服务器A作为最优应用服务器返回给客户端。 For example: Assume that the preset time for receiving an application server connection is 100ms, after the client sends a connection request to the application server corresponding to each candidate IP address in the candidate IP address list, there is an application server A corresponding to a candidate IP address that is the first to make a connection request. It takes 20ms to receive the request and make a response. After receiving the response from the application server A, the client immediately cancels all current network connection events without waiting for responses from other application servers, and returns the application server A as the optimal application server to the client.

在本申请的另一种优选实施例中,所述步骤103还可以包括: In another preferred embodiment of the present application, the step 103 may also include:

子步骤S12:若超出预设时间后,有多台应用服务器响应所述连接请求,则对各台应用服务器的连接时间进行排序,将连接时间最短的应用服务器确定为最优应用服务器。 Sub-step S12: If more than one application server responds to the connection request after the preset time, sort the connection time of each application server, and determine the application server with the shortest connection time as the optimal application server.

例如:假设预设的接收应用服务器连接的时间为100ms,客户端向候选IP地址列表中各候选IP地址对应的应用服务器发出连接请求后,等待了100ms后未收到任何一个应用服务器作出的响应,但在110ms时有一个应用服务器B作出了响应,在120ms时有一个应用服务器C作出了响应,在150ms时有一个应用服务器D作出了响应,在180ms时有一个应用服务器E作出了响应;在这种情况下,通过按照所述连接耗时进行排序,将连接时间最短的应用服务器作为最优应用服务器返回给客户端。 For example: Assuming that the preset time for receiving application server connections is 100ms, after the client sends a connection request to the application server corresponding to each candidate IP address in the candidate IP address list, it has not received any response from any application server after waiting for 100ms , but an application server B responded at 110ms, an application server C responded at 120ms, an application server D responded at 150ms, and an application server E responded at 180ms; In this case, by sorting according to the connection time, the application server with the shortest connection time is returned to the client as the optimal application server.

本实施例通过选择连接时间最少的应用服务器作为最优应用服务器,当客户端再次提交同一DNS查询请求时,直接采用这个最优应用服务器的IP地址进行网络连接即可,而无需重新提交至DNS服务器解析查找对应的应用服务器,从而实现了DNS解析服务的加速优化,达到了网络加速的目的。 In this embodiment, the application server with the least connection time is selected as the optimal application server. When the client submits the same DNS query request again, it can directly use the IP address of the optimal application server for network connection without resubmitting to DNS. The server resolves to find the corresponding application server, thereby realizing the acceleration and optimization of DNS resolution services and achieving the purpose of network acceleration.

在本申请的另一种优选实施例中,所述步骤103具体可以包括: In another preferred embodiment of the present application, the step 103 may specifically include:

子步骤S21:当客户端所发送的DNS查询请求为基于http协议的DNS查询请求时,获取响应所述连接请求的应用服务器的下载速度,将下载速度最快的应用服务器确定为最优应用化服务器。 Sub-step S21: When the DNS query request sent by the client is a DNS query request based on the http protocol, obtain the download speed of the application server responding to the connection request, and determine the application server with the fastest download speed as the optimal application server. server.

在具体应用中,当客户端所发送的DNS查询请求为基于HTTP协议的DNS查询请求时,则立即发起HTTP Get命令获取该域名的根URL,并根据每个候选IP地址对应的应用服务器的下载速度进行排序,选择下载速度最快的服务器地址作为最优应用服务器返回给客户端。 In a specific application, when the DNS query request sent by the client is a DNS query request based on the HTTP protocol, it immediately initiates an HTTP Get command to obtain the root URL of the domain name, and downloads the corresponding application server according to each candidate IP address. The speed is sorted, and the server address with the fastest download speed is selected as the optimal application server to return to the client.

在本申请的另一种优选实施例中,所述步骤104:客户端向多个DNS服务器同时发送DNS查询请求之前,还包括: In another preferred embodiment of the present application, the step 104: before the client sends DNS query requests to multiple DNS servers simultaneously, further includes:

当接收到在后的同一DNS查询请求时,直接由所述最优应用服务器向客户端返回所请求域名的对应IP地址,所述IP地址为该最优应用服务器的地址; When receiving the following same DNS query request, the corresponding IP address of the requested domain name is directly returned to the client by the optimal application server, and the IP address is the address of the optimal application server;

读取最优应用服务器的缓存,获得当前所请求的域名; Read the cache of the optimal application server to obtain the currently requested domain name;

判断所述域名及对应IP地址记录的生命周期TTL信息是否过期,若否,则将该最优服务器的IP地址返回给客户端; Judging whether the life cycle TTL information of the domain name and the corresponding IP address record has expired, if not, returning the IP address of the optimal server to the client;

若判断所述域名及对应IP地址记录的生命周期TTL信息过期,则跳转上述实施例中101步骤,重新确定最优应用服务器。 If it is judged that the life cycle TTL information of the domain name and the corresponding IP address record has expired, jump to step 101 in the above embodiment, and re-determine the optimal application server.

本实施例通过选择下载速度最快的应用服务器作为最优应用服务器,当客户端再次提交同一DNS查询请求时,直接采用这个最优应用服务器的IP地址进行网络连接即可,而无需重新提交至DNS服务器解析查找对应的应用服务器,从而实现了DNS解析服务的加速优化,达到了网络加速的目的。 In this embodiment, the application server with the fastest download speed is selected as the optimal application server. When the client submits the same DNS query request again, it can directly use the IP address of the optimal application server for network connection without resubmitting to The DNS server resolves and finds the corresponding application server, thereby realizing the accelerated optimization of the DNS resolution service and achieving the purpose of network acceleration.

参照图2,示出了本申请的一种域名系统DNS的最优应用服务器选取方法实施例2的步骤流程图,具体可以包括以下步骤: Referring to FIG. 2 , it shows a flow chart of the steps of Embodiment 2 of a method for selecting an optimal application server of a domain name system DNS according to the present application, which may specifically include the following steps:

步骤201:各客户端查询其缓存中是否有当前待请求查询的域名的对应IP地址的记录,若有,则执行步骤202;否则,执行步骤204; Step 201: each client inquires whether there is a record corresponding to the IP address of the domain name to be requested to be queried in its cache, and if so, executes step 202; otherwise, executes step 204;

步骤202:判断所述域名及对应IP地址记录的生命周期TTL信息是否过期,若否,则执行步骤203;若是,则执行步骤204; Step 202: Determine whether the life cycle TTL information of the domain name and the corresponding IP address record has expired, if not, execute step 203; if yes, execute step 204;

在实际中,若所述域名及对应IP地址记录的生命周期TTL信息已经过期,可以将其在客户端缓存中删除。步骤203:直接提取所述IP地址; In practice, if the life cycle TTL information of the domain name and corresponding IP address record has expired, it can be deleted from the client cache. Step 203: extracting the IP address directly;

步骤204:客户端向多个DNS服务器同时发送DNS查询请求; Step 204: the client sends DNS query requests to multiple DNS servers simultaneously;

步骤205:当有DNS服务器根据所述DNS查询请求向客户端返回域名对应的IP地址,客户端根据所述IP地址生成候选IP地址列表; Step 205: When the DNS server returns the IP address corresponding to the domain name to the client according to the DNS query request, the client generates a candidate IP address list according to the IP address;

步骤206:客户端根据所述侯选IP地址列表,向各IP地址对应的应用服务器同时发送连接请求; Step 206: The client sends a connection request to the application server corresponding to each IP address at the same time according to the list of candidate IP addresses;

步骤207:依据各应用服务器对所述连接请求的响应状态信息,确定最优应用服务器。 Step 207: Determine the optimal application server according to the response status information of each application server to the connection request.

步骤208:将当前域名及对应最优服务器的IP地址写入客户端的缓存中,并记录所述域名及对应IP地址记录的生命周期TTL信息。 Step 208: Write the current domain name and the IP address of the corresponding optimal server into the cache of the client, and record the life cycle TTL information of the domain name and the corresponding IP address.

在具体实现中,所述客户端的缓存可以为内存map,在host文件中记录了所述域名及对应IP地址的数据。可以以DLL(代码数据库)形式提供模块初始化、反初始化、DNS优化IP查询接口。 In a specific implementation, the cache of the client may be a memory map, and the data of the domain name and the corresponding IP address are recorded in the host file. It can provide module initialization, deinitialization, and DNS optimization IP query interface in the form of DLL (code database).

一、模块初始化接口:指定DNS缓存文件路径和模块配置文件路径。 1. Module initialization interface: specify the DNS cache file path and module configuration file path.

int Init(TCHAR*szDnsCachePath,TCHAR*szConfigPath); int Init(TCHAR*szDnsCachePath, TCHAR*szConfigPath);

1、创建加载DNS解析缓存初始化线程;其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”。因为当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从host文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统再会将网址提交DNS域名解析服务器进行IP地址的解析。 1. Create and load the DNS resolution cache initialization thread; its function is to establish an associated "database" between some commonly used website domain names and their corresponding IP addresses. Because when the user enters a URL that needs to be logged in in the browser, the system will first automatically search for the corresponding IP address from the host file. Once found, the system will immediately open the corresponding webpage. If not found, the system will submit the URL to DNS The domain name resolution server performs resolution of the IP address.

a、加载host文件(host是一个没有扩展名的系统文件)到内存map; a. Load the host file (host is a system file without extension) to the memory map;

b、加载DNS缓存文件保存记录到内存map; b. Load the DNS cache file and save the record to the memory map;

2、创建客户端与应用服务器之间的管道,等待客户端连接。 2. Create a pipeline between the client and the application server, and wait for the client to connect.

上述步骤的作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”。因为当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从host文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统再会将网址提交DNS域名解析服务器进行IP地址的解析。 The function of the above steps is to establish an association "database" between some commonly used website domain names and their corresponding IP addresses. Because when the user enters a URL that needs to be logged in in the browser, the system will first automatically search for the corresponding IP address from the host file. Once found, the system will immediately open the corresponding webpage. If not found, the system will submit the URL to DNS The domain name resolution server performs resolution of the IP address.

二、模块反初始化接口:卸载模块。 2. Module de-initialization interface: unload the module.

int UnInit(); int UnInit();

1、保存内存map中保存的DNS服务器优化IP地址数据到DNS缓存文件中。内存map是在客户端;在每次需要解析域名的时候,首先读取缓存;如果缓存中存在该域名的DNS解析记录,则返回其IP地址; 1. Save the optimized IP address data of the DNS server saved in the memory map to the DNS cache file. The memory map is on the client side; every time a domain name needs to be resolved, the cache is first read; if there is a DNS resolution record for the domain name in the cache, its IP address is returned;

2、通知更新线程停止工作; 2. Notify the update thread to stop working;

3、通知管道服务器停止工作。 3. Notify the pipeline server to stop working.

三、获得优化IP(通过连接测速或下载测速获得的优选IP地址) 3. Obtain an optimized IP (optimized IP address obtained through connection speed measurement or download speed measurement)

1、先从内存map中查找域名是否命中,若命中,且生命周期未过期(TTL),则直接返回。否则继续下一步; 1. First check whether the domain name is hit from the memory map. If it is hit and the life cycle has not expired (TTL), it will return directly. Otherwise continue to the next step;

2、检查nodename(获取特定结点类型的名称)是否为IP地址格式。若是,则直接返回;若不是,则继续下一步; 2. Check whether nodename (get the name of a specific node type) is in IP address format. If yes, return directly; if not, continue to the next step;

3、检查nodename是否为localhost(一个特殊的DNS主机名,代表分配给引用这个名称的计算机的IP地址)或本地主机名。若是直接返回127.0.0.1;若不是,则继续下一步; 3. Check if nodename is localhost (a special DNS hostname that represents the IP address assigned to the computer referencing this name) or the local hostname. If it returns directly to 127.0.0.1; if not, continue to the next step;

4、遍历DNS服务器,构造用以或得IPV4地址的DNS A命令DNS查询包数据缓冲区,DNS服务器序列号累加; 4. Traversing the DNS server, constructing the DNS A command DNS query packet data buffer for obtaining the IPV4 address, and accumulating the serial number of the DNS server;

5、调用ParseDns(),以异步并发方式发送DNS查询包给多个DNS服务器; 5. Call ParseDns() to send DNS query packets to multiple DNS servers in an asynchronous and concurrent manner;

6、解析DNS服务器返回IP地址列表; 6. Analyze the DNS server and return the list of IP addresses;

7、调用WSAConnect(),与应用服务器建立连接; 7. Call WSAConnect() to establish a connection with the application server;

8、建立连接成功后,立即关闭,记录连接耗时; 8. After the connection is successfully established, it will be closed immediately, and the connection time will be recorded;

9、根据耗时最小返回应用服务器IP地址; 9. Return the IP address of the application server according to the minimum time consumption;

10、若域名解析请求发起者是HTTP协议,则建立连接后立即发起HTTP GET命令获取该域名的根URL。根据下载速度最快进行排序,选择下载速度最快的作为最优应用服务器IP地址返回给调用者。 10. If the initiator of the domain name resolution request is the HTTP protocol, immediately initiate the HTTP GET command to obtain the root URL of the domain name after the connection is established. Sort according to the fastest download speed, select the one with the fastest download speed as the optimal application server IP address and return it to the caller.

为使本领域技术人员更好地理解本申请,以下通过一个DNS网络加速时序图说明本申请实施例的优点。 In order to enable those skilled in the art to better understand the present application, the advantages of the embodiment of the present application are described below through a sequence diagram of DNS network acceleration.

cip Candidate IP(侯选IP) cip Candidate IP (candidate IP)

oip Optimized IP(最优IP) oip Optimized IP (optimal IP)

tp Type(0-parse failed|1-Parse ok,only single ip|2-parse ok,acceptable connect time|3-parse ok,sorted|4-parse OK,sorted httpget|5-parse OK,parameter is ip format) tp Type(0-parse failed|1-Parse ok, only single ip|2-parse ok, acceptable connect time|3-parse ok, sorted|4-parse OK, sorted httpget|5-parse OK, parameter is ip format )

ip IP address(optimized) ip IP address (optimized)

ds DNS Server Ip address(DNS服务器IP地址) ds DNS Server Ip address (DNS server IP address)

ttl DNS parsed IP ttl(DNS解析的IP地址的时间生存期) ttl DNS parsed IP ttl (time lifetime of DNS parsed IP address)

de DNS Elapsed(ms)(DNS解析服务耗时) de DNS Elapsed(ms) (DNS resolution service time-consuming)

st DNS UDP SendTo timestamp(ms)(DNS解析请求系统时间戳) st DNS UDP SendTo timestamp(ms) (DNS resolution request system timestamp)

cb Connect begin timestamp(ms)(连接DNS解析的IP地址应用服务器系统时间戳) cb Connect begin timestamp(ms) (connect to the DNS-analyzed IP address application server system timestamp)

rf DNS UDP RecfFrom timestamp(ms)(DNS解析应答系统时间戳) rf DNS UDP RecfFrom timestamp(ms) (DNS resolution response system timestamp)

ae DNS+Connect elapsed(ms)(DNS解析以及连接应用服务器总耗时) ae DNS+Connect elapsed(ms) (total time spent on DNS resolution and connection to the application server)

ct Connect elapsed(ms)-1means not connected(连接应用服务器耗时) ct Connect elapsed(ms)-1means not connected (time-consuming to connect to the application server)

st Is connected?(是否连接) st Is connected? (whether connected)

H host(域名) H host (domain name)

减号线是DNS UDP的发起到结束时间线 The minus line is the timeline from the initiation to the end of DNS UDP

等于号是连接DNS服务器解析IP的地址发起到结束时间线 The equal sign is the timeline from the initiation to the end of connecting to the DNS server to resolve the IP address

--------->de00016(ms)ds220.181.126.8========================>ct00047ip=222.222.198.93 --------->de00016(ms)ds220.181.126.8==========================>ct00047ip=222.222.198.93

->de00000(ms)ds192.168.0.222================================>ct00063ip=119.147.105.185 ->de00000(ms)ds192.168.0.222==================================>ct00063ip=119.147.105.185

->de00000(ms)ds115.182.38.43================================>ct00063ip=221.192.150.94 ->de00000(ms)ds115.182.38.43==================================>ct00063ip=221.192.150.94

->de00000(ms)ds115.182.38.43================================>ct00063ip=60.217.241.31 ->de00000(ms)ds115.182.38.43==================================>ct00063ip=60.217.241.31

->de00000(ms)ds115.182.38.43========================================>ct00078ip=221.206.124.245 ->de00000(ms)ds115.182.38.43=========================================== =>ct00078ip=221.206.124.245

->de00000(ms)ds115.182.38.43========================================>ct00078ip=122.136.65.130 ->de00000(ms)ds115.182.38.43=========================================== =>ct00078ip=122.136.65.130

--------------------------------------------------------------->de00125(ms)ds111.13.49.13=================>ct00032ip=221.192.146.60 -------------------------------------------------- ------------->de00125(ms)ds111.13.49.13==================>ct00032ip=221.192.146.60

sorted by connect elapsed time! sorted by connect elapsed time!

No.01cip=221.192.146.60ds=111.13.49.13ttl=000062(s)st=233643093(ms)rf=233643218(ms)de=00125(ms)ae=00157(ms)cb=233643218(ms)ct=00032(ms)st=1 No.01cip=221.192.146.60ds=111.13.49.13ttl=000062(s)st=233643093(ms)rf=233643218(ms)de=00125(ms)ae=00157(ms)cb=233643218(ms)ct= 00032(ms)st=1

No.02cip=222.222.198.93ds=220.181.126.8ttl=000061(s)st=233643093(ms)rf=233643109(ms)de=00016(ms)ae=00063(ms)cb=233643109(ms)ct=00047(ms)st=1 No.02cip=222.222.198.93ds=220.181.126.8ttl=000061(s)st=233643093(ms)rf=233643109(ms)de=00016(ms)ae=00063(ms)cb=233643109(ms)ct= 00047(ms)st=1

No.03cip=60.217.241.31ds=115.182.38.43ttl=000061(s)st=233643093(ms)rf=233643093(ms)de=00000(ms)ae=00063(ms)cb=233643093(ms)ct=00063(ms)st=1 No.03cip=60.217.241.31ds=115.182.38.43ttl=000061(s)st=233643093(ms)rf=233643093(ms)de=00000(ms)ae=00063(ms)cb=233643093(ms)ct= 00063(ms)st=1

No.04cip=221.192.150.94ds=115.182.38.43ttl=000061(s)st=233643093(ms)rf=233643093(ms)de=00000(ms)ae=00063(ms)cb=233643093(ms)ct=00063(ms)st=1 No.04cip=221.192.150.94ds=115.182.38.43ttl=000061(s)st=233643093(ms)rf=233643093(ms)de=00000(ms)ae=00063(ms)cb=233643093(ms)ct= 00063(ms)st=1

No.05cip=119.147.105.185ds=192.168.0.222ttl=000119(s)st=233643093(ms)rf=233643093(ms)de=00000(ms)ae=00063(ms)cb=233643093(ms)ct=00063(ms)st=1 No.05cip=119.147.105.185ds=192.168.0.222ttl=000119(s)st=233643093(ms)rf=233643093(ms)de=00000(ms)ae=00063(ms)cb=233643093(ms)ct= 00063(ms)st=1

No.06cip=122.136.65.130ds=115.182.38.43ttl=000061(s)st=233643093(ms)rf=233643093(ms)de=00000(ms)ae=00078(ms)cb=233643093(ms)ct=00078(ms)st=1 No.06cip=122.136.65.130ds=115.182.38.43ttl=000061(s)st=233643093(ms)rf=233643093(ms)de=00000(ms)ae=00078(ms)cb=233643093(ms)ct= 00078(ms)st=1

No.07cip=221.206.124.245ds=115.182.38.43ttl=000061(s)st=233643093(ms)rf=233643093(ms)de=00000(ms)ae=00078(ms)cb=233643093(ms)ct=00078(ms)st=1 No.07cip=221.206.124.245ds=115.182.38.43ttl=000061(s)st=233643093(ms)rf=233643093(ms)de=00000(ms)ae=00078(ms)cb=233643093(ms)ct= 00078(ms)st=1

oip=221.192.146.60ds=111.13.49.13ttl=000062(s)st=233643093(ms)rf=233643218(ms)de=00125(ms)ae=00157(ms)cb=233643218(ms)ct=00032(ms)st=1 oip=221.192.146.60ds=111.13.49.13ttl=000062(s)st=233643093(ms)rf=233643218(ms)de=00125(ms)ae=00157(ms)cb=233643218(ms)ct=00032( ms)st=1

fast ip IS NOT choiced by local primary DNS,DNS accelerator raito=1.969 m_StatusCode=0m_dwElapsed=00532m_ParseType=3 fast ip IS NOT chosen by local primary DNS, DNS accelerator raito=1.969 m_StatusCode=0m_dwElapsed=00532m_ParseType=3

从以上数据看出,DNS服务器220.181.126.8响应时间16ms,连接解析的应用服务器222.222.198.93连接耗时为47毫秒。 From the above data, it can be seen that the response time of the DNS server 220.181.126.8 is 16ms, and the connection resolution of the application server 222.222.198.93 takes 47ms.

DNS服务器192.168.0.222响应时间0ms,连接解析的应用服务器119.147.105.185连接耗时为63毫秒。 The response time of the DNS server 192.168.0.222 is 0ms, and the connection resolution of the application server 119.147.105.185 takes 63 milliseconds.

DNS服务器111.13.49.13响应时间125ms,连接解析的应用服务器221.192.146.60连接耗时为32毫秒。 The response time of DNS server 111.13.49.13 is 125ms, and the connection time of application server 221.192.146.60 for connection resolution is 32ms.

根据连接速度排序,选择连接时间耗时最小的作为优选IP。 Sort according to the connection speed, and choose the one with the smallest connection time as the preferred IP.

需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请所必须的。 It should be noted that, for the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the application is not limited by the described action sequence, because according to this application, certain steps may be performed in another order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by this application.

参考图3,示出了本申请一种域名系统DNS的最优应用服务器选取装置实施例的结构图,可以包括: Referring to FIG. 3 , it shows a structural diagram of an embodiment of an optimal application server selection device of a domain name system DNS according to the present application, which may include:

域名请求模块301:用于由客户端向多个DNS服务器同时发送DNS查询请求,所述DNS查询请求中包括域名; Domain name request module 301: used for sending DNS query requests to multiple DNS servers simultaneously by the client, where the DNS query requests include domain names;

候选IP地址列表生成模块302:用于在有DNS服务器根据所述DNS查询请求向客户端返回域名对应的IP地址,由客户端根据所述IP地址生成候选IP地址列表; Candidate IP address list generation module 302: used for returning the IP address corresponding to the domain name to the client according to the DNS query request by the DNS server, and generating the candidate IP address list by the client according to the IP address;

IP地址连接请求模块303:用于由客户端根据所述侯选IP地址列表,向各IP地址对应的应用服务器同时发送连接请求; IP address connection request module 303: used for the client to simultaneously send connection requests to the application servers corresponding to each IP address according to the candidate IP address list;

最优应用服务器确定模块304:用于依据各应用服务器对所述连接请求的响应状态信息,确定最优应用服务器。 Optimal application server determination module 304: for determining the optimal application server according to the response state information of each application server to the connection request.

在本申请的一个优选实施例中,所述的装置还可以包括: In a preferred embodiment of the present application, the device may also include:

域名信息记录模块:用于将当前域名及对应最优服务器的IP地址写入客户端的缓存中,并记录所述域名及对应IP地址记录的生命周期TTL信 息。 Domain name information recording module: used to write the current domain name and the IP address of the corresponding optimal server into the cache of the client, and record the life cycle TTL information of the domain name and the corresponding IP address record.

作为本申请实施例具体应用的一种示例,还可以包括: As an example of the specific application of the embodiment of this application, it may also include:

客户端缓存查询模块:用于客户端查询其缓存中是否有当前待请求查询的域名的对应IP地址的记录,若有,则判断所述域名及对应IP地址记录的生命周期TTL信息是否过期,若否,则直接提取所述IP地址。 Client cache query module: used for the client to query whether there is a record corresponding to the IP address of the domain name to be requested to query in its cache, and if so, to determine whether the life cycle TTL information of the domain name and the corresponding IP address record has expired, If not, the IP address is extracted directly.

在本申请的一个优选实施例中,所述最优应用服务器确定模块可以进一步包括以下子模块: In a preferred embodiment of the present application, the optimal application server determination module may further include the following submodules:

第一时间最优应用服务器确定子模块:用于在预设时间内,有应用服务器第一时间响应所述连接请求时,中断与其它应用服务器的连接,将当前应用服务器确定为最优应用服务器。 The sub-module for determining the optimal application server at the first time: used to interrupt the connection with other application servers when an application server responds to the connection request at the first time within the preset time, and determine the current application server as the optimal application server .

在本申请的一个优选实施例中,所述最优应用服务器确定模块可以进一步包括以下子模块: In a preferred embodiment of the present application, the optimal application server determination module may further include the following submodules:

连接时间最优应用服务器确定子模块:用于超出预设时间后,有多台应用服务器响应所述连接请求时,对各台应用服务器的连接时间进行排序,将连接时间最短的应用服务器确定为最优应用服务器。 Optimal connection time application server determination sub-module: used to sort the connection time of each application server when multiple application servers respond to the connection request after the preset time is exceeded, and determine the application server with the shortest connection time as Optimal application server.

在本申请的一个优选实施例中,所述最优应用服务器确定模块可以进一步包括以下子模块: In a preferred embodiment of the present application, the optimal application server determination module may further include the following submodules:

下载速度最优应用服务器确定子模块:用于在客户端所发送的DNS查询请求为基于http协议的DNS查询请求时,获取响应所述连接请求的应用服务器的下载速度,将下载速度最快的应用服务器确定为最优应用服务器。 Optimal download speed application server determination submodule: used to obtain the download speed of the application server that responds to the connection request when the DNS query request sent by the client is a DNS query request based on the http protocol, and download the fastest The application server is determined as the optimal application server.

在具体实现中,所述候选IP地址列表生成模块302可以包括: In a specific implementation, the candidate IP address list generating module 302 may include:

网段获取子模块:获取所述IP地址所属的网段; The network segment obtaining submodule: obtaining the network segment to which the IP address belongs;

IP地址提取子模块:用于从各网段提取一个IP地址写入候选IP地址列表。 IP address extraction sub-module: used to extract an IP address from each network segment and write it into the list of candidate IP addresses.

对于系统实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。 As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the related parts, please refer to the part of the description of the method embodiment.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点 说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。 Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and the same and similar parts between the various embodiments can be referred to each other.

本申请可用于众多通用或专用的计算系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。 The application can be used in numerous general purpose or special purpose computing system environments or configurations. Examples: personal computers, server computers, handheld or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, including A distributed computing environment for any of the above systems or devices, etc.

本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。 This application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

以上对本申请所提供的域名系统DNS的最优应用服务器选取方法,及一种域名系统DNS的最优应用服务器选取装置。,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。 The method for selecting the optimal application server of the domain name system DNS and the device for selecting the optimal application server of the domain name system DNS are provided above in this application. , has been introduced in detail, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only used to help understand the method and core ideas of the present application; at the same time, for general Technical personnel, according to the idea of this application, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be construed as limiting the application.

Claims (13)

1.一种应用服务器选取方法,其包括:1. A method for selecting an application server, comprising: 向多个DNS服务器发送DNS查询请求,所述DNS查询请求中包括域名;Send a DNS query request to multiple DNS servers, where the DNS query request includes a domain name; 依据从所述DNS服务器返回的与所述域名对应的IP地址生成候选IP地址列表;generating a candidate IP address list according to the IP address corresponding to the domain name returned from the DNS server; 向与所述侯选IP地址列表中的各IP地址对应的应用服务器发送连接请求;Send a connection request to the application server corresponding to each IP address in the candidate IP address list; 依据各应用服务器对所述连接请求的响应状态信息选取一应用服务器。An application server is selected according to the response state information of each application server to the connection request. 2.如权利要求1所述的方法,还包括:2. The method of claim 1, further comprising: 将当前域名及所选取的应用服务器的IP地址写入缓存中,并记录所述域名及对应IP地址记录的生命周期TTL信息。Write the current domain name and the IP address of the selected application server into the cache, and record the life cycle TTL information of the domain name and the corresponding IP address record. 3.如权利要求2所述的方法,其中,在向多个DNS服务器发送DNS查询请求之前,还包括:3. The method according to claim 2, wherein, before sending DNS query requests to a plurality of DNS servers, further comprising: 查询缓存中是否有当前待请求查询的域名的对应IP地址的记录;Query whether there is a record of the corresponding IP address of the domain name to be queried currently in the query cache; 如果有,则判断所述域名及对应IP地址记录的生命周期TTL信息是否过期;If so, then determine whether the life cycle TTL information of the domain name and the corresponding IP address record expires; 如果没有过期,则直接提取所述IP地址。If not expired, the IP address is extracted directly. 4.如权利要求1、2或3所述的方法,其中,所述依据各应用服务器对所述连接请求的响应状态信息选取一应用服务器包括:4. The method according to claim 1, 2 or 3, wherein said selecting an application server according to the response state information of each application server to the connection request comprises: 如果在预设时间内有应用服务器第一时间响应所述连接请求,则中断与其它应用服务器的连接并选取当前应用服务器。If an application server responds to the connection request within the preset time, the connection with other application servers is interrupted and the current application server is selected. 5.如权利要求1至4中任一项所述的方法,其中,所述依据各应用服务器对所述连接请求的响应状态信息选取一应用服务器包括:5. The method according to any one of claims 1 to 4, wherein said selecting an application server according to the response status information of each application server to the connection request comprises: 如果超出预设时间后有多台应用服务器响应所述连接请求,则对各台应用服务器的连接时间进行排序;If there are multiple application servers responding to the connection request after the preset time, the connection time of each application server is sorted; 选取连接时间最短的应用服务器。Select the application server with the shortest connection time. 6.如权利要求1、2或3所述的方法,其中,所述依据各应用服务器对所述连接请求的响应状态信息选取一应用服务器包括:6. The method according to claim 1, 2 or 3, wherein said selecting an application server according to the response status information of each application server to the connection request comprises: 当所述DNS查询请求为基于HTTP协议的DNS查询请求时,获取响应所述连接请求的应用服务器的下载速度;When the DNS query request is a DNS query request based on the HTTP protocol, obtain the download speed of the application server responding to the connection request; 选取下载速度最快的应用服务器。Choose the application server with the fastest download speed. 7.如权利要求1至6中任一项所述的方法,其中,依据从所述DNS服务器返回的与所述域名对应的IP地址生成候选IP地址列表进一步包括:7. The method according to any one of claims 1 to 6, wherein generating a list of candidate IP addresses according to the IP address corresponding to the domain name returned from the DNS server further comprises: 获取从所述DNS服务器返回的与所述域名对应的IP地址所属的网段;Obtain the network segment to which the IP address corresponding to the domain name returned from the DNS server belongs; 从各网段提取一个IP地址写入候选IP地址列表。Extract an IP address from each network segment and write it into the candidate IP address list. 8.一种网络连接方法,其包括:8. A network connection method, comprising: 查询缓存中是否有当前待请求查询的域名的对应IP地址的记录;Query whether there is a record of the corresponding IP address of the domain name to be queried currently in the query cache; 如果有,则判断所述域名及对应IP地址记录的生命周期TTL信息是否过期,否则向多个DNS服务器发送DNS查询请求,所述DNS查询请求中包括域名;If there is, then judge whether the life cycle TTL information of the domain name and the corresponding IP address record expires, otherwise send a DNS query request to a plurality of DNS servers, including the domain name in the DNS query request; 如果没有过期,则直接提取所述IP地址以进行网络连接,否则向多个DNS服务器发送DNS查询请求,所述DNS查询请求中包括域名;If not expired, then directly extract the IP address for network connection, otherwise send DNS query requests to multiple DNS servers, including domain names in the DNS query requests; 依据从所述DNS服务器返回的与所述域名对应的IP地址生成候选IP地址列表;generating a candidate IP address list according to the IP address corresponding to the domain name returned from the DNS server; 向与所述侯选IP地址列表中的各IP地址对应的应用服务器发送连接请求;Send a connection request to the application server corresponding to each IP address in the candidate IP address list; 依据各应用服务器对所述连接请求的响应状态信息选取一应用服务器进行网络连接。An application server is selected for network connection according to the response status information of each application server to the connection request. 9.如权利要求8所述的方法,还包括:9. The method of claim 8, further comprising: 将当前域名及所选取的应用服务器的IP地址写入缓存中,并记录所述域名及对应IP地址记录的生命周期TTL信息。Write the current domain name and the IP address of the selected application server into the cache, and record the life cycle TTL information of the domain name and the corresponding IP address record. 10.如权利要求8或9所述的方法,其中,所述依据各应用服务器对所述连接请求的响应状态信息选取一应用服务器进行网络连接包括:10. The method according to claim 8 or 9, wherein said selecting an application server for network connection according to the response state information of each application server to the connection request comprises: 如果在预设时间内有应用服务器第一时间响应所述连接请求,则中断与其它应用服务器的连接并选取当前应用服务器进行网络连接。If an application server responds to the connection request within the preset time, the connection with other application servers is interrupted and the current application server is selected for network connection. 11.如权利要求8至10中任一项所述的方法,其中,所述依据各应用服务器对所述连接请求的响应状态信息选取一应用服务器进行网络连接包括:11. The method according to any one of claims 8 to 10, wherein said selecting an application server for network connection according to the response state information of each application server to the connection request comprises: 如果超出预设时间后有多台应用服务器响应所述连接请求,则对各台应用服务器的连接时间进行排序;If multiple application servers respond to the connection request after the preset time, sort the connection time of each application server; 选取连接时间最短的应用服务器进行网络连接。Select the application server with the shortest connection time for network connection. 12.如权利要求8或9所述的方法,其中,所述依据各应用服务器对所述连接请求的响应状态信息选取一应用服务器进行网络连接包括:12. The method according to claim 8 or 9, wherein said selecting an application server for network connection according to the response state information of each application server to the connection request comprises: 当所述DNS查询请求为基于HTTP协议的DNS查询请求时,获取响应所述连接请求的应用服务器的下载速度;When the DNS query request is a DNS query request based on the HTTP protocol, obtain the download speed of the application server responding to the connection request; 选取下载速度最快的应用服务器进行网络连接。Select the application server with the fastest download speed for network connection. 13.如权利要求8至12中任一项所述的方法,其中,依据从所述DNS服务器返回的与所述域名对应的IP地址生成候选IP地址列表进一步包括:13. The method according to any one of claims 8 to 12, wherein generating a list of candidate IP addresses according to the IP address corresponding to the domain name returned from the DNS server further comprises: 获取从所述DNS服务器返回的与所述域名对应的IP地址所属的网段;Obtain the network segment to which the IP address corresponding to the domain name returned from the DNS server belongs; 从各网段提取一个IP地址写入候选IP地址列表。Extract an IP address from each network segment and write it into the candidate IP address list.
CN201410062729.1A 2011-09-29 2011-09-29 Application server selection method and network connection method Pending CN104065761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410062729.1A CN104065761A (en) 2011-09-29 2011-09-29 Application server selection method and network connection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410062729.1A CN104065761A (en) 2011-09-29 2011-09-29 Application server selection method and network connection method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201110294802.4A Division CN102340554B (en) 2011-09-29 2011-09-29 Optimal application server selection method and device for domain name system (DNS)

Publications (1)

Publication Number Publication Date
CN104065761A true CN104065761A (en) 2014-09-24

Family

ID=51553288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410062729.1A Pending CN104065761A (en) 2011-09-29 2011-09-29 Application server selection method and network connection method

Country Status (1)

Country Link
CN (1) CN104065761A (en)

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210155A (en) * 2015-04-29 2016-12-07 腾讯科技(深圳)有限公司 The method and apparatus connecting application server
CN106713454A (en) * 2016-12-22 2017-05-24 腾讯科技(深圳)有限公司 Network connection method and device
CN107454205A (en) * 2017-07-31 2017-12-08 北京北信源软件股份有限公司 A kind of method and apparatus of connection server
CN107743149A (en) * 2017-11-20 2018-02-27 广州华多网络科技有限公司 Method for network access, device and terminal
CN108270882A (en) * 2018-01-24 2018-07-10 腾讯科技(深圳)有限公司 The analysis method and device of domain name, storage medium, electronic device
CN108366277A (en) * 2018-03-30 2018-08-03 武汉斗鱼网络科技有限公司 A kind of barrage server connection method, client and readable storage medium storing program for executing
CN108429779A (en) * 2017-02-15 2018-08-21 上海众人信息技术有限公司 A kind of method for down loading and system of the application system based on mobile terminal
EP3422675A1 (en) * 2017-06-26 2019-01-02 Koninklijke KPN N.V. A method of requesting a resource by simultaneously transmitting the same request message to a plurality of servers
CN109660411A (en) * 2019-02-25 2019-04-19 北京云中融信网络科技有限公司 A kind of method and device of optimization instant messaging network link connection
CN109921961A (en) * 2019-03-29 2019-06-21 深圳市思迪信息技术股份有限公司 Multistation spot net speed-measuring method and device based on mobile platform
CN110381174A (en) * 2019-07-06 2019-10-25 杭州安恒信息技术股份有限公司 It is a kind of based on the high speed domain name analytic method statelessly scanned
CN111106994A (en) * 2019-11-25 2020-05-05 福建天泉教育科技有限公司 Method and storage medium for improving push efficiency
CN111163190A (en) * 2020-01-14 2020-05-15 上海曼恒数字技术股份有限公司 Method and system for acquiring server IP (Internet protocol) from cross-network segment
CN111212156A (en) * 2020-01-15 2020-05-29 中国银联股份有限公司 Network connection method and device
CN111343299A (en) * 2020-03-12 2020-06-26 宋磊 Multi-protocol active detection type intelligent DNS and method thereof
CN111405083A (en) * 2020-03-25 2020-07-10 深信服科技股份有限公司 DNS (Domain name Server) analysis method, device, equipment and readable storage medium
CN111414208A (en) * 2020-03-13 2020-07-14 百度在线网络技术(北京)有限公司 Application program starting method, device and equipment
CN111490908A (en) * 2019-01-29 2020-08-04 北京京东尚科信息技术有限公司 Network speed measurement method, device, equipment, medium and speed measurement system
CN112436981A (en) * 2020-11-16 2021-03-02 成都渊数科技有限责任公司 Method and system for measuring network flow by cloud control strategy and multi-protocol implementation
CN112653736A (en) * 2020-12-10 2021-04-13 北京金山云网络技术有限公司 Parallel source returning method and device and electronic equipment
CN113099261A (en) * 2021-04-27 2021-07-09 上海哔哩哔哩科技有限公司 Node processing method and device and node processing system
CN113438336A (en) * 2021-06-24 2021-09-24 平安科技(深圳)有限公司 Network request method, device, equipment and storage medium
CN113589675A (en) * 2021-08-10 2021-11-02 贵州省计量测试院 Network time synchronization method and system with traceability
CN114172863A (en) * 2020-08-21 2022-03-11 北京金山云网络技术有限公司 Internet protocol address searching method, device, readable medium and equipment
CN114500548A (en) * 2022-04-13 2022-05-13 杭州觅睿科技股份有限公司 Method and system for accessing equipment terminal to cloud platform and related components
CN115333765A (en) * 2022-06-24 2022-11-11 国家工业信息安全发展研究中心 Network traffic screening method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055979A1 (en) * 2001-09-19 2003-03-20 Cooley William Ray Internet domain name resolver
US20060277278A1 (en) * 2005-06-06 2006-12-07 International Business Machines Corporation Distributing workload among DNS servers
CN101483648A (en) * 2009-02-20 2009-07-15 杭州华三通信技术有限公司 Method, system, apparatus and DNS server for DNS buffer probe
CN101841577A (en) * 2010-06-07 2010-09-22 中兴通讯股份有限公司 Method and device for implementing domain name resolution agent function

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030055979A1 (en) * 2001-09-19 2003-03-20 Cooley William Ray Internet domain name resolver
US20060277278A1 (en) * 2005-06-06 2006-12-07 International Business Machines Corporation Distributing workload among DNS servers
CN101483648A (en) * 2009-02-20 2009-07-15 杭州华三通信技术有限公司 Method, system, apparatus and DNS server for DNS buffer probe
CN101841577A (en) * 2010-06-07 2010-09-22 中兴通讯股份有限公司 Method and device for implementing domain name resolution agent function

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210155A (en) * 2015-04-29 2016-12-07 腾讯科技(深圳)有限公司 The method and apparatus connecting application server
CN106713454A (en) * 2016-12-22 2017-05-24 腾讯科技(深圳)有限公司 Network connection method and device
CN108429779A (en) * 2017-02-15 2018-08-21 上海众人信息技术有限公司 A kind of method for down loading and system of the application system based on mobile terminal
EP3422675A1 (en) * 2017-06-26 2019-01-02 Koninklijke KPN N.V. A method of requesting a resource by simultaneously transmitting the same request message to a plurality of servers
CN107454205A (en) * 2017-07-31 2017-12-08 北京北信源软件股份有限公司 A kind of method and apparatus of connection server
CN107743149A (en) * 2017-11-20 2018-02-27 广州华多网络科技有限公司 Method for network access, device and terminal
CN107743149B (en) * 2017-11-20 2021-03-16 广州华多网络科技有限公司 Network access method, device and terminal
CN108270882A (en) * 2018-01-24 2018-07-10 腾讯科技(深圳)有限公司 The analysis method and device of domain name, storage medium, electronic device
CN108270882B (en) * 2018-01-24 2022-03-11 腾讯科技(深圳)有限公司 Domain name resolution method and device, storage medium and electronic device
CN108366277A (en) * 2018-03-30 2018-08-03 武汉斗鱼网络科技有限公司 A kind of barrage server connection method, client and readable storage medium storing program for executing
CN108366277B (en) * 2018-03-30 2021-06-15 武汉斗鱼网络科技有限公司 Bullet screen server connection method, client and readable storage medium
CN111490908A (en) * 2019-01-29 2020-08-04 北京京东尚科信息技术有限公司 Network speed measurement method, device, equipment, medium and speed measurement system
CN109660411A (en) * 2019-02-25 2019-04-19 北京云中融信网络科技有限公司 A kind of method and device of optimization instant messaging network link connection
CN109921961A (en) * 2019-03-29 2019-06-21 深圳市思迪信息技术股份有限公司 Multistation spot net speed-measuring method and device based on mobile platform
CN110381174B (en) * 2019-07-06 2021-12-07 杭州安恒信息技术股份有限公司 High-speed domain name resolution method based on stateless scanning
CN110381174A (en) * 2019-07-06 2019-10-25 杭州安恒信息技术股份有限公司 It is a kind of based on the high speed domain name analytic method statelessly scanned
CN111106994A (en) * 2019-11-25 2020-05-05 福建天泉教育科技有限公司 Method and storage medium for improving push efficiency
CN111163190A (en) * 2020-01-14 2020-05-15 上海曼恒数字技术股份有限公司 Method and system for acquiring server IP (Internet protocol) from cross-network segment
CN111212156B (en) * 2020-01-15 2022-11-11 中国银联股份有限公司 A kind of network connection method and device
CN111212156A (en) * 2020-01-15 2020-05-29 中国银联股份有限公司 Network connection method and device
CN111343299B (en) * 2020-03-12 2022-07-05 宋磊 A kind of multi-protocol active detection type intelligent DNS and method thereof
CN111343299A (en) * 2020-03-12 2020-06-26 宋磊 Multi-protocol active detection type intelligent DNS and method thereof
CN111414208B (en) * 2020-03-13 2023-08-01 百度在线网络技术(北京)有限公司 Application program starting method, device and equipment
CN111414208A (en) * 2020-03-13 2020-07-14 百度在线网络技术(北京)有限公司 Application program starting method, device and equipment
CN111405083A (en) * 2020-03-25 2020-07-10 深信服科技股份有限公司 DNS (Domain name Server) analysis method, device, equipment and readable storage medium
CN114172863A (en) * 2020-08-21 2022-03-11 北京金山云网络技术有限公司 Internet protocol address searching method, device, readable medium and equipment
CN114172863B (en) * 2020-08-21 2024-04-26 北京金山云网络技术有限公司 Method, device, readable medium and equipment for searching internet protocol address
CN112436981B (en) * 2020-11-16 2021-10-15 成都渊数科技有限责任公司 Method and system for measuring network flow by cloud control strategy and multi-protocol implementation
CN112436981A (en) * 2020-11-16 2021-03-02 成都渊数科技有限责任公司 Method and system for measuring network flow by cloud control strategy and multi-protocol implementation
CN112653736A (en) * 2020-12-10 2021-04-13 北京金山云网络技术有限公司 Parallel source returning method and device and electronic equipment
CN113099261A (en) * 2021-04-27 2021-07-09 上海哔哩哔哩科技有限公司 Node processing method and device and node processing system
CN113438336A (en) * 2021-06-24 2021-09-24 平安科技(深圳)有限公司 Network request method, device, equipment and storage medium
CN113438336B (en) * 2021-06-24 2022-07-08 平安科技(深圳)有限公司 Network request method, device, equipment and storage medium
CN113589675A (en) * 2021-08-10 2021-11-02 贵州省计量测试院 Network time synchronization method and system with traceability
CN114500548A (en) * 2022-04-13 2022-05-13 杭州觅睿科技股份有限公司 Method and system for accessing equipment terminal to cloud platform and related components
CN114500548B (en) * 2022-04-13 2022-09-09 杭州觅睿科技股份有限公司 Method and system for accessing equipment terminal to cloud platform and related components
CN115333765A (en) * 2022-06-24 2022-11-11 国家工业信息安全发展研究中心 Network traffic screening method and system

Similar Documents

Publication Publication Date Title
CN104065761A (en) Application server selection method and network connection method
CN103957283A (en) Optimal-application-server selection method and device for domain name system
CN102340554B (en) Optimal application server selection method and device for domain name system (DNS)
US10778554B2 (en) Latency measurement in resource requests
CN1578320B (en) Network load balancing with main machine status information
CN107948324B (en) request transmission system, method, device and storage medium
US8244864B1 (en) Transparent migration of TCP based connections within a network load balancing system
CN1607781B (en) Network load balancing with connection manipulation
US6182139B1 (en) Client-side resource-based load-balancing with delayed-resource-binding using TCP state migration to WWW server farm
CN108200165B (en) request transmission system, method, device and storage medium
RU2464722C2 (en) Method, device and system for distribution of messages
US20120159595A1 (en) Third party initiation of communications between remote parties
CN108200158B (en) request transmission system, method, device and storage medium
CN111212156B (en) A kind of network connection method and device
CN102667509A (en) System and method for providing faster and more efficient data communication
KR101378435B1 (en) Handoff and optimization module of a network protocol stack
US10084862B2 (en) Session control method and computer-readable storage medium storing computer program
CN102984223B (en) A kind of message method, the network equipment and system
CN107613037A (en) Method and system for domain name redirection
US9350765B2 (en) Multi-session web acceleration
JP2005039820A (en) Virtual connection with local connection conversion
CN115714778B (en) SIP dynamic load balancing method, system, equipment and storage medium
WO2019201072A1 (en) Cdn service scheduling processing method and cdn server
CN110719307A (en) Data transmission method, client, server and computer-readable storage medium
CN109120556B (en) A kind of method and system of cloud host access object storage server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140924