[go: up one dir, main page]

CN102970391B - Inquiry of the domain name processing method, server and system - Google Patents

Inquiry of the domain name processing method, server and system Download PDF

Info

Publication number
CN102970391B
CN102970391B CN201210523971.5A CN201210523971A CN102970391B CN 102970391 B CN102970391 B CN 102970391B CN 201210523971 A CN201210523971 A CN 201210523971A CN 102970391 B CN102970391 B CN 102970391B
Authority
CN
China
Prior art keywords
test period
isp server
byte
server
isp
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.)
Active
Application number
CN201210523971.5A
Other languages
Chinese (zh)
Other versions
CN102970391A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210523971.5A priority Critical patent/CN102970391B/en
Publication of CN102970391A publication Critical patent/CN102970391A/en
Application granted granted Critical
Publication of CN102970391B publication Critical patent/CN102970391B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供一种域名查询处理方法、服务器及系统,包括:接收用户终端发送的域名查询请求;确定各ISP服务器中剩余网络处理能力最强的第一ISP服务器;将所述第一ISP服务器的IP地址反馈给所述用户终端。本发明实施例的DNS服务器通过在接收用户终端发送的域名查询请求之后,先确定当前各ISP服务器中剩余网络处理能力最强的第一ISP服务器,再将该第一ISP服务器的IP地址反馈给用户终端,实现对其所管理的网络中各ISP服务器资源的合理利用和网络负荷的合理分配,也使用户终端在访问网站时所连接的ISP服务器为当前网络中剩余网络处理能力最强的ISP服务器,从而提高用户终端访问网站的成功率及访问速度,从而提高用户满意度。

Embodiments of the present invention provide a domain name query processing method, server, and system, including: receiving a domain name query request sent by a user terminal; determining the first ISP server with the strongest remaining network processing capability among each ISP server; The IP address of the server is fed back to the user terminal. The DNS server in the embodiment of the present invention first determines the first ISP server with the strongest remaining network processing capability among the current ISP servers after receiving the domain name query request sent by the user terminal, and then feeds back the IP address of the first ISP server to the The user terminal realizes the reasonable utilization of ISP server resources and the reasonable distribution of network load in the network it manages, and also makes the ISP server connected to the user terminal when accessing the website be the ISP with the strongest remaining network processing capacity in the current network server, so as to improve the success rate and access speed of user terminals accessing websites, thereby improving user satisfaction.

Description

域名查询处理方法、服务器及系统Domain name query processing method, server and system

技术领域technical field

本发明实施例涉及通信技术,尤其涉及一种域名查询处理方法、服务器及系统。Embodiments of the present invention relate to communication technologies, and in particular to a domain name query processing method, server and system.

背景技术Background technique

域名系统(Domain Name System,简称:DNS)是一种为互联网用户提供域名(Domain Name)和网际协议(Internet Protocol,简称:IP)地址转换的服务系统。Domain Name System (DNS for short) is a service system that provides Internet users with domain name (Domain Name) and Internet Protocol (Internet Protocol, short: IP) address conversion service system.

随着互联网技术的普及,互联网服务提供商(Internet Service Provider,简称:ISP)无法用单台ISP服务器支持来自互联网上大量用户的访问,ISP需要为自己的网站部署多台ISP服务器来实现负荷分担。这些ISP服务器都映射到该网站的域名,即同一域名,但各台ISP服务器分别使用各自不同的IP地址。DNS服务器上记录有域名与各台ISP服务器的IP地址之间的映射关系,称为资源记录(Resource Record,简称:RR)。用户终端通过域名访问某网站时,DNS服务器可以从数据库中选取一条RR,把该RR对应的IP地址提供给用户终端,从而使得用户终端可以根据该IP地址访问对应的ISP服务器。With the popularization of Internet technology, Internet Service Providers (Internet Service Providers, referred to as: ISP) cannot use a single ISP server to support access from a large number of users on the Internet. ISPs need to deploy multiple ISP servers for their websites to achieve load sharing. . These ISP servers are all mapped to the domain name of the website, that is, the same domain name, but each ISP server uses its own different IP address. The mapping relationship between the domain name and the IP address of each ISP server is recorded on the DNS server, which is called a Resource Record (Resource Record, RR for short). When a user terminal accesses a website through a domain name, the DNS server can select an RR from the database and provide the IP address corresponding to the RR to the user terminal, so that the user terminal can access the corresponding ISP server according to the IP address.

现有技术的DNS服务器采用对RR进行轮询的方式向用户终端提供ISP服务器的IP地址,当某台ISP服务器发生故障或离线,或者某台ISP服务器的负载已经较大时,DNS服务器仍然会将它的IP地址提供给用户终端,从而导致用户终端对网站的访问失败或者访问速度较低。The DNS server in the prior art provides the IP address of the ISP server to the user terminal by polling the RR. When a certain ISP server fails or goes offline, or the load of a certain ISP server is already heavy, the DNS server will still Its IP address is provided to the user terminal, thereby causing the user terminal to fail or have a low access speed to the website.

发明内容Contents of the invention

有鉴于此,本发明实施例提供一种域名查询处理方法、服务器及系统,以实现对网络负荷的合理分担,并提高用户终端访问网站的成功率及访问速度。In view of this, the embodiments of the present invention provide a domain name query processing method, server and system, so as to realize reasonable sharing of network loads and improve the success rate and access speed of user terminals accessing websites.

第一方面,本发明实施例提供一种域名查询处理方法,包括:接收用户终端发送的域名查询请求;确定各ISP服务器中剩余网络处理能力最强的第一ISP服务器;将所述第一ISP服务器的IP地址反馈给所述用户终端。In the first aspect, an embodiment of the present invention provides a domain name query processing method, including: receiving a domain name query request sent by a user terminal; determining the first ISP server with the strongest remaining network processing capability among each ISP server; The IP address of the server is fed back to the user terminal.

在第一方面的第一种可能的实现方式中,所述确定各ISP服务器中剩余网络处理能力最强的第一ISP服务器之前,还包括:查询与各ISP服务器对应的RR,获取各ISP服务器的剩余网络处理能力。In the first possible implementation of the first aspect, before determining the first ISP server with the strongest remaining network processing capability among the ISP servers, it also includes: querying the RR corresponding to each ISP server, and obtaining the RR of each ISP server of remaining network processing capacity.

根据第一方面或第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述接收用户终端发送的域名查询请求之前,还包括:向各ISP服务器查询获取各ISP服务器的接口统计数据;根据所述接口统计数据,确定各ISP服务器的剩余网络处理能力。According to the first aspect or the first possible implementation of the first aspect, in the second possible implementation, before receiving the domain name query request sent by the user terminal, it further includes: querying each ISP server to obtain the domain name query request of each ISP Statistical data of the interface of the server; according to the statistical data of the interface, the remaining network processing capacity of each ISP server is determined.

根据第一方面的第二种可能的实现方式,在第三种可能的实现方式中,还包括:若连续N次向ISP服务器查询接口统计数据失败,则确定所述ISP服务器离线,所述N为大于2的整数。According to the second possible implementation of the first aspect, in the third possible implementation, it further includes: if the ISP server fails to query the interface statistics data for N consecutive times, determining that the ISP server is offline, and the N is an integer greater than 2.

根据第一方面的第二种可能的实现方式,在第四种可能的实现方式中,所述向各ISP服务器查询获取各ISP服务器的接口统计数据,包括:According to the second possible implementation of the first aspect, in the fourth possible implementation, the querying each ISP server to obtain the interface statistics data of each ISP server includes:

向各ISP服务器发送SNMP协议的能力查询请求报文;Send a capability query request message of the SNMP protocol to each ISP server;

接收各ISP服务器反馈的SNMP协议的能力查询响应报文,各能力查询响应报文中包含对应的ISP服务器的接口统计数据。The capability query response message of the SNMP protocol fed back by each ISP server is received, and each capability query response message includes the interface statistical data of the corresponding ISP server.

根据第一方面的第二种可能的实现方式,在第五种可能的实现方式中,所述接口统计数据为MIB-2中的网络接口项ifEntry中的至少一种数据。According to the second possible implementation manner of the first aspect, in a fifth possible implementation manner, the interface statistical data is at least one type of data in the network interface entry ifEntry in MIB-2.

根据第一方面的第五种可能的实现方式,在第六种可能的实现方式中,所述接口统计数据,包括:According to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors;The maximum number of packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors;

所述根据所述接口统计数据,确定各ISP服务器的剩余网络处理能力,包括:According to the interface statistical data, determining the remaining network processing capacity of each ISP server includes:

根据公式(1)获得所述剩余网络处理能力E:Obtain the remaining network processing capacity E according to formula (1):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors)×ifMtu) (1)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors)×ifMtu) (1)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数,⊿ifInErrors为测试周期内因发生错误而丢弃的输入分组数,⊿ifOutErrors为测试周期内因错误而丢弃的输出分组数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received during the test period, ⊿ifOutOctets is the number of bytes sent during the test period, ⊿ifInErrors is the number of input packets discarded due to errors during the test period, and ⊿ifOutErrors is The number of output packets dropped due to errors during the test period.

根据第一方面的第五种可能的实现方式,在第七种可能的实现方式中,所述接口统计数据,包括:According to the fifth possible implementation manner of the first aspect, in the seventh possible implementation manner, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards;The maximum number of packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets discarded by the ISP server CPU because it is too late to process ifInDiscards, the number of output packets discarded because the interface is too late to send ifOutDiscards;

所述根据所述接口统计数据,确定各ISP服务器的剩余网络处理能力,包括:According to the interface statistical data, determining the remaining network processing capacity of each ISP server includes:

根据公式(2)获得所述剩余网络处理能力E:Obtain the remaining network processing capacity E according to formula (2):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards)×ifMtu) (2)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards)×ifMtu) (2)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数,⊿ifInErrors为测试周期内因发生错误而丢弃的输入分组数,⊿ifOutErrors为测试周期内因错误而丢弃的输出分组数,⊿ifInDiscards为测试周期内ISP服务器CPU因来不及处理而丢弃的输入分组数,⊿ifOutDiscards为测试周期内接口来不及发送而丢弃的输出分组数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received during the test period, ⊿ifOutOctets is the number of bytes sent during the test period, ⊿ifInErrors is the number of input packets discarded due to errors during the test period, and ⊿ifOutErrors is The number of output packets discarded due to errors during the test period, ⊿ifInDiscards is the number of input packets discarded by the ISP server CPU because it is too late to process during the test period, and ⊿ifOutDiscards is the number of output packets discarded because the interface is too late to send during the test period.

根据第一方面的第五种可能的实现方式,在第八种可能的实现方式中,所述接口统计数据,包括:According to the fifth possible implementation manner of the first aspect, in an eighth possible implementation manner, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards,ISP服务器因接收到无效协议而丢弃的输入分组数ifInUnknownProtos;The maximum number of packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets discarded by the ISP server CPU because it was too late to process ifInDiscards, the number of output packets discarded because the interface was too late to send ifOutDiscards, the number of input packets discarded by the ISP server because it received an invalid protocol ifInUnknownProtos;

所述根据所述接口统计数据,确定各ISP服务器的剩余网络处理能力,包括:According to the interface statistical data, determining the remaining network processing capacity of each ISP server includes:

根据公式(3)获得所述剩余网络处理能力E:Obtain the remaining network processing capacity E according to formula (3):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards+⊿ifInUnknownProtos)×ifMtu) (3)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards+⊿ifInUnknownProtos)×ifMtu) (3)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数,⊿ifInErrors为测试周期内因发生错误而丢弃的输入分组数,⊿ifOutErrors为测试周期内因错误而丢弃的输出分组数,⊿ifInDiscards为测试周期内ISP服务器CPU因来不及处理而丢弃的输入分组数,⊿ifOutDiscards为测试周期内接口来不及发送而丢弃的输出分组数,⊿ifInUnknownProtos为测试周期内ISP服务器因接收到无效协议而丢弃的输入分组数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received during the test period, ⊿ifOutOctets is the number of bytes sent during the test period, ⊿ifInErrors is the number of input packets discarded due to errors during the test period, and ⊿ifOutErrors is The number of output packets discarded due to errors during the test period, ⊿ifInDiscards is the number of input packets discarded by the ISP server CPU because it is too late to process during the test period, ⊿ifOutDiscards is the number of output packets discarded because the interface is too late to send during the test period, ⊿ifInUnknownProtos is the number of test The number of incoming packets discarded by the ISP server during the period due to receipt of an invalid protocol.

根据第一方面的第五种可能的实现方式,在第九种可能的实现方式中,所述接口统计数据,包括:According to the fifth possible implementation of the first aspect, in the ninth possible implementation, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,已发送的字节总数ifOutOctets;The maximum number of bytes of data packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, the total number of bytes sent ifOutOctets;

所述根据所述接口统计数据,确定各ISP服务器的剩余网络处理能力,包括:According to the interface statistical data, determining the remaining network processing capacity of each ISP server includes:

根据公式(4)获得所述剩余网络处理能力E:Obtain the remaining network processing capacity E according to formula (4):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets) (4)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets) (4)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received in the test period, and ⊿ifOutOctets is the number of bytes sent in the test period.

根据第一方面的第五种可能的实现方式,在第十种可能的实现方式中,所述接口统计数据,包括:According to the fifth possible implementation manner of the first aspect, in the tenth possible implementation manner, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,接收并递送到上层的单播分组数ifInUcastPkts,接收并递送到上层的多播分组数ifInNUcastPkts,从上层接收并发送出去的单播分组数ifOutUcastPkts,从上层接收并发送出去的多播分组数ifOutNUcastPkts;The maximum number of data packets that can be transmitted ifMtu, the bandwidth ifSpeed, the number of unicast packets received and delivered to the upper layer ifInUcastPkts, the number of multicast packets received and delivered to the upper layer ifInNUcastPkts, the number of unicast packets received and sent from the upper layer ifOutUcastPkts , the number of multicast packets received and sent out from the upper layer ifOutNUcastPkts;

所述根据所述接口统计数据,确定各ISP服务器的剩余网络处理能力,包括:According to the interface statistical data, determining the remaining network processing capacity of each ISP server includes:

根据公式(5)获得所述剩余网络处理能力E:Obtain the remaining network processing capacity E according to formula (5):

E=∑(ifSpeed×T/8–(⊿ifInUcastPkts+⊿ifInNUcastPkts)×ifMtu–(⊿⊿ifOutUcastPkts+⊿ifOutNUcastPkts)×ifMtu) (5)E=∑(ifSpeed×T/8–(⊿ifInUcastPkts+⊿ifInNUcastPkts)×ifMtu–(⊿⊿ifOutUcastPkts+⊿ifOutNUcastPkts)×ifMtu) (5)

其中,T为测试周期,⊿ifInUcastPkts为在测试周期内接收并递送到上层的单播分组数,⊿ifInNUcastPkts为在测试周期内接收并递送到上层的多播分组数,⊿ifOutUcastPkts为在测试周期内从上层接收并发送出去的单播分组数,⊿ifOutNUcastPkts为在测试周期内从上层接收并发送出去的多播分组数。Among them, T is the test period, ⊿ifInUcastPkts is the number of unicast packets received and delivered to the upper layer during the test period, ⊿ifInNUcastPkts is the number of multicast packets received and delivered to the upper layer during the test period, ⊿ifOutUcastPkts is the number of multicast packets received and delivered to the upper layer during the test period, ⊿ifOutUcastPkts is the number of The number of unicast packets received and sent out from the upper layer, ⊿ifOutNUcastPkts is the number of multicast packets received and sent out from the upper layer during the test period.

第二方面,本发明实施例提供一种域名查询处理方法,包括:In a second aspect, an embodiment of the present invention provides a domain name query processing method, including:

接收DNS服务器发送的SNMP协议的能力查询请求报文;Receive the capability query request message of the SNMP protocol sent by the DNS server;

向所述DNS服务器反馈SNMP协议的能力查询响应报文,所述能力查询响应报文中包含接口统计数据。Feedback a capability query response message of the SNMP protocol to the DNS server, where the capability query response message includes interface statistics data.

在第二方面的第一种可能的实现方式中,所述接口统计数据为MIB-2中的网络接口项ifEntry中的至少一种数据。In a first possible implementation manner of the second aspect, the interface statistical data is at least one type of data in the network interface entry ifEntry in MIB-2.

根据第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述接口统计数据,包括:According to the first possible implementation of the second aspect, in the second possible implementation, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors。The maximum number of packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors.

根据第二方面的第一种可能的实现方式,在第三种可能的实现方式中,所述接口统计数据,包括:According to the first possible implementation of the second aspect, in a third possible implementation, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards。The maximum number of packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets ifInDiscards discarded by the ISP server CPU because it is too late to process, and the number of output packets ifOutDiscards discarded because the interface is too late to send.

根据第二方面的第一种可能的实现方式,在第四种可能的实现方式中,所述接口统计数据,包括:According to the first possible implementation of the second aspect, in a fourth possible implementation, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards,ISP服务器因接收到无效协议而丢弃的输入分组数ifInUnknownProtos。The maximum number of packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets discarded by the ISP server CPU because it was too late to process ifInDiscards, the number of output packets discarded because the interface was too late to send ifOutDiscards, the number of input packets discarded by the ISP server because it received an invalid protocol ifInUnknownProtos.

根据第二方面的第一种可能的实现方式,在第五种可能的实现方式中,所述接口统计数据,包括:According to the first possible implementation of the second aspect, in a fifth possible implementation, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets、已发送的字节总数ifOutOctets。The maximum number of bytes of data packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of received bytes ifInOctets, and the total number of sent bytes ifOutOctets.

根据第二方面的第一种可能的实现方式,在第六种可能的实现方式中,所述接口统计数据,包括:According to the first possible implementation of the second aspect, in a sixth possible implementation, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,接收并递送到上层的单播分组数ifInUcastPkts,接收并递送到上层的多播分组数ifInNUcastPkts,从上层接收并发送出去的单播分组数ifOutUcastPkts,从上层接收并发送出去的多播分组数ifOutNUcastPkts。The maximum number of data packets that can be transmitted ifMtu, the bandwidth ifSpeed, the number of unicast packets received and delivered to the upper layer ifInUcastPkts, the number of multicast packets received and delivered to the upper layer ifInNUcastPkts, the number of unicast packets received and sent from the upper layer ifOutUcastPkts , the number of multicast packets received and sent from the upper layer ifOutNUcastPkts.

第三方面,本发明实施例提供一种DNS服务器,包括:In a third aspect, an embodiment of the present invention provides a DNS server, including:

接收模块,用于接收用户终端发送的域名查询请求;选择模块,用于确定各ISP服务器中剩余网络处理能力最强的第一ISP服务器;反馈模块,用于将所述第一ISP服务器的IP地址反馈给所述用户终端。The receiving module is used to receive the domain name query request sent by the user terminal; the selection module is used to determine the first ISP server with the strongest remaining network processing capability among the ISP servers; the feedback module is used to send the IP address of the first ISP server The address is fed back to the user terminal.

在第三方面的第一种可能的实现方式中,所述的DNS服务器,还包括:查询模块,用于查询与各ISP服务器对应的RR,获取各ISP服务器的剩余网络处理能力。In a first possible implementation manner of the third aspect, the DNS server further includes: a query module, configured to query the RRs corresponding to each ISP server, and obtain the remaining network processing capacity of each ISP server.

根据第三方面或第三方面的第一种可能的实现方式,在第二种可能的实现方式中,还包括:统计模块,用于向各ISP服务器查询获取各ISP服务器的接口统计数据,根据所述接口统计数据,确定各ISP服务器的剩余网络处理能力。According to the third aspect or the first possible implementation of the third aspect, in the second possible implementation, it also includes: a statistical module, configured to query each ISP server to obtain the interface statistical data of each ISP server, according to The interface statistics data determine the remaining network processing capacity of each ISP server.

根据第三方面的第二种可能的实现方式,在第三种可能的实现方式中,还包括:判定模块,用于若连续N次向ISP服务器查询接口统计数据失败,则确定所述ISP服务器离线,所述N为大于2的整数。According to the second possible implementation of the third aspect, in the third possible implementation, it further includes: a judging module, configured to determine that the ISP server fails to query the interface statistics data from the ISP server for N consecutive times. Offline, the N is an integer greater than 2.

根据第三方面的第二种可能的实现方式,在第四种可能的实现方式中,所述统计模块,包括:发送单元,用于向各ISP服务器发送SNMP协议的能力查询请求报文;接收单元,用于接收各ISP服务器反馈的SNMP协议的能力查询响应报文,各能力查询响应报文中包含对应的ISP服务器的接口统计数据。According to the second possible implementation of the third aspect, in the fourth possible implementation, the statistical module includes: a sending unit, configured to send a capability query request message of the SNMP protocol to each ISP server; The unit is configured to receive the capability query response message of the SNMP protocol fed back by each ISP server, and each capability query response message includes the interface statistical data of the corresponding ISP server.

根据第三方面的第二种可能的实现方式,在第五种可能的实现方式中,所述接口统计数据为MIB-2中的网络接口项ifEntry中的至少一种数据。According to the second possible implementation manner of the third aspect, in a fifth possible implementation manner, the interface statistical data is at least one type of data in the network interface entry ifEntry in the MIB-2.

根据第三方面的第五种可能的实现方式,在第六种可能的实现方式中,所述接口统计数据,包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors;According to the fifth possible implementation of the third aspect, in the sixth possible implementation, the interface statistics include: the maximum number of transmittable data packet bytes ifMtu, bandwidth ifSpeed, received bytes Total ifInOctets, number of input packets discarded due to errors ifInErrors, total number of bytes sent ifOutOctets, number of output packets discarded due to errors ifOutErrors;

所述统计模块,具体用于:The statistical module is specifically used for:

根据公式(1)获得所述剩余网络处理能力E:Obtain the remaining network processing capacity E according to formula (1):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors)×ifMtu) (1)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors)×ifMtu) (1)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数,⊿ifInErrors为测试周期内因发生错误而丢弃的输入分组数,⊿ifOutErrors为测试周期内因错误而丢弃的输出分组数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received during the test period, ⊿ifOutOctets is the number of bytes sent during the test period, ⊿ifInErrors is the number of input packets discarded due to errors during the test period, and ⊿ifOutErrors is The number of output packets dropped due to errors during the test period.

根据第三方面的第五种可能的实现方式,在第七种可能的实现方式中,所述统计模块统计的接口统计数据,包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards;According to the fifth possible implementation of the third aspect, in the seventh possible implementation, the interface statistical data collected by the statistical module includes: the maximum number of transmittable data packet bytes ifMtu, the bandwidth ifSpeed, The total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets discarded by the ISP server CPU because it was too late to process ifInDiscards , the number of output packets discarded if the interface is too late to send ifOutDiscards;

所述统计模块,具体用于:The statistical module is specifically used for:

根据公式(2)获得所述剩余网络处理能力E:Obtain the remaining network processing capacity E according to formula (2):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards)×ifMtu) (2)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards)×ifMtu) (2)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数,⊿ifInErrors为测试周期内因发生错误而丢弃的输入分组数,⊿ifOutErrors为测试周期内因错误而丢弃的输出分组数,⊿ifInDiscards为测试周期内ISP服务器CPU因来不及处理而丢弃的输入分组数,⊿ifOutDiscards为测试周期内接口来不及发送而丢弃的输出分组数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received during the test period, ⊿ifOutOctets is the number of bytes sent during the test period, ⊿ifInErrors is the number of input packets discarded due to errors during the test period, and ⊿ifOutErrors is The number of output packets discarded due to errors during the test period, ⊿ifInDiscards is the number of input packets discarded by the ISP server CPU because it is too late to process during the test period, and ⊿ifOutDiscards is the number of output packets discarded because the interface is too late to send during the test period.

根据第三方面的第五种可能的实现方式,在第八种可能的实现方式中,所述统计模块统计的接口统计数据,包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards,ISP服务器因接收到无效协议而丢弃的输入分组数ifInUnknownProtos;According to the fifth possible implementation of the third aspect, in the eighth possible implementation, the interface statistical data collected by the statistical module includes: the maximum number of transmittable data packet bytes ifMtu, the bandwidth ifSpeed, the The total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets discarded by the ISP server CPU because it was too late to process ifInDiscards , the number of output packets discarded by the interface too late to send ifOutDiscards, the number of input packets discarded by the ISP server due to receiving invalid protocols ifInUnknownProtos;

所述统计模块,具体用于:The statistical module is specifically used for:

根据公式(3)获得所述剩余网络处理能力E:Obtain the remaining network processing capacity E according to formula (3):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards+⊿ifInUnknownProtos)×ifMtu) (3)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards+⊿ifInUnknownProtos)×ifMtu) (3)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数,⊿ifInErrors为测试周期内因发生错误而丢弃的输入分组数,⊿ifOutErrors为测试周期内因错误而丢弃的输出分组数,⊿ifInDiscards为测试周期内ISP服务器CPU因来不及处理而丢弃的输入分组数,⊿ifOutDiscards为测试周期内接口来不及发送而丢弃的输出分组数,⊿ifInUnknownProtos为测试周期内ISP服务器因接收到无效协议而丢弃的输入分组数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received during the test period, ⊿ifOutOctets is the number of bytes sent during the test period, ⊿ifInErrors is the number of input packets discarded due to errors during the test period, and ⊿ifOutErrors is The number of output packets discarded due to errors during the test period, ⊿ifInDiscards is the number of input packets discarded by the ISP server CPU because it is too late to process during the test period, ⊿ifOutDiscards is the number of output packets discarded because the interface is too late to send during the test period, ⊿ifInUnknownProtos is the number of test The number of incoming packets discarded by the ISP server during the period due to receipt of an invalid protocol.

根据第三方面的第五种可能的实现方式,在第九种可能的实现方式中,所述统计模块统计的接口统计数据,包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,已发送的字节总数ifOutOctets;According to the fifth possible implementation of the third aspect, in the ninth possible implementation, the interface statistical data collected by the statistical module includes: the maximum number of transmittable data packet bytes ifMtu, the bandwidth ifSpeed, The total number of bytes received ifInOctets, the total number of bytes sent ifOutOctets;

所述统计模块,具体用于:The statistical module is specifically used for:

根据公式(4)获得所述剩余网络处理能力E:Obtain the remaining network processing capacity E according to formula (4):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets) (4)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets) (4)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received in the test period, and ⊿ifOutOctets is the number of bytes sent in the test period.

根据第三方面的第五种可能的实现方式,在第十种可能的实现方式中,所述统计模块统计的接口统计数据,包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed,接收并递送到上层的单播分组数ifInUcastPkts,接收并递送到上层的多播分组数ifInNUcastPkts,从上层接收并发送出去的单播分组数ifOutUcastPkts,从上层接收并发送出去的多播分组数ifOutNUcastPkts;According to the fifth possible implementation of the third aspect, in the tenth possible implementation, the interface statistical data collected by the statistical module includes: the maximum number of transmittable data packet bytes ifMtu, bandwidth ifSpeed, received The number of unicast packets ifInUcastPkts delivered to the upper layer, the number of multicast packets received and delivered to the upper layer ifInNUcastPkts, the number of unicast packets received and sent from the upper layer ifOutUcastPkts, the number of multicast packets received and sent from the upper layer ifOutNUcastPkts;

所述统计模块,具体用于:The statistical module is specifically used for:

根据公式(5)获得所述剩余网络处理能力E:Obtain the remaining network processing capacity E according to formula (5):

E=∑(ifSpeed×T/8–(⊿ifInUcastPkts+⊿ifInNUcastPkts)×ifMtu–(⊿ifOutUcastPkts+⊿ifOutNUcastPkts)×ifMtu) (5)E=∑(ifSpeed×T/8–(⊿ifInUcastPkts+⊿ifInNUcastPkts)×ifMtu–(⊿ifOutUcastPkts+⊿ifOutNUcastPkts)×ifMtu) (5)

其中,T为测试周期,⊿ifInUcastPkts为在测试周期内接收并递送到上层的单播分组数,⊿ifInNUcastPkts为在测试周期内接收并递送到上层的多播分组数,⊿ifOutUcastPkts为在测试周期内从上层接收并发送出去的单播分组数,⊿ifOutNUcastPkts为在测试周期内从上层接收并发送出去的多播分组数。Among them, T is the test period, ⊿ifInUcastPkts is the number of unicast packets received and delivered to the upper layer during the test period, ⊿ifInNUcastPkts is the number of multicast packets received and delivered to the upper layer during the test period, ⊿ifOutUcastPkts is the number of multicast packets received and delivered to the upper layer during the test period, ⊿ifOutUcastPkts is the number of The number of unicast packets received and sent out from the upper layer, ⊿ifOutNUcastPkts is the number of multicast packets received and sent out from the upper layer during the test period.

第四方面,本发明实施例提供一种ISP服务器,包括:In a fourth aspect, an embodiment of the present invention provides an ISP server, including:

接收模块,用于接收DNS服务器发送的SNMP协议的能力查询请求报文;反馈模块,用于向所述DNS服务器反馈SNMP协议的能力查询响应报文,所述能力查询响应报文中包含接口统计数据。The receiving module is used to receive the capability query request message of the SNMP protocol sent by the DNS server; the feedback module is used to feed back the capability query response message of the SNMP protocol to the DNS server, and the capability query response message includes interface statistics data.

在第四方面的第一种可能的实现方式中,所述接口统计数据为MIB-2中的网络接口项ifEntry中的至少一种数据。In a first possible implementation manner of the fourth aspect, the interface statistical data is at least one type of data in the network interface entry ifEntry in MIB-2.

根据第四方面的第一种可能的实现方式,在第二种可能的实现方式中,所述接口统计数据,包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors。According to the first possible implementation of the fourth aspect, in the second possible implementation, the interface statistics include: the maximum number of transmittable data packet bytes ifMtu, bandwidth ifSpeed, received bytes Total ifInOctets, number of input packets dropped due to errors ifInErrors, total number of bytes sent ifOutOctets, number of output packets dropped due to errors ifOutErrors.

根据第四方面的第一种可能的实现方式,在第三种可能的实现方式中,所述接口统计数据,包括:According to the first possible implementation of the fourth aspect, in a third possible implementation, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards。The maximum number of packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets ifInDiscards discarded by the ISP server CPU because it is too late to process, and the number of output packets ifOutDiscards discarded because the interface is too late to send.

根据第四方面的第一种可能的实现方式,在第四种可能的实现方式中,所述接口统计数据,包括:According to the first possible implementation of the fourth aspect, in a fourth possible implementation, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards,ISP服务器因接收到无效协议而丢弃的输入分组数ifInUnknownProtos。The maximum number of packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets discarded by the ISP server CPU because it was too late to process ifInDiscards, the number of output packets discarded because the interface was too late to send ifOutDiscards, the number of input packets discarded by the ISP server because it received an invalid protocol ifInUnknownProtos.

根据第四方面的第一种可能的实现方式,在第五种可能的实现方式中,所述接口统计数据,包括:According to the first possible implementation of the fourth aspect, in a fifth possible implementation, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,已发送的字节总数ifOutOctets。The maximum number of bytes of data packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of received bytes ifInOctets, and the total number of sent bytes ifOutOctets.

根据第四方面的第一种可能的实现方式,在第六种可能的实现方式中,所述接口统计数据,包括:According to the first possible implementation of the fourth aspect, in a sixth possible implementation, the interface statistical data includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed,接收并递送到上层的单播分组数ifInUcastPkts,接收并递送到上层的多播分组数ifInNUcastPkts,从上层接收并发送出去的单播分组数ifOutUcastPkts,从上层接收并发送出去的多播分组数ifOutNUcastPkts。The maximum number of data packets that can be transmitted ifMtu, the bandwidth ifSpeed, the number of unicast packets received and delivered to the upper layer ifInUcastPkts, the number of multicast packets received and delivered to the upper layer ifInNUcastPkts, the number of unicast packets received and sent from the upper layer ifOutUcastPkts , the number of multicast packets received and sent from the upper layer ifOutNUcastPkts.

第五方面,本发明实施例提供一种系统,包括求第三方面的任一项可能的实现方式中的DNS服务器以及至少一个第四方面的任一可能的实现方式中的ISP服务器。In a fifth aspect, an embodiment of the present invention provides a system, including the DNS server in any possible implementation manner of the third aspect and at least one ISP server in any possible implementation manner of the fourth aspect.

本发明实施例的域名查询处理方法、服务器及系统,通过DNS服务器与ISP服务器的交互,获取各ISP服务器的剩余网络处理能力,在接收用户终端发送的域名查询请求之后,先确定在当前时刻各ISP服务器中剩余网络处理能力最强的第一ISP服务器,再将该第一ISP服务器的IP地址反馈给用户终端,实现对该DNS服务器所管理的网络中各ISP服务器资源的合理利用和网络负荷的合理分配,也使得用户终端在访问网站时所连接的ISP服务器始终为当前网络中剩余网络处理能力最强的ISP服务器,从而提高用户终端访问网站的成功率及访问速度,从而使用户获得最优的用户体验,从而提高用户满意度。The domain name query processing method, server, and system of the embodiments of the present invention obtain the remaining network processing capacity of each ISP server through the interaction between the DNS server and the ISP server, and after receiving the domain name query request sent by the user terminal, first determine the domain name query request at the current moment. Among the remaining ISP servers, the first ISP server with the strongest network processing capability will feed back the IP address of the first ISP server to the user terminal, so as to realize the rational use of resources and network load of each ISP server in the network managed by the DNS server. The reasonable distribution of the network also makes the ISP server that the user terminal connects to when accessing the website is always the ISP server with the strongest remaining network processing capacity in the current network, thereby improving the success rate and access speed of the user terminal accessing the website, so that the user can get the most Excellent user experience, thereby improving user satisfaction.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明域名查询处理方法一实施例的流程图;Fig. 1 is the flowchart of an embodiment of the domain name query processing method of the present invention;

图2为本发明域名查询处理方法另一实施例的流程图;Fig. 2 is a flowchart of another embodiment of the domain name query processing method of the present invention;

图3为本发明域名查询处理方法再一实施例的流程图;Fig. 3 is a flowchart of another embodiment of the domain name query processing method of the present invention;

图4为本发明域名查询处理方法再一实施例的信令流程图;Fig. 4 is a signaling flowchart of another embodiment of the domain name query processing method of the present invention;

图5为本发明DNS服务器一实施例一的结构示意图;FIG. 5 is a schematic structural diagram of Embodiment 1 of a DNS server of the present invention;

图6为本发明DNS服务器另一实施例的结构示意图;FIG. 6 is a schematic structural diagram of another embodiment of the DNS server of the present invention;

图7为本发明DNS服务器再一实施例的结构示意图;FIG. 7 is a schematic structural diagram of another embodiment of the DNS server of the present invention;

图8为本发明ISP服务器一实施例的结构示意图;FIG. 8 is a schematic structural diagram of an embodiment of an ISP server of the present invention;

图9为本发明域名处理系统一实施例的结构示意图。FIG. 9 is a schematic structural diagram of an embodiment of the domain name processing system of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本申请中涉及的用户终端,是指可以向用户提供与互联网的数据连通的设备,可以是无线终端也可以是有线终端,具体形式可以是台式机、笔记本电脑、平板电脑等。The user terminal involved in this application refers to a device that can provide users with data connection with the Internet, which can be a wireless terminal or a wired terminal, and the specific form can be a desktop computer, a notebook computer, a tablet computer, etc.

图1为本发明域名查询处理方法一实施例的流程图,该实施例的执行主体为DNS服务器,如图1所示,本实施例的方法可以包括:Fig. 1 is the flow chart of an embodiment of the domain name query processing method of the present invention, and the executive subject of this embodiment is DNS server, as shown in Fig. 1, the method of this embodiment may include:

步骤101、接收用户终端发送的域名查询请求。Step 101. Receive a domain name query request sent by a user terminal.

具体场景可以为,用户通过用户终端访问一具体网站,则用户终端即可向DNS服务器发送该网站的域名查询请求,此时,DNS服务器接收到该域名查询请求。A specific scenario may be that, when a user accesses a specific website through a user terminal, the user terminal may send a domain name query request of the website to the DNS server, and at this time, the DNS server receives the domain name query request.

步骤102、确定各ISP服务器中剩余网络处理能力最强的第一ISP服务器。Step 102, determining the first ISP server with the strongest remaining network processing capability among the ISP servers.

具体地,DNS服务器在运行过程中,不管是否接收到用户终端发送的消息,DNS服务器可以通过简单网络管理协议(Simple Network ManagementProtocol,简称:SNMP),定时向各ISP服务器采集接口统计数据,例如带宽ifSpeed、接口已接收的字节总数ifInOctets、接口已发送的字节总数ifOutOctets等,采用特定的算法,例如可以设ISP服务器的剩余网络处理能力E为:固定周期内接口可传输的字节总数减去在该固定周期内接口已接收和已发送的字节总数,获得各ISP服务器的剩余网络处理能力E。某一ISP服务器的剩余网络处理能力E反映了在当前时刻该ISP服务器能够接收、处理和发送的数据量的大小以及响应速度的快慢,如果一ISP服务器的剩余网络处理能力E的数值越大,说明该ISP服务器能够接收、处理和发送的数据量越大,响应速度越快,也就是说,用户终端与其连接的成功率越大且用户终端感受到的网站的响应速度越快。Specifically, during the operation of the DNS server, no matter whether it receives the message sent by the user terminal, the DNS server can regularly collect interface statistical data, such as bandwidth ifSpeed, the total number of bytes received by the interface ifInOctets, the total number of bytes sent by the interface ifOutOctets, etc., using specific algorithms, for example, the remaining network processing capacity E of the ISP server can be set as: the total number of bytes that can be transmitted by the interface in a fixed period minus Get the total number of bytes received and sent by the interface within the fixed period to obtain the remaining network processing capacity E of each ISP server. The remaining network processing capacity E of an ISP server reflects the amount of data that the ISP server can receive, process and send at the current moment and the speed of response. If the value of the remaining network processing capacity E of an ISP server is greater, It shows that the larger the amount of data that the ISP server can receive, process and send, the faster the response speed, that is to say, the higher the success rate of connecting the user terminal to it and the faster the response speed of the website felt by the user terminal.

因此,在接收用户终端发送的域名查询请求时,DNS服务器可以将在这一时刻剩余网络处理能力E的数值最大的ISP服务器作为剩余网络处理能力最强的第一ISP服务器。Therefore, when receiving the domain name query request sent by the user terminal, the DNS server may use the ISP server with the largest remaining network processing capacity E at this moment as the first ISP server with the strongest remaining network processing capacity.

步骤103、将所述第一ISP服务器的IP地址反馈给所述用户终端。Step 103, feeding back the IP address of the first ISP server to the user terminal.

具体地,DNS服务器可以通过查询RR获得第一ISP服务器的IP地址,并将该IP地址反馈给用户终端。Specifically, the DNS server can obtain the IP address of the first ISP server by querying the RR, and feed back the IP address to the user terminal.

本实施例,DNS服务器通过在接收用户终端发送的域名查询请求之后,先确定在当前时刻各ISP服务器中剩余网络处理能力最强的第一ISP服务器,再将该第一ISP服务器的IP地址反馈给用户终端,实现对该DNS服务器所管理的网络中各ISP服务器资源的合理利用和网络负荷的合理分配,也使得用户终端在访问网站时所连接的ISP服务器始终为当前网络中剩余网络处理能力最强的ISP服务器,从而提高用户终端访问网站的成功率及访问速度,从而使用户获得最优的用户体验,从而提高用户满意度。In this embodiment, after receiving the domain name query request sent by the user terminal, the DNS server first determines the first ISP server with the strongest remaining network processing capability among the ISP servers at the current moment, and then feeds back the IP address of the first ISP server For the user terminal, realize the reasonable utilization of the resources of each ISP server in the network managed by the DNS server and the reasonable distribution of network load, and also make the ISP server connected to the user terminal when accessing the website always have the remaining network processing capacity in the current network The most powerful ISP server, so as to improve the success rate and access speed of user terminals to access websites, so that users can obtain the best user experience, thereby improving user satisfaction.

下面采用几个具体的实施例,对图1所示方法实施例的技术方案进行详细说明。The technical solution of the method embodiment shown in FIG. 1 will be described in detail below using several specific embodiments.

图2为本发明域名查询处理方法另一实施例的流程图,该实施例的执行主体为DNS服务器,如图2所示,本实施例的方法,可以包括:Fig. 2 is the flow chart of another embodiment of the domain name query processing method of the present invention, and the executor of this embodiment is DNS server, as shown in Fig. 2, the method of this embodiment may include:

S201、向各ISP服务器查询获取各ISP服务器的接口统计数据。S201. Query each ISP server to obtain interface statistical data of each ISP server.

具体地,DNS服务器可以定时向各ISP服务器发送SNMP协议的能力查询请求报文,接收各ISP服务器反馈的SNMP协议的能力查询响应报文,各能力查询响应报文中包含对应的ISP服务器的接口统计数据。Specifically, the DNS server can periodically send a capability query request message of the SNMP protocol to each ISP server, and receive a capability query response message of the SNMP protocol fed back by each ISP server, and each capability query response message includes the interface of the corresponding ISP server. Statistical data.

所述接口统计数据可以为管理信息库版本2(Management InformationBase version 2,简称:MIB-2)中的网络接口项ifEntry中的至少一种数据。The interface statistical data may be at least one type of data in the network interface entry ifEntry in Management Information Base version 2 (MIB-2 for short).

MIB-2是互联网设备管理标准协议SNMP下的管理对象数据库中的一个分支,其分支节点为1.3.6.1.2.1,(即iso.org.dod.internet.mgmt.mib-2)。MIB-2定义了传输控制协议/网际协议(Transfer Control Protocol/Internet Protocol,简称:TCP/IP)的管理信息,其中,包括网络接口项ifEntry。MIB-2 is a branch of the management object database under the Internet device management standard protocol SNMP, and its branch node is 1.3.6.1.2.1, (ie iso.org.dod.internet.mgmt.mib-2). MIB-2 defines the management information of the Transmission Control Protocol/Internet Protocol (Transfer Control Protocol/Internet Protocol, TCP/IP for short), which includes the network interface item ifEntry.

所述接口统计数据例如为网络接口项ifEntry中的:可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors。The interface statistical data is, for example, in the network interface item ifEntry: the maximum number of data packet bytes ifMtu that can be transmitted, the bandwidth ifSpeed (the unit is bit per second), the total number of bytes received ifInOctets, the input discarded due to errors The number of packets ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors.

另外,若连续三次向ISP服务器查询接口统计数据失败,则确定该ISP服务器离线,可以将该ISP服务器的剩余网络处理能力E的值置为0。此处,用连续三次向ISP服务器查询接口统计数据失败作为判断ISP服务器离线的依据,为一种优选方案,本发明并不以此为限。In addition, if the ISP server fails to query the interface statistical data for three consecutive times, it is determined that the ISP server is offline, and the value of the remaining network processing capacity E of the ISP server can be set to 0. Here, using three consecutive failures to query the ISP server for interface statistical data as a basis for judging that the ISP server is offline is a preferred solution, and the present invention is not limited thereto.

S202、根据所述接口统计数据,确定各ISP服务器的剩余网络处理能力。S202. Determine the remaining network processing capacity of each ISP server according to the interface statistical data.

具体地,DNS服务器采用合适的算法分析各ISP服务器的剩余网络处理能力,本实施例提供如下几种方式:Specifically, the DNS server uses a suitable algorithm to analyze the remaining network processing capacity of each ISP server, and this embodiment provides the following methods:

方式一:根据公式(1)获得所述剩余网络处理能力E:Mode 1: Obtain the remaining network processing capacity E according to formula (1):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors)×ifMtu) (1)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors)×ifMtu) (1)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数,⊿ifInErrors为测试周期内因发生错误而丢弃的输入分组数,⊿ifOutErrors为测试周期内因错误而丢弃的输出分组数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received during the test period, ⊿ifOutOctets is the number of bytes sent during the test period, ⊿ifInErrors is the number of input packets discarded due to errors during the test period, and ⊿ifOutErrors is The number of output packets dropped due to errors during the test period.

方式二:根据公式(2)获得所述剩余网络处理能力E:Mode 2: Obtain the remaining network processing capacity E according to formula (2):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards)×ifMtu) (2)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards)×ifMtu) (2)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数,⊿ifInErrors为测试周期内因发生错误而丢弃的输入分组数,⊿ifOutErrors为测试周期内因错误而丢弃的输出分组数,⊿ifInDiscards为测试周期内ISP服务器CPU因来不及处理而丢弃的输入分组数,⊿ifOutDiscards为测试周期内接口来不及发送而丢弃的输出分组数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received during the test period, ⊿ifOutOctets is the number of bytes sent during the test period, ⊿ifInErrors is the number of input packets discarded due to errors during the test period, and ⊿ifOutErrors is The number of output packets discarded due to errors during the test period, ⊿ifInDiscards is the number of input packets discarded by the ISP server CPU because it is too late to process during the test period, and ⊿ifOutDiscards is the number of output packets discarded because the interface is too late to send during the test period.

方式二是在方式一的基础上,还考虑了ISP服务器CPU因来不及处理而丢弃的输入分组数和接口来不及发送而丢弃的输出分组数得出的计算方法。相应地,在步骤S201中,接口统计数据可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards。Method 2 is based on method 1, and also considers the number of input packets discarded by the CPU of the ISP server and the number of output packets discarded by the interface because it is too late to send. Correspondingly, in step S201, the interface statistical data may include: the maximum data packet byte number ifMtu that can be transmitted, the bandwidth ifSpeed (the unit is bit per second), the total number of bytes received ifInOctets, the input discarded because of an error The number of packets ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets discarded by the ISP server CPU because it was too late to process ifInDiscards, the number of output packets discarded because the interface was too late to send ifOutDiscards.

方式三:根据公式(3)获得所述剩余网络处理能力E:Mode 3: Obtain the remaining network processing capacity E according to formula (3):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards+⊿ifInUnknownProtos)×ifMtu) (3)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards+⊿ifInUnknownProtos)×ifMtu) (3)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数,⊿ifInErrors为测试周期内因发生错误而丢弃的输入分组数,⊿ifOutErrors为测试周期内因错误而丢弃的输出分组数,⊿ifInDiscards为测试周期内ISP服务器CPU因来不及处理而丢弃的输入分组数,⊿ifOutDiscards为测试周期内接口来不及发送而丢弃的输出分组数,⊿ifInUnknownProtos为测试周期内ISP服务器因接收到无效协议而丢弃的输入分组数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received during the test period, ⊿ifOutOctets is the number of bytes sent during the test period, ⊿ifInErrors is the number of input packets discarded due to errors during the test period, and ⊿ifOutErrors is The number of output packets discarded due to errors during the test period, ⊿ifInDiscards is the number of input packets discarded by the ISP server CPU because it is too late to process during the test period, ⊿ifOutDiscards is the number of output packets discarded because the interface is too late to send during the test period, ⊿ifInUnknownProtos is the number of test The number of incoming packets discarded by the ISP server during the period due to receipt of an invalid protocol.

方式三是在方式二的基础上,还考虑了ISP服务器因接收到无效协议而丢弃的输入分组数得出的计算方法。相应地,在步骤S201中,接口统计数据可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards,ISP服务器因接收到无效协议而丢弃的输入分组数ifInUnknownProtos。The third method is based on the second method, and also considers the calculation method obtained by the number of input packets discarded by the ISP server due to receiving an invalid protocol. Correspondingly, in step S201, the interface statistical data may include: the maximum data packet byte number ifMtu that can be transmitted, the bandwidth ifSpeed (the unit is bit per second), the total number of bytes received ifInOctets, the input discarded because of an error Number of packets ifInErrors, total number of bytes sent ifOutOctets, number of output packets discarded due to errors ifOutErrors, number of input packets discarded by the ISP server CPU because it was too late to process ifInDiscards, number of output packets discarded by the interface too late to send ifOutDiscards, ISP server Number of input packets ifInUnknownProtos dropped due to reception of an invalid protocol.

方式四:根据公式(4)获得所述剩余网络处理能力E:Mode 4: Obtain the remaining network processing capacity E according to formula (4):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets) (4)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets) (4)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received in the test period, and ⊿ifOutOctets is the number of bytes sent in the test period.

方式四是在方式一的基础上,忽略因任何原因丢弃的分组数而把所有接受和发送的字节当做有效字节,而得出的计算方法。相应地,在步骤S201中,接口统计数据可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),已接收的字节总数ifInOctets,已发送的字节总数ifOutOctets。Method 4 is based on method 1, ignoring the number of discarded packets for any reason and taking all received and sent bytes as valid bytes, and the calculation method is obtained. Correspondingly, in step S201, the interface statistical data can include: the maximum number of data packet bytes ifMtu that can be transmitted, the bandwidth ifSpeed (unit is bit per second), the total number of bytes received ifInOctets, the total number of bytes sent ifOutOctets .

方式五:根据公式(5)获得所述剩余网络处理能力E:Mode 5: Obtain the remaining network processing capacity E according to formula (5):

E=∑(ifSpeed×T/8–(⊿ifInUcastPkts+⊿ifInNUcastPkts)×ifMtu–(⊿⊿ifOutUcastPkts+⊿ifOutNUcastPkts)×ifMtu) (5)E=∑(ifSpeed×T/8–(⊿ifInUcastPkts+⊿ifInNUcastPkts)×ifMtu–(⊿⊿ifOutUcastPkts+⊿ifOutNUcastPkts)×ifMtu) (5)

其中,T为测试周期,⊿ifInUcastPkts为在测试周期内接收并递送到上层的单播分组数,⊿ifInNUcastPkts为在测试周期内接收并递送到上层的多播分组数,⊿ifOutUcastPkts为在测试周期内从上层接收并发送出去的单播分组数,⊿ifOutNUcastPkts为在测试周期内从上层接收并发送出去的多播分组数。Among them, T is the test period, ⊿ifInUcastPkts is the number of unicast packets received and delivered to the upper layer during the test period, ⊿ifInNUcastPkts is the number of multicast packets received and delivered to the upper layer during the test period, ⊿ifOutUcastPkts is the number of multicast packets received and delivered to the upper layer during the test period, ⊿ifOutUcastPkts is the number of The number of unicast packets received and sent out from the upper layer, ⊿ifOutNUcastPkts is the number of multicast packets received and sent out from the upper layer during the test period.

方式五与上述方式一~方式四的算法思想均不相同,是利用经过上层处理的分组数来间接地分析剩余网络处理能力E。相应地,在步骤S201中,接口统计数据可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),接收并递送到上层的单播分组数ifInUcastPkts,接收并递送到上层的多播分组数ifInNUcastPkts,从上层接收并发送出去的单播分组数ifOutUcastPkts,从上层接收并发送出去的多播分组数ifOutNUcastPkts。Method 5 is different from the above-mentioned method 1 to method 4 in terms of algorithm ideas, and uses the number of packets processed by the upper layer to indirectly analyze the remaining network processing capacity E. Correspondingly, in step S201, the interface statistical data may include: the maximum data packet byte number ifMtu that can be transmitted, the bandwidth ifSpeed (the unit is bit per second), the number of unicast packets received and delivered to the upper layer ifInUcastPkts, received and delivered The number of multicast packets to the upper layer ifInNUcastPkts, the number of unicast packets received and sent from the upper layer ifOutUcastPkts, the number of multicast packets received and sent from the upper layer ifOutNUcastPkts.

以上各个方式中,由于统计数据是定时更新的,因此所获得的各ISP服务器的剩余网络处理能力E的数值也是定时更新的,该数值随着各ISP服务器的实际运行状况而变化,可以认为实时反映其剩余网络处理能力。DNS服务器还可以将获得各ISP服务器的剩余网络处理能力E与RR相关联,即定时刷新RR,以便DNS服务器可通过查询RR直接获取各ISP服务器的剩余网络处理能力以及其IP地址。In each of the above methods, since the statistical data is regularly updated, the obtained value of the remaining network processing capacity E of each ISP server is also regularly updated. This value changes with the actual operation status of each ISP server, which can be considered real-time Reflects its remaining network processing capacity. The DNS server can also associate the remaining network processing capacity E of each ISP server with the RR, that is, periodically refresh the RR, so that the DNS server can directly obtain the remaining network processing capacity of each ISP server and its IP address by querying the RR.

S203、接收用户终端发送的域名查询请求。S203. Receive a domain name query request sent by the user terminal.

S204、确定各ISP服务器中剩余网络处理能力最强的第一ISP服务器。S204. Determine the first ISP server with the strongest remaining network processing capability among the ISP servers.

具体地,查询与各ISP服务器对应的RR,获取各ISP服务器的剩余网络处理能力,可以将剩余网络处理能力E的数值最大的ISP服务器作为剩余网络处理能力最强的第一ISP服务器,并可以从RR中获得第一ISP服务器的IP地址。Specifically, query the RR corresponding to each ISP server to obtain the remaining network processing capacity of each ISP server, and the ISP server with the largest value of the remaining network processing capacity E can be used as the first ISP server with the strongest remaining network processing capacity, and can Obtain the IP address of the first ISP server from the RR.

S205、将第一ISP服务器的IP地址反馈给所述用户终端。S205. Feed back the IP address of the first ISP server to the user terminal.

本实施例,通过定时向各ISP服务器查询获取各ISP服务器的接口统计数据,并根据所述接口统计数据,实时分析各ISP服务器的剩余网络处理能力,实现在接收到用户终端发送的域名查询请求解决时,能够将当前时刻网络中剩余网络处理能力最强的ISP服务器提供给用户终端,从而实现对该DNS服务器所管理的网络中各ISP服务器资源的合理利用和网络负荷的合理分配,并使用户访问网站时连接的成功率得到保障。In this embodiment, the interface statistical data of each ISP server is obtained by regularly querying each ISP server, and according to the interface statistical data, the remaining network processing capacity of each ISP server is analyzed in real time, and the domain name query request sent by the user terminal is received. When solving, the ISP server with the strongest remaining network processing capacity in the network at the current moment can be provided to the user terminal, so as to realize the reasonable utilization of the resources of each ISP server in the network managed by the DNS server and the reasonable distribution of network load, and make The success rate of the connection is guaranteed when the user visits the website.

图3为本发明域名查询处理方法再一实施例的流程图,该实施例的执行主体为ISP服务器,如图3所示,本实施例的方法,可以包括:Fig. 3 is the flow chart of another embodiment of the domain name query processing method of the present invention, the executive body of this embodiment is an ISP server, as shown in Fig. 3, the method of this embodiment may include:

S301、接收DNS服务器发送的SNMP协议的能力查询请求报文。S301. Receive a capability query request message of the SNMP protocol sent by the DNS server.

S302、向DNS服务器反馈SNMP协议的能力查询响应报文,所述能力查询响应报文中包含接口统计数据。S302. Feed back a capability query response message of the SNMP protocol to the DNS server, where the capability query response message includes interface statistics data.

具体地,接口统计数据可以为MIB-2中的网络接口项ifEntry中的至少一种数据。Specifically, the interface statistical data may be at least one type of data in the network interface entry ifEntry in MIB-2.

本实施例,与图2所对应的实施例的技术方案中的步骤S201相对应,通过接收DNS服务器发送的SNMP协议的能力查询请求报文和向DNS服务器反馈SNMP协议的能力查询响应报文,并在能力查询响应报文中包含接口统计数据的方式,实现将该ISP服务器的接口统计数据提供给DNS服务器。In this embodiment, corresponding to step S201 in the technical solution of the embodiment corresponding to FIG. 2, by receiving the capability query request message of the SNMP protocol sent by the DNS server and feeding back the capability query response message of the SNMP protocol to the DNS server, In addition, the method of including the interface statistical data in the capability query response message realizes providing the interface statistical data of the ISP server to the DNS server.

本实施例在具体实现时,可选地,对应于图2所示实施例中的方式一,接口统计数据可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors。During the specific implementation of this embodiment, optionally, corresponding to the first mode in the embodiment shown in FIG. ), the total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors.

本实施例在具体实现时,可选地,对应于图2所示实施例中的方式二,接口统计数据可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards。During the specific implementation of this embodiment, optionally, corresponding to the second mode in the embodiment shown in Fig. 2, the interface statistical data may include: the maximum number of data packet bytes ifMtu that can be transmitted, the bandwidth ifSpeed (unit is bit per second ), the total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets discarded by the ISP server CPU because it was too late to process The number of packets ifInDiscards, the number of output packets discarded if the interface is too late to send ifOutDiscards.

本实施例在具体实现时,可选地,对应于图2所示实施例中的方式三,接口统计数据可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards,ISP服务器因接收到无效协议而丢弃的输入分组数ifInUnknownProtos。During the specific implementation of this embodiment, optionally, corresponding to the mode three in the embodiment shown in FIG. ), the total number of bytes received ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets discarded by the ISP server CPU because it was too late to process The number of packets ifInDiscards, the number of output packets discarded by the interface too late to send ifOutDiscards, the number of input packets discarded by the ISP server because it received an invalid protocol ifInUnknownProtos.

本实施例在具体实现时,可选地,对应于图2所示实施例中的方式四,接口统计数据可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),已接收的字节总数ifInOctets、已发送的字节总数ifOutOctets。During the specific implementation of this embodiment, optionally, corresponding to the fourth mode in the embodiment shown in FIG. ), the total number of bytes received ifInOctets, the total number of bytes sent ifOutOctets.

本实施例在具体实现时,可选地,对应于图2所示实施例中的方式五,接口统计数据可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),接收并递送到上层的单播分组数ifInUcastPkts,接收并递送到上层的多播分组数ifInNUcastPkts,从上层接收并发送出去的单播分组数ifOutUcastPkts,从上层接收并发送出去的多播分组数ifOutNUcastPkts。During the specific implementation of this embodiment, optionally, corresponding to the mode five in the embodiment shown in FIG. ), the number of unicast packets received and delivered to the upper layer ifInUcastPkts, the number of multicast packets received and delivered to the upper layer ifInNUcastPkts, the number of unicast packets received and sent from the upper layer ifOutUcastPkts, the number of multicast packets received and sent from the upper layer ifOutNUcastPkts.

图4为本发明域名查询处理方法再一实施例的信令流程图,如图4所示,ISP服务器的数量为2,通过DNS服务器与各ISP服务器(ISP服务器1~ISP服务器2)相互交互的过程对本实施例提供的域名查询处理方法加以详细说明,本实施例的方法可以包括:Fig. 4 is the signaling flowchart of another embodiment of the domain name query processing method of the present invention. As shown in Fig. 4, the number of ISP servers is 2, and each ISP server (ISP server 1 to ISP server 2) interacts with each other through the DNS server The process of the domain name query processing method provided by this embodiment is described in detail, and the method of this embodiment may include:

S401、DNS服务器定时向ISP服务器1发送SNMP协议的能力查询请求报文。S401. The DNS server sends a capability query request message of the SNMP protocol to the ISP server 1 at regular intervals.

S402、DNS服务器定时向ISP服务器2发送SNMP协议的能力查询请求报文。S402. The DNS server sends a capability query request message of the SNMP protocol to the ISP server 2 at regular intervals.

实际使用时,步骤S401和步骤S402的执行并没有先后顺序的限制,该两个步骤可以同时执行,也可以按任意顺序执行。In actual use, there is no restriction on the order of execution of step S401 and step S402, and these two steps may be executed simultaneously or in any order.

S403、ISP服务器1向DNS服务器反馈SNMP协议的能力查询响应报文,所述能力查询响应报文中包含接口统计数据。S403. The ISP server 1 feeds back a capability query response message of the SNMP protocol to the DNS server, and the capability query response message includes interface statistics data.

S404、ISP服务器2向DNS服务器反馈SNMP协议的能力查询响应报文,所述能力查询响应报文中包含接口统计数据。S404. The ISP server 2 feeds back a capability query response message of the SNMP protocol to the DNS server, and the capability query response message includes interface statistics data.

实际使用时,步骤S404和步骤S404的执行并没有先后顺序,该两个步骤可以同时执行,也可以按任意顺序执行。In actual use, there is no sequence in the execution of step S404 and step S404, and the two steps can be executed at the same time or in any order.

S405、DNS服务器根据所述接口统计数据,确定ISP服务器1的剩余网络处理能力。S405. The DNS server determines the remaining network processing capacity of the ISP server 1 according to the interface statistical data.

S406、DNS服务器根据所述接口统计数据,确定ISP服务器2的剩余网络处理能力。S406. The DNS server determines the remaining network processing capability of the ISP server 2 according to the interface statistical data.

实际使用时,步骤S405和步骤S406的执行并没有先后顺序,该两个步骤可以同时执行,也可以按任意顺序执行。而且,在步骤S405和步骤S406中,确定各ISP服务器的网络处理能力E的方式,可以使用图2所示实施例中方式一~方式五中的任意一种方式,需要说明的是,此处对各ISP服务器的剩余网络处理能力的计算,需要使用同一种方式。In actual use, there is no sequence in the execution of step S405 and step S406, and the two steps can be executed at the same time or in any order. Moreover, in step S405 and step S406, the manner of determining the network processing capability E of each ISP server may use any one of manners 1 to 5 in the embodiment shown in FIG. 2 . It should be noted that, here The calculation of the remaining network processing capacity of each ISP server needs to use the same method.

S407、终端向DNS服务器发送域名查询请求。S407. The terminal sends a domain name query request to the DNS server.

S408、DNS服务器确定各ISP服务器中剩余网络处理能力最强的第一ISP服务器。S408. The DNS server determines the first ISP server with the strongest remaining network processing capability among the ISP servers.

S409、将所述第一ISP服务器的IP地址反馈给所述用户终端。S409. Feed back the IP address of the first ISP server to the user terminal.

S410、根据接收的IP地址,访问ISP服务器。S410. Access the ISP server according to the received IP address.

如果第一ISP服务器为ISP服务器1,则终端访问ISP服务器1。If the first ISP server is ISP server 1, the terminal accesses ISP server 1.

本实施例,通过DNS服务器与各ISP服务器之间的信息交互,即DNS服务器向各ISP服务器分别查询接口统计数据,各ISP服务器分别向DNS服务器反馈接口统计数据,使DNS服务器能够获得各ISP服务器的剩余网络处理能力,从而可以在用户终端通过域名访问网站时将剩余网络处理能力最强的ISP服务器的IP地址反馈给用户终端,从而提高用户终端访问网站的成功率和访问速度。In this embodiment, through the information interaction between the DNS server and each ISP server, that is, the DNS server queries each ISP server for interface statistics data respectively, and each ISP server feeds back interface statistics data to the DNS server respectively, so that the DNS server can obtain the interface statistics data of each ISP server. The remaining network processing capacity, so that when the user terminal accesses the website through the domain name, the IP address of the ISP server with the strongest remaining network processing capacity can be fed back to the user terminal, thereby improving the success rate and access speed of the user terminal accessing the website.

上述实施例中ISP服务器的数量为2,而在实际使用时,ISP服务器的数量不限,可以为大于1的任何整数,并且DNS服务器向各ISP服务器发送查询请求报文的顺序、各ISP服务器反馈查询响应报文的顺序、以及DNS服务器确定各ISP服务器的剩余网络处理能力的顺序均不分先后。The number of ISP servers in the foregoing embodiment is 2, and in actual use, the number of ISP servers is not limited, and can be any integer greater than 1, and the order in which the DNS server sends query request messages to each ISP server, each ISP server The order in which the query response messages are fed back and the order in which the DNS server determines the remaining network processing capabilities of each ISP server are in no particular order.

图5为本发明DNS服务器一实施例的结构示意图,如图5所示,本实施例的装置可以包括:接收模块11、选择模块12和反馈模块13,其中,接收模块11用于接收用户终端发送的域名查询请求,选择模块12用于确定各ISP服务器中剩余网络处理能力最强的第一ISP服务器,反馈模块13用于将所述第一ISP服务器的IP地址反馈给所述用户终端。FIG. 5 is a schematic structural diagram of an embodiment of the DNS server of the present invention. As shown in FIG. 5, the device of this embodiment may include: a receiving module 11, a selection module 12, and a feedback module 13, wherein the receiving module 11 is used to receive user terminal For the domain name query request sent, the selection module 12 is used to determine the first ISP server with the strongest remaining network processing capability among the ISP servers, and the feedback module 13 is used to feed back the IP address of the first ISP server to the user terminal.

本实施例的装置,可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1 , and its implementation principle and technical effect are similar, and will not be repeated here.

图6为本发明DNS服务器另一实施例的结构示意图,如图6所示,本实施例的装置在图4所示装置结构的基础上,进一步地,还可以包括:查询模块14,该查询模块14用于查询与各ISP服务器对应的RR,获取各ISP服务器的剩余网络处理能力。Fig. 6 is a schematic structural diagram of another embodiment of the DNS server of the present invention. As shown in Fig. 6, the device of this embodiment may further include: a query module 14 on the basis of the structure of the device shown in Fig. 4 , the query Module 14 is used to query the RR corresponding to each ISP server, and obtain the remaining network processing capacity of each ISP server.

本实施例的装置,可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1 , and its implementation principle and technical effect are similar, and will not be repeated here.

图7为本发明DNS服务器再一实施例的结构示意图,如图7所示,本实施例的装置在图5所示装置结构的基础上,进一步地,还可以包括:Fig. 7 is a schematic structural diagram of another embodiment of the DNS server of the present invention. As shown in Fig. 7, the device of this embodiment may further include:

统计模块15和判定模块16,统计模块15用于向各ISP服务器查询获取各ISP服务器的接口统计数据,根据所述接口统计数据,确定各ISP服务器的剩余网络处理能力;判定模块16若连续三次向ISP服务器查询接口统计数据失败,则确定所述ISP服务器离线。Statistical module 15 and judgment module 16, statistical module 15 is used to inquire about the interface statistical data that obtains each ISP server to each ISP server, according to said interface statistical data, determine the remaining network processing capacity of each ISP server; If querying the interface statistical data from the ISP server fails, it is determined that the ISP server is offline.

进一步地,统计模块15可以包括发送单元151、接收单元152和统计处理单元153。发送单元151用于向各ISP服务器发送SNMP协议的能力查询请求报文;接收单元152用于接收各ISP服务器反馈的SNMP协议的能力查询响应报文,各能力查询响应报文中包含对应的ISP服务器的接口统计数据;统计处理单元153用于根据所述接口统计数据,确定各ISP服务器的剩余网络处理能力。Further, the statistical module 15 may include a sending unit 151 , a receiving unit 152 and a statistical processing unit 153 . The sending unit 151 is used to send the capability query request message of the SNMP protocol to each ISP server; the receiving unit 152 is used to receive the capability query response message of the SNMP protocol fed back by each ISP server, and each capability query response message contains the corresponding ISP Interface statistical data of the server; the statistical processing unit 153 is configured to determine the remaining network processing capacity of each ISP server according to the interface statistical data.

进一步地,统计模块15获取的接口统计数据可以为MIB-2中的网络接口项ifEntry中的至少一种数据。Further, the interface statistical data acquired by the statistics module 15 may be at least one type of data in the network interface entry ifEntry in MIB-2.

进一步可选地,统计模块15获取的接口统计数据,包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors;Further optionally, the interface statistical data obtained by the statistics module 15 includes: the maximum number of bytes of data packets ifMtu that can be transmitted, the bandwidth ifSpeed (unit is bit per second), the total number of bytes ifInOctets received, discarded due to errors The number of input packets ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors;

统计模块15,具体用于根据公式(1)获得所述剩余网络处理能力E:The statistics module 15 is specifically used to obtain the remaining network processing capacity E according to the formula (1):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors)×ifMtu) (1)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors)×ifMtu) (1)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数,⊿ifInErrors为测试周期内因发生错误而丢弃的输入分组数,⊿ifOutErrors为测试周期内因错误而丢弃的输出分组数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received during the test period, ⊿ifOutOctets is the number of bytes sent during the test period, ⊿ifInErrors is the number of input packets discarded due to errors during the test period, and ⊿ifOutErrors is The number of output packets dropped due to errors during the test period.

进一步可选地,统计模块15获取的接口统计数据,包括:Further optionally, the interface statistical data obtained by the statistical module 15 includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards;The maximum number of bytes of data packets that can be transmitted ifMtu, the bandwidth ifSpeed (unit is bit per second), the total number of received bytes ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of sent bytes ifOutOctets, due to occurrence The number of output packets discarded due to errors ifOutErrors, the number of input packets ifInDiscards discarded by the ISP server CPU because it is too late to process, the number of output packets discarded if the interface is too late to send ifOutDiscards;

统计模块15,具体用于根据公式(2)获得所述剩余网络处理能力E:The statistics module 15 is specifically used to obtain the remaining network processing capacity E according to the formula (2):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards)×ifMtu) (2)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards)×ifMtu) (2)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数,⊿ifInErrors为测试周期内因发生错误而丢弃的输入分组数,⊿ifOutErrors为测试周期内因错误而丢弃的输出分组数,⊿ifInDiscards为测试周期内ISP服务器CPU因来不及处理而丢弃的输入分组数,⊿ifOutDiscards为测试周期内接口来不及发送而丢弃的输出分组数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received during the test period, ⊿ifOutOctets is the number of bytes sent during the test period, ⊿ifInErrors is the number of input packets discarded due to errors during the test period, and ⊿ifOutErrors is The number of output packets discarded due to errors during the test period, ⊿ifInDiscards is the number of input packets discarded by the ISP server CPU because it is too late to process during the test period, and ⊿ifOutDiscards is the number of output packets discarded because the interface is too late to send during the test period.

进一步可选地,统计模块15获取的接口统计数据,包括:Further optionally, the interface statistical data obtained by the statistical module 15 includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards,ISP服务器因接收到无效协议而丢弃的输入分组数ifInUnknownProtos;The maximum number of bytes of data packets that can be transmitted ifMtu, the bandwidth ifSpeed (unit is bit per second), the total number of received bytes ifInOctets, the number of input packets discarded due to errors ifInErrors, the total number of sent bytes ifOutOctets, due to occurrence The number of output packets discarded due to errors ifOutErrors, the number of input packets discarded by the ISP server CPU because it was too late to process ifInDiscards, the number of output packets discarded because the interface was too late to send ifOutDiscards, the number of input packets discarded by the ISP server because it received an invalid protocol ifInUnknownProtos;

统计模块15,具体用于根据公式(3)获得所述剩余网络处理能力E:The statistical module 15 is specifically used to obtain the remaining network processing capacity E according to formula (3):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards+⊿ifInUnknownProtos)×ifMtu) (3)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets–(⊿ifInErrors+⊿ifOutErrors+⊿ifInDiscards+⊿ifOutDiscards+⊿ifInUnknownProtos)×ifMtu) (3)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送字节数,⊿ifInErrors为测试周期内因发生错误而丢弃的输入分组数,⊿ifOutErrors为测试周期内因错误而丢弃的输出分组数,⊿ifInDiscards为测试周期内ISP服务器CPU因来不及处理而丢弃的输入分组数,⊿ifOutDiscards为测试周期内接口来不及发送而丢弃的输出分组数,⊿ifInUnknownProtos为测试周期内ISP服务器因接收到无效协议而丢弃的输入分组数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received during the test period, ⊿ifOutOctets is the number of bytes sent during the test period, ⊿ifInErrors is the number of input packets discarded due to errors during the test period, and ⊿ifOutErrors is The number of output packets discarded due to errors during the test period, ⊿ifInDiscards is the number of input packets discarded by the ISP server CPU because it is too late to process during the test period, ⊿ifOutDiscards is the number of output packets discarded because the interface is too late to send during the test period, ⊿ifInUnknownProtos is the number of test The number of incoming packets discarded by the ISP server during the period due to receipt of an invalid protocol.

进一步可选地,统计模块15获取的接口统计数据,包括:Further optionally, the interface statistical data obtained by the statistical module 15 includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),已接收的字节总数ifInOctets,已发送的字节总数ifOutOctets;The maximum number of bytes of data packets that can be transmitted ifMtu, the bandwidth ifSpeed (in bits per second), the total number of bytes received ifInOctets, the total number of bytes sent ifOutOctets;

统计模块15,具体用于根据公式(4)获得所述剩余网络处理能力E:The statistics module 15 is specifically used to obtain the remaining network processing capacity E according to the formula (4):

E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets) (4)E=∑(ifSpeed×T/8-⊿ifInOctets-⊿ifOutOctets) (4)

其中,T为测试周期,⊿ifInOctets为测试周期内已接收的字节数,⊿ifOutOctets为测试周期内已发送的字节数。Among them, T is the test period, ⊿ifInOctets is the number of bytes received in the test period, and ⊿ifOutOctets is the number of bytes sent in the test period.

进一步可选地,统计模块15获取的接口统计数据,包括:Further optionally, the interface statistical data obtained by the statistical module 15 includes:

可传输的最大数据包字节数ifMtu,带宽ifSpeed(单位为bit每秒),接收并递送到上层的单播分组数ifInUcastPkts,接收并递送到上层的多播分组数ifInNUcastPkts,从上层接收并发送出去的单播分组数ifOutUcastPkts,从上层接收并发送出去的多播分组数ifOutNUcastPkts;The maximum number of data packets that can be transmitted ifMtu, the bandwidth ifSpeed (unit is bit per second), the number of unicast packets received and delivered to the upper layer ifInUcastPkts, the number of multicast packets received and delivered to the upper layer ifInNUcastPkts, received and sent from the upper layer The number of outgoing unicast packets ifOutUcastPkts, the number of multicast packets received and sent out from the upper layer ifOutNUcastPkts;

统计模块15,具体用于根据公式(5)获得所述剩余网络处理能力E:The statistical module 15 is specifically used to obtain the remaining network processing capacity E according to formula (5):

E=∑(ifSpeed×T/8–(⊿ifInUcastPkts+⊿ifInNUcastPkts)×ifMtu–(⊿⊿ifOutUcastPkts+⊿ifOutNUcastPkts)×ifMtu) (5)E=∑(ifSpeed×T/8–(⊿ifInUcastPkts+⊿ifInNUcastPkts)×ifMtu–(⊿⊿ifOutUcastPkts+⊿ifOutNUcastPkts)×ifMtu) (5)

其中,T为测试周期,⊿ifInUcastPkts为在测试周期内接收并递送到上层的单播分组数,⊿ifInNUcastPkts为在测试周期内接收并递送到上层的多播分组数,⊿ifOutUcastPkts为在测试周期内从上层接收并发送出去的单播分组数,⊿ifOutNUcastPkts为在测试周期内从上层接收并发送出去的多播分组数。Among them, T is the test period, ⊿ifInUcastPkts is the number of unicast packets received and delivered to the upper layer during the test period, ⊿ifInNUcastPkts is the number of multicast packets received and delivered to the upper layer during the test period, ⊿ifOutUcastPkts is the number of multicast packets received and delivered to the upper layer during the test period, ⊿ifOutUcastPkts is the number of The number of unicast packets received and sent out from the upper layer, ⊿ifOutNUcastPkts is the number of multicast packets received and sent out from the upper layer during the test period.

本实施例的装置,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 2 , and its implementation principle and technical effect are similar, and will not be repeated here.

图8为本发明ISP服务器一实施例的结构示意图,如图8所示,本实施例的装置可以包括:接收模块21、反馈模块22,其中,接收模块21用于接收DNS服务器发送的SNMP协议的能力查询请求报文,反馈模块22,用于向所述DNS服务器反馈SNMP协议的能力查询响应报文,所述能力查询响应报文中包含接口统计数据。Figure 8 is a schematic structural diagram of an embodiment of the ISP server of the present invention, as shown in Figure 8, the device of this embodiment may include: a receiving module 21, a feedback module 22, wherein the receiving module 21 is used to receive the SNMP protocol sent by the DNS server The capability query request message, and the feedback module 22 is configured to feed back a capability query response message of the SNMP protocol to the DNS server, and the capability query response message includes interface statistical data.

反馈模块22向DNS服务器反馈的响应报文中包含的接口统计数据,可以为MIB-2中的网络接口项ifEntry中的至少一种数据。The interface statistical data contained in the response message fed back by the feedback module 22 to the DNS server may be at least one type of data in the network interface item ifEntry in MIB-2.

进一步可选地,反馈模块22向DNS服务器反馈的响应报文中包含的接口统计数据,可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors。Further optionally, the interface statistical data contained in the response message fed back by the feedback module 22 to the DNS server may include: the maximum number of bytes of data packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, due to occurrence Number of input packets dropped due to errors ifInErrors, total number of bytes sent ifOutOctets, number of output packets dropped due to errors ifOutErrors.

进一步可选地,反馈模块22向DNS服务器反馈的响应报文中包含的接口统计数据,可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards。Further optionally, the interface statistical data contained in the response message fed back by the feedback module 22 to the DNS server may include: the maximum number of bytes of data packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, due to occurrence The number of input packets discarded by errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets discarded by the ISP server CPU because it was too late to process ifInDiscards, the output packets discarded by the interface too late to send Number ifOutDiscards.

进一步可选地,反馈模块22向DNS服务器反馈的响应报文中包含的接口统计数据,可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,因发生错误而丢弃的输入分组数ifInErrors,已发送的字节总数ifOutOctets,因发生错误而丢弃的输出分组数ifOutErrors,ISP服务器CPU因来不及处理而丢弃的输入分组数ifInDiscards,接口来不及发送而丢弃的输出分组数ifOutDiscards,ISP服务器因接收到无效协议而丢弃的输入分组数ifInUnknownProtos。Further optionally, the interface statistical data contained in the response message fed back by the feedback module 22 to the DNS server may include: the maximum number of bytes of data packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, due to occurrence The number of input packets discarded by errors ifInErrors, the total number of bytes sent ifOutOctets, the number of output packets discarded due to errors ifOutErrors, the number of input packets discarded by the ISP server CPU because it was too late to process ifInDiscards, the output packets discarded by the interface too late to send The number ifOutDiscards, the number of input packets discarded by the ISP server due to receipt of an invalid protocol ifInUnknownProtos.

进一步可选地,反馈模块22向DNS服务器反馈的响应报文中包含的接口统计数据,可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed,已接收的字节总数ifInOctets,已发送的字节总数ifOutOctets。Further optionally, the interface statistical data contained in the response message fed back by the feedback module 22 to the DNS server may include: the maximum number of bytes of data packets that can be transmitted ifMtu, the bandwidth ifSpeed, the total number of bytes received ifInOctets, sent The total number of bytes ifOutOctets.

进一步可选地,反馈模块22向DNS服务器反馈的响应报文中包含的接口统计数据,可以包括:可传输的最大数据包字节数ifMtu,带宽ifSpeed,接收并递送到上层的单播分组数ifInUcastPkts,接收并递送到上层的多播分组数ifInNUcastPkts,从上层接收并发送出去的单播分组数ifOutUcastPkts,从上层接收并发送出去的多播分组数ifOutNUcastPkts。Further optionally, the interface statistical data contained in the response message fed back by the feedback module 22 to the DNS server may include: the maximum number of data packet bytes ifMtu that can be transmitted, the bandwidth ifSpeed, and the number of unicast packets received and delivered to the upper layer ifInUcastPkts, the number of multicast packets received and delivered to the upper layer ifInNUcastPkts, the number of unicast packets received and sent from the upper layer ifOutUcastPkts, the number of multicast packets received and sent from the upper layer ifOutNUcastPkts.

本实施例的装置,可以用于执行图3所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to execute the technical solution of the method embodiment shown in FIG. 3 , and its implementation principle and technical effect are similar, and will not be repeated here.

图9为本发明域名处理系统一实施例的结构示意图,如图9所示,本实施例的系统包括:DNS服务器和至少一个ISP服务器,其中,DNS服务器可以采用图5~图7任一装置实施例的结构;至少一个ISP服务器可以采用图8的装置实施例的结构。其对应地,可以执行图1~图4中任一方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。Fig. 9 is a schematic structural diagram of an embodiment of the domain name processing system of the present invention. As shown in Fig. 9, the system of this embodiment includes: a DNS server and at least one ISP server, wherein the DNS server can use any device in Fig. 5 to Fig. 7 Structure of the embodiment; at least one ISP server may adopt the structure of the device embodiment in FIG. 8 . Correspondingly, the technical solution of any one of the method embodiments in Fig. 1 to Fig. 4 can be implemented, and its implementation principle and technical effect are similar, and will not be repeated here.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.

Claims (31)

1. an inquiry of the domain name processing method, it is characterised in that including:
Dns server obtains the interface statistics data of each isp server, institute to the inquiry of each isp server Stating interface statistics data is at least one data in the network interface item ifEntry in MIB-2;
Described dns server, according to described interface statistics data, determines the rest network of each isp server Disposal ability;Described rest network ability is for reflecting what isp server was able to receive that, and processed and sends The size of data volume and the speed of response speed;
Described dns server receives the inquiry of the domain name request that user terminal sends;
Described dns server determines the ISP that in each isp server, rest network disposal ability is the strongest Server;
The IP address of described first isp server is fed back to described user terminal by described dns server.
Method the most according to claim 1, it is characterised in that described determine in each isp server Before the first isp server that rest network disposal ability is the strongest, also include:
Inquire about the resource record RR corresponding with each isp server, obtain the rest network of each isp server Disposal ability.
Method the most according to claim 1 and 2, it is characterised in that also include:
If N continuous time is to the failure of isp server query interface statistical data, it is determined that described ISP services Device off-line, described N is the integer more than 2.
Method the most according to claim 1 and 2, it is characterised in that described to each isp server Inquiry obtains the interface statistics data of each isp server, including:
The capability query request message of snmp protocol is sent to each isp server;
Receive the capability query response message of the snmp protocol of each isp server feedback, each capability query Response message comprises the interface statistics data of the isp server of correspondence.
Method the most according to claim 1 and 2, it is characterised in that described interface statistics data, Including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, input packet count ifInErrors abandoned because making a mistake, the total amount of byte sent IfOutOctets, the output grouping number ifOutErrors abandoned because making a mistake;
Described determine the rest network disposal ability of each isp server according to described interface statistics data, Including:
Described rest network disposal ability E is obtained according to formula (1):
E=∑ (ifSpeed × T/8-ifInOctets-ifOutOctets (ifInErrors+ ifOutErrors)×ifMtu) (1)
Wherein, T is test period, and ifInOctets is the byte number received in test period, IfOutOctets is to have sent byte number in test period, and ifInErrors is that test period endogenous cause of ill occurs mistake The input packet count by mistake abandoned, ifOutErrors is that the output that test period endogenous cause of ill mistake abandons divides Group number.
Method the most according to claim 1 and 2, it is characterised in that described interface statistics data, Including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, input packet count ifInErrors abandoned because making a mistake, the total amount of byte sent IfOutOctets, the output grouping number ifOutErrors abandoned because making a mistake, isp server CPU because of Input packet count ifInDiscards having little time to process and abandon, the output that interface has little time to send and abandons Packet count ifOutDiscards;
Described determine the rest network disposal ability of each isp server according to described interface statistics data, Including:
Described rest network disposal ability E is obtained according to formula (2):
E=∑ (ifSpeed × T/8-ifInOctets-ifOutOctets (ifInErrors+ ifOutErrors +⊿ifInDiscards+⊿ifOutDiscards)×ifMtu) (2)
Wherein, T is test period, and ifInOctets is the byte number received in test period, IfOutOctets is to have sent byte number in test period, and ifInErrors is that test period endogenous cause of ill occurs mistake The input packet count by mistake abandoned, ifOutErrors is that the output that test period endogenous cause of ill mistake abandons divides Group number, ifInDiscards be in test period isp server CPU abandon because having little time to process defeated Entering packet count, ifOutDiscards is that test period inner joint has little time to send the output grouping abandoned Number.
Method the most according to claim 1 and 2, it is characterised in that described interface statistics data, Including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, input packet count ifInErrors abandoned because making a mistake, the total amount of byte sent IfOutOctets, the output grouping number ifOutErrors abandoned because making a mistake, isp server CPU because of Input packet count ifInDiscards having little time to process and abandon, the output that interface has little time to send and abandons Packet count ifOutDiscards, the input packet count that isp server abandons because receiving invalidation protocol ifInUnknownProtos;
Described determine the rest network disposal ability of each isp server according to described interface statistics data, Including:
Described rest network disposal ability E is obtained according to formula (3):
E=∑ (ifSpeed × T/8-ifInOctets-ifOutOctets (ifInErrors+ ifOutErrors+ ifInDiscards+⊿ifOutDiscards+⊿ifInUnknownProtos)×ifMtu) (3)
Wherein, T is test period, and ifInOctets is the byte number received in test period, IfOutOctets is to have sent byte number in test period, and ifInErrors is that test period endogenous cause of ill occurs mistake The input packet count by mistake abandoned, ifOutErrors is that the output that test period endogenous cause of ill mistake abandons divides Group number, ifInDiscards be in test period isp server CPU abandon because having little time to process defeated Entering packet count, ifOutDiscards is that test period inner joint has little time to send the output grouping abandoned Number, ifInUnknownProtos is that isp server abandons because receiving invalidation protocol in test period Input packet count.
Method the most according to claim 1 and 2, it is characterised in that described interface statistics data, Including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, total amount of byte ifOutOctets sent;
Described determine the rest network disposal ability of each isp server according to described interface statistics data, Including:
Described rest network disposal ability E is obtained according to formula (4):
E=∑ (ifSpeed × T/8-ifInOctets-ifOutOctets) (4)
Wherein, T is test period, and ifInOctets is the byte number received in test period, IfOutOctets is to have sent byte number in test period.
Method the most according to claim 1 and 2, it is characterised in that described interface statistics data, Including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, receive and be delivered to upper strata Unicast packet number ifInUcastPkts, receives and is delivered to multicast packet count ifInNUcastPkts on upper strata, The unicast packet number ifOutUcastPkts received from upper strata and send, receives from upper strata and sends Multicast packet count ifOutNUcastPkts;
Described determine the rest network disposal ability of each isp server according to described interface statistics data, Including:
Described rest network disposal ability E is obtained according to formula (5):
E=∑ (ifSpeed × T/8 (ifInUcastPkts+ ifInNUcastPkts) × ifMtu ( ifOutUcastPkts+⊿ifOutNUcastPkts)×ifMtu) (5)
Wherein, T is test period, and ifInUcastPkts is for receive and to be delivered to upper strata within test period Unicast packet number, ifInNUcastPkts is that the multicast receiving and being delivered to upper strata within test period divides Group number, ifOutUcastPkts is the unicast packet receiving from upper strata within test period and sending Number, ifOutNUcastPkts is the multicast packet count receiving from upper strata within test period and sending.
10. an inquiry of the domain name processing method, it is characterised in that including:
Isp server receives the capability query request message of the snmp protocol that dns server sends;
Described isp server is to the capability query response report of described dns server feedback snmp protocol Literary composition, comprises interface statistics data in described capability query response message so that described dns server according to Described interface statistics data, determine the rest network disposal ability of each isp server;Described rest network The size of the data volume that ability is able to receive that for reflecting isp server, processes and sends and response speed The speed of degree, described interface statistics data are at least one in the network interface item ifEntry in MIB-2 Data.
11. methods according to claim 10, it is characterised in that described interface statistics data, bag Include:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, input packet count ifInErrors abandoned because making a mistake, the total amount of byte sent IfOutOctets, the output grouping number ifOutErrors abandoned because making a mistake.
12. methods according to claim 10, it is characterised in that described interface statistics data, bag Include:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, input packet count ifInErrors abandoned because making a mistake, the total amount of byte sent IfOutOctets, the output grouping number ifOutErrors abandoned because making a mistake, isp server CPU because of Input packet count ifInDiscards having little time to process and abandon, the output that interface has little time to send and abandons Packet count ifOutDiscards.
13. methods according to claim 10, it is characterised in that described interface statistics data, bag Include:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, input packet count ifInErrors abandoned because making a mistake, the total amount of byte sent IfOutOctets, the output grouping number ifOutErrors abandoned because making a mistake, isp server CPU because of Input packet count ifInDiscards having little time to process and abandon, the output that interface has little time to send and abandons Packet count ifOutDiscards, the input packet count that isp server abandons because receiving invalidation protocol ifInUnknownProtos。
14. methods according to claim 10, it is characterised in that described interface statistics data, bag Include:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, total amount of byte ifOutOctets sent.
15. methods according to claim 10, it is characterised in that described interface statistics data, bag Include:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, receive and be delivered to upper strata Unicast packet number ifInUcastPkts, receives and is delivered to multicast packet count ifInNUcastPkts on upper strata, The unicast packet number ifOutUcastPkts received from upper strata and send, receives from upper strata and sends Multicast packet count ifOutNUcastPkts.
16. 1 kinds of dns servers, it is characterised in that including:
Statistical module, for obtaining the interface statistics data of each isp server to the inquiry of each isp server, According to described interface statistics data, determine the rest network disposal ability of each isp server;Described residue The size of the data volume that network capabilities is able to receive that for reflecting isp server, processes and sends and sound Answer the speed of speed, described interface statistics data be in the network interface item ifEntry in MIB-2 at least A kind of data;
Receiver module, for receiving the inquiry of the domain name request that user terminal sends;
Select module, for determining the ISP that in each isp server, rest network disposal ability is the strongest Server;
Feedback module, for feeding back to described user terminal by the IP address of described first isp server.
17. dns servers according to claim 16, it is characterised in that also include:
Enquiry module, for the resource record RR that inquiry is corresponding with each isp server, obtains each ISP clothes The rest network disposal ability of business device.
18. according to the dns server described in claim 16 or 17, it is characterised in that also include:
Determination module, if for N continuous time to the failure of isp server query interface statistical data, the most really Fixed described isp server off-line, described N is the integer more than 2.
19. according to the dns server described in claim 16 or 17, it is characterised in that described statistics Module, including:
Transmitting element, for sending the capability query request message of snmp protocol to each isp server;
Receive unit, for receiving the capability query response report of the snmp protocol of each isp server feedback Literary composition, comprises the interface statistics data of the isp server of correspondence in each capability query response message;
Statistical disposition unit, for according to described interface statistics data, determines the residue of each isp server Network throughput.
20. according to the dns server described in claim 16 or 17, it is characterised in that described interface Statistical data, including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, input packet count ifInErrors abandoned because making a mistake, the total amount of byte sent IfOutOctets, the output grouping number ifOutErrors abandoned because making a mistake;
Described statistical module, specifically for:
Described rest network disposal ability E is obtained according to formula (1):
E=∑ (ifSpeed × T/8-ifInOctets-ifOutOctets (ifInErrors+ ifOutErrors)×ifMtu) (1)
Wherein, T is test period, and ifInOctets is the byte number received in test period, IfOutOctets is to have sent byte number in test period, and ifInErrors is that test period endogenous cause of ill occurs mistake The input packet count by mistake abandoned, ifOutErrors is that the output that test period endogenous cause of ill mistake abandons divides Group number.
21. according to the dns server described in claim 16 or 17, it is characterised in that described statistics The interface statistics data of module statistics, including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, input packet count ifInErrors abandoned because making a mistake, the total amount of byte sent IfOutOctets, the output grouping number ifOutErrors abandoned because making a mistake, isp server CPU because of Input packet count ifInDiscards having little time to process and abandon, the output that interface has little time to send and abandons Packet count ifOutDiscards;
Described statistical module, specifically for:
Described rest network disposal ability E is obtained according to formula (2):
E=∑ (ifSpeed × T/8-ifInOctets-ifOutOctets (ifInErrors+ ifOutErrors +⊿ifInDiscards+⊿ifOutDiscards)×ifMtu) (2)
Wherein, T is test period, and ifInOctets is the byte number received in test period, IfOutOctets is to have sent byte number in test period, and ifInErrors is that test period endogenous cause of ill occurs mistake The input packet count by mistake abandoned, ifOutErrors is that the output that test period endogenous cause of ill mistake abandons divides Group number, ifInDiscards be in test period isp server CPU abandon because having little time to process defeated Entering packet count, ifOutDiscards is that test period inner joint has little time to send the output grouping abandoned Number.
22. according to the dns server described in claim 16 or 17, it is characterised in that described statistics The interface statistics data of module statistics, including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, input packet count ifInErrors abandoned because making a mistake, the total amount of byte sent IfOutOctets, the output grouping number ifOutErrors abandoned because making a mistake, isp server CPU because of Input packet count ifInDiscards having little time to process and abandon, the output that interface has little time to send and abandons Packet count ifOutDiscards, the input packet count that isp server abandons because receiving invalidation protocol ifInUnknownProtos;
Described statistical module, specifically for:
Described rest network disposal ability E is obtained according to formula (3):
E=∑ (ifSpeed × T/8-ifInOctets-ifOutOctets (ifInErrors+ ifOutErrors+ ifInDiscards+⊿ifOutDiscards+⊿ifInUnknownProtos)×ifMtu) (3)
Wherein, T is test period, and ifInOctets is the byte number received in test period, IfOutOctets is to have sent byte number in test period, and ifInErrors is that test period endogenous cause of ill occurs mistake The input packet count by mistake abandoned, ifOutErrors is that the output that test period endogenous cause of ill mistake abandons divides Group number, ifInDiscards be in test period isp server CPU abandon because having little time to process defeated Entering packet count, ifOutDiscards is that test period inner joint has little time to send the output grouping abandoned Number, ifInUnknownProtos is that isp server abandons because receiving invalidation protocol in test period Input packet count.
23. according to the dns server described in claim 16 or 17, it is characterised in that described statistics The interface statistics data of module statistics, including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, total amount of byte ifOutOctets sent;
Described statistical module, specifically for:
Described rest network disposal ability E is obtained according to formula (4):
E=∑ (ifSpeed × T/8-ifInOctets-ifOutOctets) (4)
Wherein, T is test period, and ifInOctets is the byte number received in test period, IfOutOctets is to have sent byte number in test period.
24. according to the dns server described in claim 16 or 17, it is characterised in that described statistics The interface statistics data of module statistics, including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, receive and be delivered to upper strata Unicast packet number ifInUcastPkts, receives and is delivered to multicast packet count ifInNUcastPkts on upper strata, The unicast packet number ifOutUcastPkts received from upper strata and send, receives from upper strata and sends Multicast packet count ifOutNUcastPkts;
Described statistical module, specifically for:
Described rest network disposal ability E is obtained according to formula (5):
E=∑ (ifSpeed × T/8 (ifInUcastPkts+ ifInNUcastPkts) × ifMtu ( ifOutUcastPkts+⊿ifOutNUcastPkts)×ifMtu) (5)
Wherein, T is test period, and ifInUcastPkts is for receive and to be delivered to upper strata within test period Unicast packet number, ifInNUcastPkts is that the multicast receiving and being delivered to upper strata within test period divides Group number, ifOutUcastPkts is the unicast packet receiving from upper strata within test period and sending Number, ifOutNUcastPkts is the multicast packet count receiving from upper strata within test period and sending.
25. 1 kinds of isp servers, it is characterised in that including:
Receiver module, for receiving the capability query request report of the snmp protocol that dns server sends Literary composition;
Feedback module, for the capability query response report of described dns server feedback snmp protocol Literary composition, comprises interface statistics data in described capability query response message so that described dns server according to Described interface statistics data, determine the rest network disposal ability of each isp server;Described rest network The size of the data volume that ability is able to receive that for reflecting isp server, processes and sends and response speed The speed of degree, described interface statistics data are at least one in the network interface item ifEntry in MIB-2 Data.
26. isp servers according to claim 25, it is characterised in that described interface statistics number According to, including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, input packet count ifInErrors abandoned because making a mistake, the total amount of byte sent IfOutOctets, the output grouping number ifOutErrors abandoned because making a mistake.
27. isp servers according to claim 25, it is characterised in that described interface statistics number According to, including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, input packet count ifInErrors abandoned because making a mistake, the total amount of byte sent IfOutOctets, the output grouping number ifOutErrors abandoned because making a mistake, isp server CPU because of Input packet count ifInDiscards having little time to process and abandon, the output that interface has little time to send and abandons Packet count ifOutDiscards.
28. isp servers according to claim 25, it is characterised in that described interface statistics number According to, including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, input packet count ifInErrors abandoned because making a mistake, the total amount of byte sent IfOutOctets, the output grouping number ifOutErrors abandoned because making a mistake, isp server CPU because of Input packet count ifInDiscards having little time to process and abandon, the output that interface has little time to send and abandons Packet count ifOutDiscards, the input packet count that isp server abandons because receiving invalidation protocol ifInUnknownProtos。
29. isp servers according to claim 25, it is characterised in that described interface statistics number According to, including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, the total amount of byte received IfInOctets, total amount of byte ifOutOctets sent.
30. isp servers according to claim 25, it is characterised in that described interface statistics number According to, including:
The maximum data packet byte number ifMtu that can transmit, bandwidth ifSpeed, receive and be delivered to upper strata Unicast packet number ifInUcastPkts, receives and is delivered to multicast packet count ifInNUcastPkts on upper strata, The unicast packet number ifOutUcastPkts received from upper strata and send, receives from upper strata and sends Multicast packet count ifOutNUcastPkts.
31. 1 kinds of domain name processing systems, it is characterised in that include institute any one of claim 16~24 Isp server according to any one of the dns server stated and at least one claim 25~30.
CN201210523971.5A 2012-12-07 2012-12-07 Inquiry of the domain name processing method, server and system Active CN102970391B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210523971.5A CN102970391B (en) 2012-12-07 2012-12-07 Inquiry of the domain name processing method, server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210523971.5A CN102970391B (en) 2012-12-07 2012-12-07 Inquiry of the domain name processing method, server and system

Publications (2)

Publication Number Publication Date
CN102970391A CN102970391A (en) 2013-03-13
CN102970391B true CN102970391B (en) 2016-09-28

Family

ID=47800270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210523971.5A Active CN102970391B (en) 2012-12-07 2012-12-07 Inquiry of the domain name processing method, server and system

Country Status (1)

Country Link
CN (1) CN102970391B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101607092B1 (en) * 2014-11-18 2016-03-29 에스케이텔레콤 주식회사 Method for providing of streaming contents and recording medium recording program therfor
WO2017177437A1 (en) * 2016-04-15 2017-10-19 深圳前海达闼云端智能科技有限公司 Domain name resolution method, device, and system
CN107547670B (en) * 2016-06-28 2020-12-29 阿里巴巴集团控股有限公司 Domain name information query method and device
CN106789265A (en) * 2016-12-27 2017-05-31 北京五八信息技术有限公司 The clustering method and device of a kind of service cluster
CN110266555B (en) * 2019-05-09 2020-06-02 重庆八戒电子商务有限公司 Method for analyzing website service request

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102288A (en) * 2006-07-06 2008-01-09 阿里巴巴公司 A method and system for realizing large-scale instant message
CN101563690A (en) * 2006-10-19 2009-10-21 派克斯费尔有限公司 Methods and systems for node ranking based on DNS session data
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services
CN102316172A (en) * 2010-07-05 2012-01-11 中国电信股份有限公司 Method, system and SAG (service access gateway) equipment for analyzing DNS (domain name system)
CN102457440A (en) * 2012-01-13 2012-05-16 华为软件技术有限公司 Method for realizing load balance, DNS server and client
CN102480529A (en) * 2010-11-24 2012-05-30 北京无线恒远科技有限公司 Domain name resolution method and domain name resolution server for realizing load balance of wide area network
CN102739811A (en) * 2011-04-07 2012-10-17 中国移动通信集团公司 Method and device of domain name resolution

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7343399B2 (en) * 2001-06-25 2008-03-11 Nortel Networks Limited Apparatus and method for managing internet resource requests

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102288A (en) * 2006-07-06 2008-01-09 阿里巴巴公司 A method and system for realizing large-scale instant message
CN101563690A (en) * 2006-10-19 2009-10-21 派克斯费尔有限公司 Methods and systems for node ranking based on DNS session data
CN101764855A (en) * 2009-12-30 2010-06-30 福建星网锐捷网络有限公司 Method, device and system for providing domain name resolution services
CN102316172A (en) * 2010-07-05 2012-01-11 中国电信股份有限公司 Method, system and SAG (service access gateway) equipment for analyzing DNS (domain name system)
CN102480529A (en) * 2010-11-24 2012-05-30 北京无线恒远科技有限公司 Domain name resolution method and domain name resolution server for realizing load balance of wide area network
CN102739811A (en) * 2011-04-07 2012-10-17 中国移动通信集团公司 Method and device of domain name resolution
CN102457440A (en) * 2012-01-13 2012-05-16 华为软件技术有限公司 Method for realizing load balance, DNS server and client

Also Published As

Publication number Publication date
CN102970391A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
CN106230896B (en) A message push method, device and system
US10374955B2 (en) Managing network computing components utilizing request routing
US9985927B2 (en) Managing content delivery network service providers by a content broker
WO2018133454A1 (en) Method for controlling remote service access path, and relevant apparatus
CN109391500A (en) A kind of configuring management method, device and equipment
JP6145216B2 (en) Data transmission method, apparatus, and computer storage medium
CN110557354B (en) Method and device for realizing communication between nodes and electronic equipment
CN105099730B (en) Terminal device, the network flux statistical method based on terminal device and system
CN105554065A (en) Method, conversion unit and application unit for message processing
CN110830282B (en) Method, device and equipment for configuring user plane function
CN102970391B (en) Inquiry of the domain name processing method, server and system
CN103518350A (en) Method and system for group communication, group server and group member device
CN102739811B (en) The method and apparatus of domain name mapping
US10243783B2 (en) Method and device for processing communication path
CN102131239B (en) Business processing unit and method, business control gateway and load balancing method
US10142282B2 (en) Methods and gateways for processing DNS request
Elmangoush et al. Application-derived communication protocol selection in M2M platforms for smart cities
CN107204924A (en) Link discovery method and device
CN110620721A (en) Gateway equipment, application method and service system
CN107332744B (en) Routing path selection method and system and user access server
CN103327129A (en) Domain name analyticmethod for multi-WAN-port gateway device
CN102075588B (en) Method and system for realizing network address translation (NAT) transversing and equipment
CN105681266A (en) Communication cluster method and device for MMTel (MultiMedia Telephony)
CN101175038A (en) Method, communication system and equipment for data stream information transmission
CN103178985B (en) Network equipment polling method, network equipment polling system and network equipment polling device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant