CN108881509A - A kind of DNS query method and device based on HTTPDNS - Google Patents
A kind of DNS query method and device based on HTTPDNS Download PDFInfo
- Publication number
- CN108881509A CN108881509A CN201810571911.8A CN201810571911A CN108881509A CN 108881509 A CN108881509 A CN 108881509A CN 201810571911 A CN201810571911 A CN 201810571911A CN 108881509 A CN108881509 A CN 108881509A
- Authority
- CN
- China
- Prior art keywords
- server
- domain name
- visited
- service condition
- weight
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1044—Group management mechanisms
Abstract
The invention relates to field of communication technology more particularly to a kind of DNS query method and devices based on HTTPDNS.The embodiment of the present application includes:Receive the domain name mapping request that client is sent based on HTTPDNS agreement, wherein, it include domain name to be visited in domain name mapping request, obtain the corresponding N number of server of domain name to be visited, and in N number of server each server resource service condition, according to the resource service condition of server each in N number of server, the address of the corresponding server to be visited of domain name is returned to client, server to be visited is the server in N number of server.Information is transmitted due to the embodiment of the present application with reference to the resource service condition of each server and based on HTTPDNS agreement, allow the browser of client balancedly to distribute the access number of each server in N number of server according to resource service condition, so can solve the problem of Edge Server load can not finely control.
Description
Technical field
The invention relates to field of communication technology more particularly to a kind of DNS query method based on HTTP DNS and
Device.
Background technique
With the fast development of field of communication technology, user gradually increases in some amount of access applied, this to apply
End must increase multiple server composition server clusters to meet more and more users' access.And in server cluster and visitor
Name server (Domain Name Server, DNS) can be configured between the end of family, and the access of different clients is assigned to this
On different server in server cluster.
In the prior art, client-side is there are a local dns server, and there are a DNS services for server cluster side
Device, after the browser when customer side sends domain name analysis request, which can be requested to send by local dns server
To the dns server of server cluster side.The dns server of server cluster side parses the domain for including in domain name mapping request
The IP address of the corresponding server of the domain name can be returned after name to local dns server.Local dns server is by server
IP address is sent to the browser of client.Only one or more the corresponding server of the domain name received due to browser
IP address.When user's access, the access of user can be averagely allocated to server by browser.If the load of some server
Ability very little is not able to satisfy the amount of access of browser assignment, then can cause the response delay of the server or cause server
Collapse, prevent client from being responded in time.
Summary of the invention
The embodiment of the present application provides a kind of DNS query method and device based on HTTP DNS, for solving edge service
The problem of device load can not finely control.
The embodiment of the present application provides a kind of DNS query method based on HTTP DNS, including:Client is received to be based on
The domain name mapping request that HTTPDNS agreement is sent, wherein include domain name to be visited in domain name mapping request, obtain domain to be visited
The resource service condition of each server in the corresponding N number of server of name and N number of server, according to each in N number of server
The resource service condition of server returns to domain name resolution response to client, wherein includes domain to be visited in domain name mapping response
The address of the corresponding server to be visited of name, server to be visited are the server in N number of server.
Since the embodiment of the present application is not the corresponding N number of server of domain name to be directly sent to client, but refer to
The resource service condition of each server simultaneously transmits information based on HTTPDNS agreement, and client is made according to resource
The access number of each server in N number of server is balancedly distributed with situation, each server can meet load-bearing capacity
In the case where receive user's access, and can make a response in time and be sent to client, it is negative so to can solve Edge Server
The problem of lotus can not finely control.
Optionally, the resource service condition of each server in the corresponding N number of server of domain name to be visited is obtained, including:
The resource service condition for receiving each server in N number of server of server set pocket transmission, according to clothes each in N number of server
The resource service condition of business device returns to domain name resolution response to client, including the money according to server each in N number of server
Source service condition and load-bearing capacity determine the corresponding weight of each server in N number of server, according to each in N number of server
The corresponding weight of server returns to domain name resolution response to client.
Optionally, domain name mapping response in include N number of server in each server address and N number of server in
The corresponding weight of each server, alternatively, weight is greater than the address of the server of weight threshold in N number of server, wherein be directed to
A server in N number of server, the weight of server is bigger, then the load-bearing capacity of server is bigger, alternatively, clothes to be visited
It is engaged in the address of device, wherein the corresponding weight of server to be visited is greater than weight threshold.
Optionally, for a server in N number of server, the resource service condition of server includes:Server
Any one of disk size of bandwidth, the CPU usage of server and server is appointed multinomial.
Optionally, the resource of each server in the corresponding N number of server of domain name to be visited and N number of server is obtained
Service condition, including:Receive the corresponding power of each server in the corresponding N number of server of domain name to be visited and N number of server
Value;The corresponding weight of each server is determined according to the resource service condition of each server;The N number of server received
And the corresponding weight of each server is packaged according to preset format in N number of server.
The embodiment of the present application provides a kind of DNS query device based on HTTP DNS, including:Transmit-Receive Unit, for receiving
The domain name mapping request that client is sent based on HTTPDNS agreement, wherein include domain name to be visited, place in domain name mapping request
Unit is managed, the resource for obtaining each server in the corresponding N number of server of domain name to be visited and N number of server uses
Situation returns to domain name mapping to client by Transmit-Receive Unit according to the resource service condition of server each in N number of server
Response, wherein include the address of the corresponding server to be visited of domain name to be visited in domain name mapping response, server to be visited is
Server in N number of server.
Optionally, processing unit, specifically for every in N number of server by Transmit-Receive Unit reception server set pocket transmission
The resource service condition of a server is determined according to the resource service condition and load-bearing capacity of server each in N number of server
The corresponding weight of each server passes through transmitting-receiving according to the corresponding weight of server each in N number of server in N number of server
Unit returns to domain name resolution response to client.
Optionally, domain name mapping response in include N number of server in each server address and N number of server in
The corresponding weight of each server, alternatively, weight is greater than the address of the server of weight threshold in N number of server, wherein be directed to
A server in N number of server, the weight of server is bigger, then the load-bearing capacity of server is bigger, alternatively, clothes to be visited
It is engaged in the address of device, wherein the corresponding weight of server to be visited is greater than weight threshold.
Optionally, for a server in N number of server, the resource service condition of server includes:Server
Any one of disk size of bandwidth, the CPU usage of server and server is appointed multinomial.
Optionally, processing unit is specifically used for:The corresponding N number of server of domain name to be visited is received by Transmit-Receive Unit, with
And the corresponding weight of each server in N number of server;The corresponding weight of each server is the resource according to each server
What service condition determined;The corresponding weight of each server is according to default in the N number of server and N number of server received
Format is packaged.
The embodiment of the present application provides a kind of computer storage medium, and computer storage medium is stored with the executable finger of computer
It enables, computer executable instructions make the method that computer is above-mentioned when being called by computer.
The embodiment of the present application provides a kind of computer installation, including:Memory, for storing program instruction, processor is used
In calling the program instruction stored in memory, above-mentioned method is executed according to the program of acquisition.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, the drawings in the following description are only some examples of the present application, for this
For the those of ordinary skill in field, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of applicable system architecture schematic diagram provided by the embodiments of the present application;
Fig. 2 is a kind of applicable system architecture schematic diagram provided by the embodiments of the present application;
Fig. 3 is a kind of flow diagram of the DNS query method based on HTTPDNS provided by the embodiments of the present application;
Fig. 4 is a kind of flow diagram of the DNS query method based on HTTPDNS provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of the DNS query device based on HTTPDNS provided by the embodiments of the present application.
Specific embodiment
In order to which the purpose, technical solution and beneficial effect of the application is more clearly understood, below in conjunction with attached drawing and implementation
Example, is further elaborated the application.It should be appreciated that specific embodiment described herein is only used to explain this Shen
Please, it is not used to limit the application.
Fig. 1 illustrates a kind of applicable system architecture diagram of the embodiment of the present application, as shown in Figure 1, including client
101, equalizing equipment 102 and server cluster 103.Wherein, may exist N platform server, every service in server cluster 103
Device has the address network protocol (Internet Protocol, IP) of oneself, and the server in server cluster can serve
The same application.In other words, user inputs the corresponding domain name mapping of server cluster 103 in the browser of client 101
Request, after equalizing equipment 102 receives the domain name mapping request of client 101, can return in the server cluster one or
The IP address of person's multiple servers, a domain name can correspond to multiple IP address.
There is also communication link between equalizing equipment 102 and server cluster 103, server cluster can be in real time or all
Phase property sends the resource service condition and load-bearing capacity of each server in server cluster to equalizing equipment 102, so that balanced
Equipment 102 can make after the domain name mapping request for receiving client according to the resource of server each in server cluster
Domain name resolution response is sent to client 101 with situation and load-bearing capacity.
It may include two modules in the equalizing equipment 102 in Fig. 1 in a kind of optional embodiment:Module schedules mould
Block and decision-making module, Fig. 2 illustrate a kind of applicable system architecture diagram of the embodiment of the present application, as shown in Fig. 2, including visitor
Family end 101, equalizing equipment 102 and server cluster 103.Wherein, equalizing equipment 102 includes scheduler module 1021 and decision-making module
1022.Client 101 sends domain name analysis request, and scheduler module 1021 receives domain name mapping request, can determine the tune
It spends in module with the presence or absence of the IP address and weight of the corresponding server of domain name in domain name mapping request, and corresponding clothes of domain name
The IP address of device of being engaged in and weight are decision-making modules 1022 according to the resource for receiving obtained each server from server cluster 103
What service condition and load-bearing capacity determined, and it is sent to scheduler module 1021.
In the embodiment of the present application, scheduler module 1021 and decision-making module 1022 can be present in one as shown in Figure 2 and set
In standby, pass through wired connection between scheduler module 1021 and decision-making module 1022.Optionally, scheduler module and decision-making module can be with
It not in the same apparatus, can between dispatcher and decision machine for example, equalizing equipment can be split as to dispatcher and decision machine
With wired connection or wireless communication, can be arranged at the same service provider.Different device structures can be according to different
Applicable cases are arranged.
In the embodiment of the present application, system framework figure that can be as depicted in figs. 1 and 2, there are a server clusters, balanced
It is the resource service condition of every server in the server cluster that decision-making module in equipment or equalizing equipment is received,
The weight that every server is determined according to the resource service condition of every server in said frame figure is serviced with one
Device is a unit to determine weight.In another optional embodiment, may exist multiple server clusters.Equilibrium is set
What standby or equalizing equipment decision-making module received is the resource of each server cluster in multiple server clusters using feelings
Condition, and determine according to the resource service condition of each server cluster the weight of each server cluster, therefore in this mode,
It is to determine weight so that a server cluster is a unit.For the ease of illustrating, hereafter with equalizing equipment or equilibrium
Decision-making module in equipment connects a server cluster and is illustrated, and there are the case where multiple server clusters to be referred to deposit
The server cluster the case where.
The process that Fig. 3 illustrates a kind of applicable DNS query method based on HTTPDNS of the embodiment of the present application is shown
It is intended to, as shown in figure 3, including:
Step 301, equalizing equipment receives the domain name mapping request that client is sent based on HTTPDNS agreement, wherein domain name
It include domain name to be visited in analysis request;
Step 302, equalizing equipment obtains each service in the corresponding N number of server of domain name to be visited and N number of server
The resource service condition of device;
Step 303, equalizing equipment is returned according to the resource service condition of server each in N number of server to client
Domain name mapping response, wherein it include the address of the corresponding server to be visited of domain name to be visited in domain name mapping response, it is to be visited
Server is the server in N number of server.
Since the embodiment of the present application is not the corresponding N number of server of domain name to be directly sent to client, but refer to
The resource service condition of each server simultaneously transmits information based on HTTPDNS agreement, allow the browser of client by
The access number of each server in N number of server is balancedly distributed according to resource service condition, each server can meet
Receive user's access in the case where load-bearing capacity, and can make a response in time and be sent to client end response, so solution edge
The problem of server load is unable to control.Again because equalizing equipment and client transmissions request or response are all based on
HTTPDNS agreement, since the agreement is nonstandard protocol, this is equivalent between client and equalizing equipment using a set of agreement
Agreement transmits information, is not easy to be held as a hostage.
During the application is implemented, the resource service condition of each server in N number of server includes:The band of the server
Any one of disk size of width, the CPU usage of the server and the server is appointed multinomial.Optionally, N number of server
The bandwidth for the server cluster that N number of server forms can also be sent to equalizing equipment in the way of cluster.
In the embodiment of the present application, since client is by browser login service device, in preset duration, browser
The IP address of the corresponding server of domain name can be saved.For example, preset duration is 5 seconds, if user is accessed by some browser
Certain domain name, browser discovery do not store the IP address or domain name mapping result time-out of the corresponding server of the domain name, then may be used
The IP address of the corresponding server of the domain name is received with through the above steps 301 to step 303, and saves the IP address.If
The browser is being kept within 5 seconds after the corresponding IP address of the domain name, and user is accessed under same domain name by browser
Resource, then browser directly can access the server according to the IP address of the corresponding server of the domain name of preservation.
Elaboration based on the preceding paragraph, before step 301, i.e., client is sent to equalizing equipment based under HTTPDNS agreement
Domain name mapping request before, it can be determined that whether browser saves the IP address of the corresponding server of the domain name, if preserving
The IP address of the corresponding server of the domain name, then client directly can be established and be communicated with server.Otherwise, client generates domain
Name analysis request, and it is sent to equalizing equipment.
Before equalizing equipment returns to domain name resolution response to client, one kind optionally obtaining the corresponding N of domain name to be visited
In a server in the embodiment of the resource service condition of each server, equalizing equipment can receive server set pocket transmission
N number of server in each server resource service condition.Equalizing equipment is according to the resource of server each in N number of server
Service condition returns to domain name resolution response to client, including:Equalizing equipment is according to the money of server each in N number of server
Source service condition and load-bearing capacity determine the corresponding weight of each server in N number of server.Equalizing equipment is according to N number of service
The corresponding weight of each server in device returns to domain name resolution response to client.Optionally, load-bearing capacity can be expressed as taking
User's amount of access that business device can also receive.The corresponding weight of one server can be understood as the accessed number of the server
With the ratio of the total degree of the standby access of N number of server.In N number of server, the weight of server is bigger, then the load energy of server
Power is bigger.
In a kind of optional embodiment, server cluster obtains the resource service condition of each server, according to each
The resource service condition of server determines the load-bearing capacity of each server, and by the resource service condition of each server and bears
Lotus ability is sent to equalizing equipment, and the resource that the decision-making module in equalizing equipment obtains each server in server cluster uses
Situation and load-bearing capacity determine the corresponding weight of each server, and the IP address of each server and corresponding weight are sent out
Give the scheduler module in equalizing equipment.
In another optional embodiment, the resource that server cluster obtains each server in server cluster is used
Situation, and it is sent to equalizing equipment.Decision-making module in equalizing equipment obtains the resource of each server in the server cluster
Service condition, and determine according to the resource service condition of each server the load-bearing capacity of each server.Decision-making module can be with
The corresponding weight of each server is determined according to the load-bearing capacity of each server, and by the IP address and correspondence of each server
Right be sent to the scheduler module in equalizing equipment.
In above-mentioned two embodiment, the decision-making module in equalizing equipment determines each server pair in server cluster
The weight answered, can be packaged according to preset format by the corresponding weight of server each in N number of server and N number of server,
The scheduler module being sent in equalizing equipment.
Two kinds of packaged types are described below, it is as follows:
The first:What the decision-making module in equalizing equipment or equalizing equipment connected is multiple server clusters, each clothes
Business device cluster has corresponding weight:
Explanation:Domain name to be visited is cctv.com, and domain name corresponding server cluster A and server cluster B is located at wide
East, wherein the weight of server cluster A is 1, and the weight of server cluster B is 2.
Second:What the decision-making module in equalizing equipment or equalizing equipment connected is 1 server cluster, the server
Each server has corresponding weight in cluster:
Explanation:Domain name to be visited is cctv.com, and the corresponding server A of domain name and server B are located at Guangdong, wherein
The weight of server A is 1, and the weight of server B is 2.
For example, if some is using there are 3 servers in corresponding server cluster:Server A, server B and
Server C.The load-bearing capacity of 3 servers, the load energy of server A has been determined according to the resource service condition of 3 servers
Power is 50000 (user's amount of access that i.e. server A can also receive is 50000), and the load-bearing capacity of server B is 200000,
The load-bearing capacity of server C is 250000, then can determine the weight of server A:The weight of server B:The weight of server C
It is 1:4:5.In other words, if in a period of time, 1000 users access this application, then the request that server A undertakes
Number is close to 100, and the number of request that server B undertakes is close to 400, and the number of request that server C undertakes is close to 500.
In the embodiment of the present application, due between equalizing equipment and server cluster there are communication link, server set
Group can be in real time or every certain duration or in real time by the resource service condition (and load-bearing capacity) of each server
It is sent to equalizing equipment.Optionally, after waiting equipment framework as shown in Figure 1 to put up, equalizing equipment can receive service
The resource service condition (and load-bearing capacity) of each server of device collection pocket transmission, determines the IP address and correspondence of each server
Weight.After equalizing equipment receives domain name mapping request, according to the correspondence of the domain name and IP address to be visited that parse
The domain name mapping response that relationship determination to be sent.Alternatively, after waiting equipment framework as shown in Figure 2 to put up, equalizing equipment
Decision-making module can receive the resource service condition (and load-bearing capacity) of each server of server set pocket transmission, determine every
The IP address of a server and corresponding weight.And the IP address of server and corresponding weight are sent to scheduler module.Deng
After receiving domain name mapping request to scheduler module, wanted according to the determination of the corresponding relationship of the domain name and IP address to be visited that parse
The domain name mapping of transmission responds.Based on the elaboration of upper content, step 302 can be first carried out, then carries out step 301.
In the prior art, local dns server belongs to the operator of similar movement or connection, and what server cluster was surveyed
Dns server is to belong to application provider belonging to server cluster.The dns server that server cluster is surveyed can only be in local
When dns server sends domain name analysis request, the IP of effective (the having load-bearing capacity) server of latest development could be sent
Location list, and after local dns server receives the corresponding IP address list of the primary domain name, take a long time to ask again
The IP address list of server asked the domain name corresponding newest and come into force, this corresponding service of domain name that client is obtained
The IP address of device is also not newest and comes into force, what client was likely to be obtained be before it is effective, but be currently invalid service
The IP address of device.
And in the embodiment of the present application, decision-making module can obtain newest service by the link between server cluster
The resource service condition of each server in device cluster obtains the load-bearing capacity of each server, and because decision-making module and tune
Degree module is in the same equipment or the same service provider, it means that as long as decision-making module obtains new resource and uses feelings
Condition, so that it may which timely update the corresponding weight of each server, so obtains the accurate equalizing equipment an of high refresh rate.
It may include every in N number of server in the first optional embodiment, in domain name mapping response in step 303
The corresponding weight of each server in the IP address of a server and N number of server.Client receives each server
After IP address and corresponding weight, a server can be randomly selected and access, it can also be according to each server pair
The weight answered selects a server to access based on balanced mode.
In second of optional embodiment, domain name mapping response in may include in N number of server weight be greater than weight
The IP address of the server of threshold value.It include service in domain name mapping response if weight threshold is equal to 1 based on above-mentioned example
The IP address of device B and the IP address of server C.Client receives server B and the IP address and corresponding server of server C
After the weight of B and the weight of server C, a server can be randomly selected and access, can also be serviced according to two
The corresponding weight of device selects a server to access based on balanced mode.
It may include the ground of that server to be visited in the third optional embodiment, in domain name mapping response
Location, wherein the corresponding weight of server to be visited is greater than weight threshold.Scheduler module in equalizing equipment or equalizing equipment can
To determine that weight is greater than the server of weight threshold, if weight threshold is 1, server B and server C are selected, with post-equalization
Equipment can be randomly choosed according to the size of weighting ratio, for example, having selected server C, equalizing equipment is by server C's
IP address is sent to client, and client sends access request to server C.In the embodiment of the present application, weight threshold can be with
It is that technical staff is pre-set.
The process that Fig. 4 illustrates a kind of applicable DNS query method based on HTTPDNS of the embodiment of the present application is shown
It is intended to, as shown in figure 4, including:
Step 401, server cluster obtains the resource service condition of each server in N number of server.
Step 402, server cluster determines the load energy of each server according to the resource service condition of each server
Power.
Step 403, the resource service condition and load-bearing capacity of each server are sent to decision-making module by server cluster.
Step 404, decision-making module determines the corresponding weight of each server according to the load-bearing capacity of each server.
Step 405, decision-making module sends out the IP address of each server and corresponding weight according to the form of preset format
It send to scheduler module.
Step 406, client judges whether the IP for being stored with the corresponding server of the domain name according to the domain name that user inputs
Address, and if it exists, then accessed according to the IP address of server, if it does not exist, then go to step 407.
Step 407, client generates domain name mapping request.
Step 408, domain name mapping request is sent to scheduler module by client.
Step 409, scheduler module parses domain name mapping request, obtains domain name, is closed according to domain name and the corresponding of IP address
The IP address of system's acquisition server and corresponding weight.
In the step, after scheduler module parses domain name, determined according to the corresponding relationship of domain name and the IP address of server
IP address judges whether there is corresponding weight according to IP address, if so, then directly acquiring the IP address and corresponding power of server
Value.If no, can be requested to decision-making module transmission weights.
Step 410, scheduler module determines the IP address of server to be visited according to the weight of server.
Step 411, the domain name mapping response of the IP address comprising server to be visited is sent to client by scheduler module.
In the embodiment of the present application, step 303 and step 411 are that domain name resolution response is sent based on HTTPDNS agreement to visitor
Family end.
Based on above embodiments and same idea, Fig. 5 shows provided by the embodiments of the present application a kind of based on HTTPDNS's
The structural schematic diagram of DNS query device, as shown in figure 5, inquiry unit 500 may include Transmit-Receive Unit 501 and processing unit.
The embodiment of the present application provides a kind of DNS query device based on HTTP DNS, including:Transmit-Receive Unit, for receiving
The domain name mapping request that client is sent based on HTTPDNS agreement, wherein include domain name to be visited, place in domain name mapping request
Unit is managed, the resource for obtaining each server in the corresponding N number of server of domain name to be visited and N number of server uses
Situation returns to domain name mapping to client by Transmit-Receive Unit according to the resource service condition of server each in N number of server
Response, wherein include the address of the corresponding server to be visited of domain name to be visited in domain name mapping response, server to be visited is
Server in N number of server.
In a kind of optional embodiment, processing unit is specifically used for through Transmit-Receive Unit reception server set pocket transmission
The resource service condition of each server in N number of server, according to the resource service condition of server each in N number of server and
Load-bearing capacity determines the corresponding weight of each server in N number of server, corresponding according to server each in N number of server
Weight returns to domain name resolution response to client by Transmit-Receive Unit.
It include the address of each server in N number of server in a kind of optional embodiment, in domain name mapping response, with
And the corresponding weight of each server in N number of server, alternatively, weight is greater than the server of weight threshold in N number of server
Address, wherein for a server in N number of server, the weight of server is bigger, then the load-bearing capacity of server is got over
Greatly, alternatively, the address of server to be visited, wherein the corresponding weight of server to be visited is greater than weight threshold.
In a kind of optional embodiment, for a server in N number of server, the resource service condition of server
Including:Any one of disk size of the bandwidth of server, the CPU usage of server and server is appointed multinomial.
In a kind of optional embodiment, processing unit is corresponding specifically for receiving domain name to be visited by Transmit-Receive Unit
N number of server and N number of server in the corresponding weight of each server;The corresponding weight of each server is according to every
What the resource service condition of a server determined;Each server is corresponding in the N number of server and N number of server received
Weight is packaged according to preset format.
DNS query device provided by the embodiments of the present application based on HTTP DNS, which is specifically described, can refer to above-described embodiment and mentions
The DNS query method based on HTTP DNS supplied, repeats no more herein.
It should be noted that being schematical, only a kind of logic function to the division of unit in the embodiment of the present application
It divides, there may be another division manner in actual implementation.Each functional unit in the embodiment of the present application can integrate one
In a processing unit, it is also possible to each unit and physically exists alone, one can also be integrated in two or more units
In unit.Above-mentioned integrated unit both can take the form of hardware realization, can also be real in the form of software functional units
It is existing.
A kind of computer installation provided by the embodiments of the present application, the computer equipment may include memory, transceiver and
Processor.
Memory can be used for store instruction and data, and memory can include mainly store instruction area and storage data area, deposit
Storage data field can store incidence relation;It store instruction area can instruction needed for storage program area, at least one function etc.;Instruction
Processor can be made to execute following methods, specific method includes:Including:Receive the domain name that client is sent based on HTTPDNS agreement
Analysis request, wherein include domain name to be visited in domain name mapping request, obtains the corresponding N number of server of domain name to be visited, and
The resource service condition of each server in N number of server, according to the resource service condition of server each in N number of server,
Domain name resolution response is returned to client, wherein includes the corresponding server to be visited of domain name to be visited in domain name mapping response
Address, server to be visited be N number of server in server.
Processor is the control centre of computer equipment, utilizes each portion of various interfaces and connection whole mobile phone
Point, by running or executing the instruction being stored in memory and calling is stored in data in memory, execute computer
The various functions and processing data of equipment.Optionally, processor may include one or more processing units;Optionally, processor
Application processor and modem processor can be integrated, wherein the main processing operation system of application processor, user interface and answer
With program etc., modem processor mainly handles wireless communication.In some embodiments, processor and memory can be in lists
It is realized on one chip, in some embodiments, they can also realize respectively on independent chip.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
Now, it when being realized using software program, can entirely or partly realize in the form of a computer program product.Computer program
Product includes one or more instructions.When loading on computers and executing computer program instructions, entirely or partly generate
According to the process or function of the embodiment of the present application.Computer can be general purpose computer, special purpose computer, computer network or
Other programmable devices of person.Instruction can store in computer storage medium, or from a computer storage medium to another
One computer storage medium transmission, for example, instruction can be logical from a web-site, computer, server or data center
Wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode are crossed to another
One web-site, computer, server or data center are transmitted.Computer storage medium can be computer and can deposit
Any usable medium taken either includes that the data storages such as one or more usable mediums integrated server, data center are set
It is standby.Usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape, magneto-optic disk (MO) etc.), optical medium (for example, CD,
DVD, BD, HVD etc.) or semiconductor medium (such as ROM, EPROM, EEPROM, nonvolatile memory (NANDFLASH),
Solid state hard disk (Solid State Disk, SSD)) etc..
It should be understood by those skilled in the art that, the embodiment of the present application can provide as the production of method, system or computer program
Product.Therefore, in terms of the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and hardware
Embodiment form.Moreover, it wherein includes computer available programs generation that the embodiment of the present application, which can be used in one or more,
The meter implemented in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code
The form of calculation machine program product.
The embodiment of the present application is referring to according to the method, apparatus of the embodiment of the present application and the process of computer program product
Figure and/or block diagram describe.It should be understood that can by instruction implementation flow chart and/or block diagram each process and/or side
The combination of process and/or box in frame and flowchart and/or the block diagram.It can provide these to instruct to general purpose computer, specially
With the processor of computer, Embedded Processor or other programmable data processing devices to generate a machine, so that passing through
The instruction that computer or the processor of other programmable data processing devices execute generates for realizing in one process of flow chart
Or the device for the function of being specified in multiple processes and/or one or more blocks of the block diagram.
These instructions, which may also be stored in, is able to guide computer or other programmable data processing devices work in a specific way
Computer-readable memory in so that it is stored in the computer readable memory instruction generate include command device system
Product are made, which realizes in one or more flows of the flowchart and/or one or more blocks of the block diagram
Specified function.
These instructions also can be loaded onto a computer or other programmable data processing device so that computer or other
Series of operation steps are executed on programmable device to generate computer implemented processing, thus in computer or other are programmable
The instruction that executes in equipment is provided for realizing in one box of one or more flows of the flowchart and/or block diagram or more
The step of function of being specified in a box.
Obviously, those skilled in the art can carry out various modification and variations without departing from this Shen to the embodiment of the present application
Spirit and scope please.In this way, if these modifications and variations of the embodiment of the present application belong to the claim of this application and its wait
Within the scope of technology, then the application is also intended to include these modifications and variations.
Claims (12)
1. a kind of DNS query method based on HTTP DNS, which is characterized in that including:
The domain name mapping that client is sent based on HTTPDNS agreement is received to request, wherein include in domain name analysis request to
Access domain name;
The resource for obtaining each server in the corresponding N number of server of the domain name to be visited and N number of server uses
Situation;
According to the resource service condition of each server in N number of server, domain name resolution response is returned to the client,
It wherein, include the address of the corresponding server to be visited of the domain name to be visited in domain name resolution response, it is described to be visited
Server is the server in N number of server.
2. the method as described in claim 1, which is characterized in that described to obtain the corresponding N number of server of the domain name to be visited
In each server resource service condition, including:
Receive the resource service condition of each server in N number of server of server set pocket transmission;
The resource service condition according to each server in N number of server returns to domain name mapping to the client
Response, including:
According to the resource service condition and load-bearing capacity of each server in N number of server, determine in N number of server
The corresponding weight of each server;
According to the corresponding weight of server each in N number of server, domain name resolution response is returned to the client.
3. method according to claim 2, which is characterized in that include in domain name resolution response:
The corresponding weight of each server in the address of each server and N number of server in N number of server;
Or;
Weight is greater than the address of the server of weight threshold in N number of server;Wherein, in N number of server
One server, the weight of the server is bigger, then the load-bearing capacity of the server is bigger;
Or;
The address of the server to be visited, wherein the corresponding weight of the server to be visited is greater than the weight threshold.
4. method as claimed in claim 3, which is characterized in that for a server in N number of server, the clothes
Business device resource service condition include:The bandwidth of the server, the magnetic of the CPU usage of the server and the server
Any one of disk capacity is appointed multinomial.
5. the method as described in claim 1, which is characterized in that it is described to obtain the corresponding N number of server of the domain name to be visited,
And in N number of server each server resource service condition, including:
Receive the corresponding power of each server in the corresponding N number of server of the domain name to be visited and N number of server
Value;The corresponding weight of each server is determined according to the resource service condition of each server;
The corresponding weight of each server is according to presetting lattice in the N number of server received and N number of server
Formula is packaged.
6. a kind of DNS query device based on HTTP DNS, which is characterized in that including:
Transmit-Receive Unit, the domain name mapping request sent for receiving client based on HTTPDNS agreement, wherein domain name solution
It include domain name to be visited in analysis request;
Processing unit, for obtaining each clothes in the corresponding N number of server of the domain name to be visited and N number of server
The resource service condition of business device;It is single by the transmitting-receiving according to the resource service condition of each server in N number of server
Member returns to domain name resolution response to the client, wherein includes that the domain name to be visited is corresponding in domain name resolution response
Server to be visited address, the server to be visited be N number of server in server.
7. device as claimed in claim 6, which is characterized in that the processing unit is specifically used for:
Feelings are used by the resource that the Transmit-Receive Unit receives each server in N number of server of server set pocket transmission
Condition;
According to the resource service condition and load-bearing capacity of each server in N number of server, determine in N number of server
The corresponding weight of each server;
According to the corresponding weight of server each in N number of server, returned by the Transmit-Receive Unit to the client
Domain name mapping response.
8. device as claimed in claim 7, which is characterized in that include in domain name resolution response:
The corresponding weight of each server in the address of each server and N number of server in N number of server;
Or;
Weight is greater than the address of the server of weight threshold in N number of server;Wherein, in N number of server
One server, the weight of the server is bigger, then the load-bearing capacity of the server is bigger;
Or;
The address of the server to be visited, wherein the corresponding weight of the server to be visited is greater than the weight threshold.
9. device as claimed in claim 8, which is characterized in that for a server in N number of server, the clothes
Business device resource service condition include:The bandwidth of the server, the magnetic of the CPU usage of the server and the server
Any one of disk capacity is appointed multinomial.
10. device as claimed in claim 6, which is characterized in that the processing unit is specifically used for:
It is received by the Transmit-Receive Unit each in the corresponding N number of server of domain name to be visited and N number of server
The corresponding weight of server;The corresponding weight of each server is true according to the resource service condition of each server
Fixed;
The corresponding weight of each server is according to presetting lattice in the N number of server received and N number of server
Formula is packaged.
11. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with the executable finger of computer
It enables, the computer executable instructions make the computer execute such as any power of claim 1 to 5 when being called by computer
Benefit requires the method.
12. a kind of computer installation, which is characterized in that including:
Memory, for storing program instruction;
Processor, for calling the program instruction stored in the memory, according to acquisition program execute as claim 1 to
5 described in any item methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810571911.8A CN108881509A (en) | 2018-05-31 | 2018-05-31 | A kind of DNS query method and device based on HTTPDNS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810571911.8A CN108881509A (en) | 2018-05-31 | 2018-05-31 | A kind of DNS query method and device based on HTTPDNS |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108881509A true CN108881509A (en) | 2018-11-23 |
Family
ID=64336956
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810571911.8A Pending CN108881509A (en) | 2018-05-31 | 2018-05-31 | A kind of DNS query method and device based on HTTPDNS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108881509A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109618016A (en) * | 2018-12-10 | 2019-04-12 | 深圳市网心科技有限公司 | A kind of transmission processing method, correlation technique and the relevant apparatus of DNS request |
CN110099131A (en) * | 2019-05-17 | 2019-08-06 | 网宿科技股份有限公司 | A kind of domain name analytic method and device |
CN110401657A (en) * | 2019-07-24 | 2019-11-01 | 网宿科技股份有限公司 | A kind of processing method and processing device of access log |
CN111147625A (en) * | 2019-12-31 | 2020-05-12 | 奇安信科技集团股份有限公司 | Method, device and storage medium for acquiring local external network IP address |
CN112583863A (en) * | 2019-09-27 | 2021-03-30 | 贵州白山云科技股份有限公司 | HttpDNS scheduling method, device, medium and equipment |
CN113608877A (en) * | 2021-08-13 | 2021-11-05 | 牙木科技股份有限公司 | Load balancing scheduling method for IPV4 and IPV6 resource pools of content providers |
CN114095473A (en) * | 2020-07-31 | 2022-02-25 | 中国电信股份有限公司 | Network service processing method, device and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1946211A (en) * | 2006-09-28 | 2007-04-11 | 江苏天泽信息产业有限公司 | Communication method between mobile terminal of GPRS/CDMA communication mode and central system |
US20120096166A1 (en) * | 2010-10-15 | 2012-04-19 | Brocade Communications Systems, Inc. | Domain name system security extensions (dnssec) for global server load balancing |
CN104363313A (en) * | 2014-12-02 | 2015-02-18 | 网宿科技股份有限公司 | Method and system for guaranteeing resource utilization rate of website using content distribution network |
CN104954401A (en) * | 2014-03-27 | 2015-09-30 | 阿里巴巴集团控股有限公司 | Flow scheduling method and apparatus |
CN106878193A (en) * | 2017-02-10 | 2017-06-20 | 新华三技术有限公司 | A kind of load sharing method and device |
CN107645520A (en) * | 2016-07-21 | 2018-01-30 | 阿里巴巴集团控股有限公司 | A kind of load-balancing method, device and system |
-
2018
- 2018-05-31 CN CN201810571911.8A patent/CN108881509A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1946211A (en) * | 2006-09-28 | 2007-04-11 | 江苏天泽信息产业有限公司 | Communication method between mobile terminal of GPRS/CDMA communication mode and central system |
US20120096166A1 (en) * | 2010-10-15 | 2012-04-19 | Brocade Communications Systems, Inc. | Domain name system security extensions (dnssec) for global server load balancing |
CN104954401A (en) * | 2014-03-27 | 2015-09-30 | 阿里巴巴集团控股有限公司 | Flow scheduling method and apparatus |
CN104363313A (en) * | 2014-12-02 | 2015-02-18 | 网宿科技股份有限公司 | Method and system for guaranteeing resource utilization rate of website using content distribution network |
CN107645520A (en) * | 2016-07-21 | 2018-01-30 | 阿里巴巴集团控股有限公司 | A kind of load-balancing method, device and system |
CN106878193A (en) * | 2017-02-10 | 2017-06-20 | 新华三技术有限公司 | A kind of load sharing method and device |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109618016A (en) * | 2018-12-10 | 2019-04-12 | 深圳市网心科技有限公司 | A kind of transmission processing method, correlation technique and the relevant apparatus of DNS request |
CN109618016B (en) * | 2018-12-10 | 2022-02-22 | 深圳市网心科技有限公司 | DNS request sending and processing method, related method and related device |
CN110099131A (en) * | 2019-05-17 | 2019-08-06 | 网宿科技股份有限公司 | A kind of domain name analytic method and device |
US11272029B2 (en) | 2019-07-24 | 2022-03-08 | Wangsu Science & Technology Co., Ltd. | Access log processing method and device |
CN110401657A (en) * | 2019-07-24 | 2019-11-01 | 网宿科技股份有限公司 | A kind of processing method and processing device of access log |
CN110401657B (en) * | 2019-07-24 | 2020-09-25 | 网宿科技股份有限公司 | Processing method and device for access log |
CN112583863A (en) * | 2019-09-27 | 2021-03-30 | 贵州白山云科技股份有限公司 | HttpDNS scheduling method, device, medium and equipment |
US11902352B2 (en) | 2019-09-27 | 2024-02-13 | Guizhou Baishancloud Technology Co., Ltd. | HttpDNS scheduling method, apparatus, medium and device |
CN112583863B (en) * | 2019-09-27 | 2022-08-16 | 贵州白山云科技股份有限公司 | HttpDNS scheduling method, device, medium and equipment |
CN111147625A (en) * | 2019-12-31 | 2020-05-12 | 奇安信科技集团股份有限公司 | Method, device and storage medium for acquiring local external network IP address |
CN114095473A (en) * | 2020-07-31 | 2022-02-25 | 中国电信股份有限公司 | Network service processing method, device and system |
CN113608877B (en) * | 2021-08-13 | 2023-11-10 | 牙木科技股份有限公司 | Load balancing scheduling method for IPV4 and IPV6 resource pools of content providers |
CN113608877A (en) * | 2021-08-13 | 2021-11-05 | 牙木科技股份有限公司 | Load balancing scheduling method for IPV4 and IPV6 resource pools of content providers |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108881509A (en) | A kind of DNS query method and device based on HTTPDNS | |
Yang et al. | Catalyzing cloud-fog interoperation in 5G wireless networks: An SDN approach | |
CN104850450B (en) | A kind of load-balancing method and system towards mixed cloud application | |
US20220066901A1 (en) | System and method for low latency edge computing | |
US20180367997A1 (en) | 5g dynamic slice and network identity instantiation, termination, and access management system and method | |
CN110266744A (en) | Location-based edge cloud resource dispatching method and system | |
CN102281190B (en) | Networking method for load balancing apparatus, server and client access method | |
CN104699736B (en) | A kind of distributed larger scale data acquisition system and method based on movable equipment | |
CN105634992A (en) | CDN platform self-adaptive bandwidth control method and system | |
CN104521276B (en) | Adaptive non-real-time service control method and its terminal | |
US10868773B2 (en) | Distributed multi-tenant network real-time model for cloud based enterprise resource planning solutions | |
CN110463140A (en) | The network Service Level Agreement of computer data center | |
CN108174397A (en) | A kind of multiple gateway Synergistic method of task-driven | |
CN104038525B (en) | The load-balancing method and device of server system | |
US20140189092A1 (en) | System and Method for Intelligent Data Center Positioning Mechanism in Cloud Computing | |
CN109756912A (en) | A kind of multiple base stations united task unloading of multi-user and resource allocation methods | |
US20130054735A1 (en) | Wake-up server | |
US11477644B2 (en) | Network application programming interface guided service placement | |
Khan et al. | A cache‐based approach toward improved scheduling in fog computing | |
Malazi et al. | Distributed service placement and workload orchestration in a multi-access edge computing environment | |
CN106210120B (en) | A kind of recommended method and its device of server | |
EP4068092A1 (en) | Managing computer workloads across distributed computing clusters | |
US20190108060A1 (en) | Mobile resource scheduler | |
US20220174485A1 (en) | Network application programming interface service for application guidance and control | |
US11290917B2 (en) | Apparatuses and methods for estimating throughput in accordance with quality of service prioritization and carrier aggregation to facilitate network resource dimensioning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181123 |