CN105450775A - Load balancing method and load balancing device for DNS - Google Patents

Load balancing method and load balancing device for DNS Download PDF

Info

Publication number
CN105450775A
CN105450775A CN201511001370.8A CN201511001370A CN105450775A CN 105450775 A CN105450775 A CN 105450775A CN 201511001370 A CN201511001370 A CN 201511001370A CN 105450775 A CN105450775 A CN 105450775A
Authority
CN
China
Prior art keywords
dns
load balancing
domain name
load
client node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201511001370.8A
Other languages
Chinese (zh)
Inventor
陈宏亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dawning Information Industry Beijing Co Ltd
Original Assignee
Dawning Information Industry Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN201511001370.8A priority Critical patent/CN105450775A/en
Publication of CN105450775A publication Critical patent/CN105450775A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1017Server selection for load balancing based on a round robin mechanism

Abstract

The invention discloses a load balancing method and a load balancing device for a DNS (Domain Name System). The method comprises the following steps of: according to a received domain name, acquiring an IP list corresponding to the domain name; under the condition that a load balancing strategy of the DNS is a polling strategy, by taking a client node as unit, executing polling to select a target client node; executing polling to the IP on the target client node to select a target IP, and transmitting the target IP. By means of adding a new polling strategy mode on the basis of original DNS server source codes, the method and the device can evenly distribute the load to each node and IP, and thus, load balance of a whole trunking system is realized.

Description

For load-balancing method and the device of DNS
Technical field
The present invention relates to communication technical field, specifically, relate to a kind of load-balancing method for DNS and device.
Background technology
It is the IP of its correspondence that domain name system (DNS) server is mainly used in domain name mapping, and when a domain name has multiple IP, dns server can sort to these IP according to certain strategy, then the IP after sequence is returned to DNS client.DNS client, after the IP receiving these sequences, generally all can select the IP that ranks the first as the result of domain name mapping.But the dns server of standard all simply can only sort in units of IP, they all can not sort in units of node, and simultaneously they also all can not meet the demand dynamically returning IP according to the load of each node and IP.
Existing dns server all simply can only sort in units of IP, and they all can not sort in units of node, and simultaneously they also all can not meet the demand dynamically returning IP according to the load of each node and IP.
For the problems referred to above in correlation technique, at present effective solution is not yet proposed.
Summary of the invention
For the problems referred to above in correlation technique, the present invention proposes a kind of load-balancing method for DNS and device, can being assigned to Load Balanced on each node and IP, thus realizes the load balancing of whole group system.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, a kind of load-balancing method for DNS is provided.
This load-balancing method comprises:
According to the IP list of the corresponding domain name of the domain Name acquisition received;
When the load balancing of DNS is polling schemas, in units of client node, carries out poll carry out select target client node;
Carry out poll to the IP on target client nodes carry out select target IP and send.
Wherein, in units of client node, carry out poll according to lexcographical order and carry out select target client node.
In addition, carry out poll according to lexcographical order to the IP on target client nodes carry out select target IP and send.
According to a further aspect in the invention, a kind of load balancing apparatus for DNS is provided.
This load balancing apparatus comprises:
Acquisition module, for the IP list according to the corresponding domain name of the domain Name acquisition received;
First selects module, for when the load balancing of DNS is polling schemas, carries out poll and carry out select target client node in units of client node;
Second selects module, carrys out select target IP for carrying out poll to the IP on target client nodes and sends.
Wherein, first selects module, is further used in units of client node, carrying out poll according to lexcographical order and carrys out select target client node.
In addition, second selects module, is further used for carrying out poll according to lexcographical order to the IP on target client nodes and carrys out select target IP and send.
The present invention, can being assigned to Load Balanced on each node and IP by adding new polling schemas pattern on original dns server source code basis, thus realize the load balancing of whole group system.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the load-balancing method for DNS according to the embodiment of the present invention;
Fig. 2 is the system flow chart of the load-balancing method for DNS according to the embodiment of the present invention;
Fig. 3 is according to the overall querying flow figure of the DNS of the embodiment of the present invention;
Fig. 4 is the flow chart of the DNS polling schemas according to the embodiment of the present invention;
Fig. 5 is the interaction figure of the DNS polling schemas according to the embodiment of the present invention;
Fig. 6 is the block diagram of the load balancing apparatus for DNS according to the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of protection of the invention.
According to embodiments of the invention, provide a kind of load-balancing method for DNS.
As shown in Figure 1, comprise according to the load-balancing method of the embodiment of the present invention:
Step S101, according to the IP list of the corresponding domain name of the domain Name acquisition received;
Step S103, when the load balancing of DNS is polling schemas, carries out poll and carrys out select target client node in units of client node;
Step S105, root carries out poll to the IP on target client nodes to be carried out select target IP and sends.
For system flow chart of the present invention as shown in Figure 2, dns server is responsible for resolving the domain name that sends over of subscription client and is returned corresponding IP according to corresponding load balancing.User can use the dns server on MGR node, also can use the DNS forwarding server that interface node runs.User, can configuring static domain name and DDNS by interface, also can configure the load balancing of DNS.
And for the overall procedure framework of DNS, the present invention does not make an amendment, amendment that what the present invention will make is its obtain configuration and carry out the process of IP list ordering by configuration, make it meet the demand of load balancing.The overall querying flow of DNS as shown in Figure 3.
When the load balancing of dns server is configured to polling schemas, then during each carry, dns server all can select the IP of each interface node according to lexcographical order circulation, if an interface node has multiple IP, then in all IP of this node, carry out repeating query again.In this example, the IP Address d istribution situation of each node is as shown in table 1:
Then during each carry, IP Circulating fibrocytes corresponding to domain name is 30.0.34.126,30.0.34.128,30.0.34.127 and 30.0.34.129.
When the load balancing of dns server is configured to polling schemas, then during each carry, dns server all can circulate and select the IP of each interface node, if an interface node has multiple IP, then in all IP of this node, carries out poll again.The flow process of its correspondence as shown in Figure 4.
This domain name as shown in Figure 5, when dns server receives the domain name that user sends, can be sent to the DNS load balancing module being positioned at mgs inside modules by interaction design of the present invention.All partition configuration information that DNS load balancing module is preserved by inner DNS configuration acquisition module acquisition mgs, then therefrom obtain information needed.According to the strategy obtained, perform polling schemas algorithm.After having run polling schemas algorithm, resolve IP by obtaining the optimum drawn by this policing algorithm, finally this IP is returned to dns server, this IP is returned to user by dns server again.
According to embodiments of the invention, additionally provide a kind of load balancing apparatus for DNS.
As shown in Figure 6, comprise according to the load balancing apparatus of the embodiment of the present invention:
Acquisition module 61, for the IP list according to the corresponding domain name of the domain Name acquisition received;
First selects module 62, for when the load balancing of DNS is polling schemas, carries out poll and carry out select target client node in units of client node;
Second selects module 63, carrys out select target IP for carrying out poll to the IP on target client nodes and sends.
Wherein, in one embodiment, according to the embodiment of the present invention first selects module 62, is further used in units of client node, carrying out poll according to lexcographical order and carrys out select target client node.
In addition, in one embodiment, according to the embodiment of the present invention second selects module 63, is further used for carrying out poll according to lexcographical order to the IP on target client nodes and carrys out select target IP and send.
In sum, by means of technique scheme of the present invention, by adding new polling schemas pattern on original dns server source code basis, can being assigned to Load Balanced on each node and IP, thus realize the load balancing of whole group system; Further, there is not Single Point of Faliure in dns server, and be that the access of process to client of DNS load balancing is transparent.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. for a load-balancing method for domain name system DNS, it is characterized in that, comprising:
According to the IP list of the corresponding domain name of the domain Name acquisition received;
When the load balancing of described DNS is polling schemas, in units of client node, carries out poll carry out select target client node;
Carry out poll to the IP on described target client nodes carry out select target IP and send.
2. load-balancing method according to claim 1, is characterized in that, carries out poll carry out select target client node according to lexcographical order in units of client node.
3. load-balancing method according to claim 1, is characterized in that, carries out poll carry out select target IP and send according to lexcographical order to the IP on described target client nodes.
4. for a load balancing apparatus for domain name system DNS, it is characterized in that, comprising:
Acquisition module, for the IP list according to the corresponding domain name of the domain Name acquisition received;
First selects module, for when the load balancing of described DNS is polling schemas, carries out poll and carry out select target client node in units of client node;
Second selects module, carrys out select target IP for carrying out poll to the IP on described target client nodes and sends.
5. load balancing apparatus according to claim 4, is characterized in that, described first selects module, is further used in units of client node, carrying out poll according to lexcographical order and carrys out select target client node.
6. load balancing apparatus according to claim 4, is characterized in that, described second selects module, is further used for carrying out poll according to lexcographical order to the IP on described target client nodes and carrys out select target IP and send.
CN201511001370.8A 2015-12-28 2015-12-28 Load balancing method and load balancing device for DNS Pending CN105450775A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511001370.8A CN105450775A (en) 2015-12-28 2015-12-28 Load balancing method and load balancing device for DNS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511001370.8A CN105450775A (en) 2015-12-28 2015-12-28 Load balancing method and load balancing device for DNS

Publications (1)

Publication Number Publication Date
CN105450775A true CN105450775A (en) 2016-03-30

Family

ID=55560541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511001370.8A Pending CN105450775A (en) 2015-12-28 2015-12-28 Load balancing method and load balancing device for DNS

Country Status (1)

Country Link
CN (1) CN105450775A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106210147A (en) * 2016-09-13 2016-12-07 郑州云海信息技术有限公司 A kind of load-balancing method based on poll and device
CN106254576A (en) * 2016-09-12 2016-12-21 杭州华三通信技术有限公司 A kind of message forwarding method and device
CN106330610A (en) * 2016-08-29 2017-01-11 浪潮(北京)电子信息产业有限公司 Load balance processing system and method
CN109151028A (en) * 2018-08-23 2019-01-04 郑州云海信息技术有限公司 A kind of distributed memory system disaster recovery method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030195984A1 (en) * 1998-07-15 2003-10-16 Radware Ltd. Load balancing
CN101340327A (en) * 2008-08-21 2009-01-07 腾讯科技(深圳)有限公司 Method, system and domain name parsing server implementing load balance of network server
CN102130776A (en) * 2010-01-19 2011-07-20 新浪网技术(中国)有限公司 Communication method and system
CN103685056A (en) * 2014-01-14 2014-03-26 互联网域名***北京市工程研究中心有限公司 Load balancing method and load balancing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030195984A1 (en) * 1998-07-15 2003-10-16 Radware Ltd. Load balancing
CN101340327A (en) * 2008-08-21 2009-01-07 腾讯科技(深圳)有限公司 Method, system and domain name parsing server implementing load balance of network server
CN102130776A (en) * 2010-01-19 2011-07-20 新浪网技术(中国)有限公司 Communication method and system
CN103685056A (en) * 2014-01-14 2014-03-26 互联网域名***北京市工程研究中心有限公司 Load balancing method and load balancing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐丹: "面向野外大遗址保护的无线传感网多网关数据传输协议研究", 《中国优秀硕士学位论文全文数据库》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106330610A (en) * 2016-08-29 2017-01-11 浪潮(北京)电子信息产业有限公司 Load balance processing system and method
CN106254576A (en) * 2016-09-12 2016-12-21 杭州华三通信技术有限公司 A kind of message forwarding method and device
CN106254576B (en) * 2016-09-12 2020-01-03 新华三技术有限公司 Message forwarding method and device
CN106210147A (en) * 2016-09-13 2016-12-07 郑州云海信息技术有限公司 A kind of load-balancing method based on poll and device
CN109151028A (en) * 2018-08-23 2019-01-04 郑州云海信息技术有限公司 A kind of distributed memory system disaster recovery method and device

Similar Documents

Publication Publication Date Title
CN104137518B (en) Internet protocol connection in Service-Oriented Architecture Based bus
CN105450774A (en) Load balancing method and load balancing device for DNS
KR102138619B1 (en) Message clustering method and load balancer based on server cluster
US10491464B2 (en) Network topology assisted device provisioning
CN105450775A (en) Load balancing method and load balancing device for DNS
CN104283806A (en) Service link processing method and device
CN105049359A (en) Technologies for distributed routing table lookup
CN105099898B (en) A kind of PPPOE message forwarding methods and BRAS servers
CN105379218A (en) Service flow processing method, apparatus and device
CN109525684B (en) Message forwarding method and device
CN105472025A (en) Load balancing method and device based on DNS (domain name system)
CN105471745A (en) Technologies for bridging between coarse-grained and fine-grained load balancing
CN105991660B (en) System for resource sharing among multiple cloud storage systems
AU2013375618A1 (en) Load sharing method and apparatus
US9060027B2 (en) Assigning location identifiers to nodes in a distributed computer cluster network environment
CN105376347A (en) IP address allocation method and system
JP2018523955A (en) Routing management
CN103618801A (en) Method, device and system for sharing P2P (Peer-to-Peer) resources
US20220131719A1 (en) Forwarding domain allocation method and apparatus, storage medium, and electronic device
CN107896257A (en) Method, apparatus, equipment and the medium of deploying client subsystem function
CN103561122B (en) IPv6 address collocation method, IPv6 client and server
CN104954155B (en) The network equipment with multiple business boards and multi-service plate sharing method
CN102821165A (en) Method and device for converting internet protocol (IP) address
CN105376309B (en) Access gateway allocation method and device
US9628439B2 (en) Systems and methods for managing network address information

Legal Events

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

Application publication date: 20160330

RJ01 Rejection of invention patent application after publication