CN103685609A - Method and device for collecting routing configuration information in domain name resolution - Google Patents

Method and device for collecting routing configuration information in domain name resolution Download PDF

Info

Publication number
CN103685609A
CN103685609A CN201310728306.4A CN201310728306A CN103685609A CN 103685609 A CN103685609 A CN 103685609A CN 201310728306 A CN201310728306 A CN 201310728306A CN 103685609 A CN103685609 A CN 103685609A
Authority
CN
China
Prior art keywords
domain name
address
analysis request
web server
name analysis
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
CN201310728306.4A
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.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310728306.4A priority Critical patent/CN103685609A/en
Publication of CN103685609A publication Critical patent/CN103685609A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for collecting routing configuration information in domain name resolution, a method and a device for generating a routing configuration file, a method and a device for scheduling in the domain name resolution, and a scheduling system in the domain name resolution. The method for collecting routing configuration information in the domain name resolution comprises the following steps: receiving a domain name resolution request sent by a client, and determining a routing strategy for responding the domain name resolution request used in the domain name resolution to generate a configurable data interface corresponding to the routing strategy according to the routing strategy for responding the domain name resolution request; obtaining the IP (Internet Protocol) address of a WEB server capable of responding the domain name resolution request, and collecting routing configuration information of the IP address of the WEB server capable of responding the domain name resolution through the configurable data interface. According to the method and the device, the routing configuration information of the IP address of the WEB server capable of responding the domain name resolution can be collected. When a routing configuration file in a front-end management system needs to be updated, the routing configuration information can be automatically generated according to the collected routing configuration information.

Description

Routing configuration information acquisition method and device in domain name mapping
Technical field
The application relates to domain name mapping technical field, be specifically related to dispatching method and device in the generation method of routing configuration information acquisition method and device in a kind of domain name mapping, routing configuration file and device, domain name mapping, and the dispatching patcher in domain name mapping.
Background technology
Along with the continuous expansion of internet scale, the pressure of server carrying also constantly increases, also more and more higher to the quality requirement of service.On network operation, optimal situation is, uses server cheaply, carries larger pressure, and 7x24 hour continual service.
To achieve these goals, conventionally adopt without scheduler and two kinds of technical schemes that have scheduler.For the technical scheme without scheduler, when user submits to local name server by domain name mapping request, it can be submitted to because can not directly resolving the top-level domain server that makes progress, upper level name server is upwards submitted to more successively, until domain name resolution server (DOMAIN NAME SYSTEM is called for short DNS) is the IP address of this domain name mapping to one WEB server.After being parsed, between from user to dns server, there are many name servers, they all can cushion the domain name of having resolved to the mapping of IP address, and this can cause all users under this name server group all can access same station server, occurs the load imbalance between different server.
In addition, due to the existence of buffering, and the uncertainty of request, even if be provided with life cycle (TIMETO LIVE, TTL), load still can be unbalanced, availability is also very poor.If certain actual WEB server is delayed, machine or its server program are hung, the user that all access IP are mapped to this WEB server all can be within a period of time cannot access services device, any service disruption all can arrive by user awareness at once.
Moreover, when there is no scheduler, can only give every real server server of backup separately, but cost can be higher.
As the improvement to without scheduling scheme, the schemes that have scheduler that adopt in prior art more.For the technical scheme that has scheduler, specifically there are two kinds of modes, a kind of is to dispose cluster, and it is a complete system that cluster has scheduler, server, memory function, and wherein, scheduler is the entrance of cluster, plays the effect of load balancing or content scheduling.Another is the function that adds cluster in server program, has added the function of cluster in server when disposing, and still needs scheduler, makes can communicate by letter between server node, realizes content-based scheduling.
The situation of above-mentioned scheduler, IP corresponding to domain name can be resolved to scheduler, and scheduler can regularly be surveyed the ruuning situation of actual WEB server, once there is the machine of delaying, scheduler can detect very soon.Then domain name mapping request is forwarded to other WEB servers and processes, guarantee that user's request is unaffected.Only, in the situation that real server is all delayed machine, just can cannot respond user's request.
Above-mentioned scheduler is before forwarding domain name mapping request, need first on scheduler, to configure the strategy of scheduling, other WEB servers that the domain name mapping request that definition forwards is pointed to, only configure forwarding strategy, domain name mapping request could successfully be forwarded, and the domain name access request of client could be by successful respond.
But in prior art, if the strategy of configuration schedules needs manually to arrange in the database of scheduler, setting up procedure is loaded down with trivial details, easily occurs operate miss etc., and can not accomplish to upgrade in time.
Summary of the invention
The application's technical problem to be solved is to provide dispatching method and the device in the generation method of routing configuration information acquisition method and device in a kind of domain name mapping, routing configuration file and device, domain name mapping, and the dispatching patcher in domain name mapping.
In order to address the above problem, the application has disclosed routing configuration information acquisition method in a kind of domain name mapping, comprise: receive the domain name mapping request that client is sent, and the routing policy of the response domain name analysis request of using in definite domain name mapping, routing policy according to response domain name analysis request, generates the configurable data interface that described routing policy is corresponding; Obtain the WEB server ip address that can respond domain name analysis request, and by described configurable data interface, collection can respond the routing configuration information of the WEB server ip address of domain name analysis request.
Further, the routing policy of determining the response domain name analysis request of using in domain name mapping comprises: according to the client ip address carrying in domain name analysis request, in conjunction with the corresponding relation of WEB server ip address in the addressable network node of each client ip address in preset different clients IP address and different clients IP address, determine the routing policy of the response domain name analysis request of using in domain name mapping.
Further, the routing policy of determining the response domain name analysis request of using in domain name mapping comprises: according to the client ip address carrying in domain name analysis request, determine client ip address section, according to described client ip address section, in conjunction with the corresponding relation of WEB server ip address in the addressable network node of each client ip address in preset different clients IP address field and different clients IP address field, determine the routing policy of the response domain name analysis request of using in domain name mapping.
Further, the routing policy of determining the response domain name analysis request of using in domain name mapping comprises: according to the client ip address carrying in domain name analysis request, according to domain name analysis request, determine the business tine of asking, in conjunction with the corresponding relation of the WEB server in preset different business content and the addressable network node of described client ip address, determine the routing policy of the response domain name analysis request of using in domain name mapping.
Further, the routing policy of determining the response domain name analysis request of using in domain name mapping comprises: the network operator information of determining described client ip address ownership according to the client ip address carrying in domain name analysis request, according to described network operator information, obtain the WEB server ip address in the addressable network node of described client ip address, determine the routing policy of the response domain name analysis request of using in domain name mapping.
Further, the routing policy of determining the response domain name analysis request of using in domain name mapping comprises: the ownership place of determining described client ip address according to the client ip address carrying in domain name analysis request, according to the WEB server ip address in all nodes of described ownership place, obtain WEB server ip address in the addressable network node of described client ip address, determine the routing policy of the response domain name analysis request of using in domain name mapping.
Further, the routing policy of determining the response domain name analysis request of using in domain name mapping comprises: statistics can respond the load capacity of WEB server and the time cycle of response domain name analysis request of domain name analysis request; According to the time cycle of the load capacity of the WEB server of statistics and response domain name analysis request, determine the routing policy of the response domain name analysis request of using in domain name mapping.
In order to address the above problem, the application has also disclosed the generation method of the routing configuration file in a kind of domain name mapping, comprise: when judgement need to be upgraded current routing configuration file, reception can respond the routing configuration information of the WEB server ip address of domain name analysis request; According to the routing configuration information of the WEB server ip address of domain name analysis request, generate the routing configuration file of corresponding domain name analysis request.
In order to address the above problem, the application has also disclosed the dispatching method in a kind of domain name mapping, comprising: the routing configuration file that obtains the domain name mapping request of sending for client of loading; Routing configuration file to the domain name mapping request of sending for client is resolved, and obtains the routing policy of response domain name analysis request; According to the routing policy of response domain name analysis request, determine that the WEB server ip address that can respond domain name analysis request is for scheduling.
In order to address the above problem, the application has also disclosed the harvester of routing configuration information in a kind of domain name mapping, comprise: dispensing unit, for receiving the domain name mapping request that client is sent, and the routing policy of the response domain name analysis request of using in definite domain name mapping, routing policy according to response domain name analysis request, generates the configurable data interface that described routing policy is corresponding; IP address acquisition unit, for obtaining the WEB server ip address that can respond domain name analysis request; Collecting unit, for passing through described configurable data interface, collection can respond the routing configuration information of the WEB server ip address of domain name analysis request.
In order to address the above problem, the application has also disclosed the generating apparatus of the routing configuration file in a kind of domain name mapping, comprise: receiving element, for when judgement need to be upgraded current routing configuration file, reception can respond the routing configuration information of the WEB server ip address of domain name analysis request; Configuration file generation unit, for generating the routing configuration file of corresponding domain name analysis request according to the routing configuration information of the WEB server ip address of domain name analysis request.
In order to address the above problem, the application has also disclosed the dispatching device in a kind of domain name mapping, comprising: acquiring unit, for obtaining the routing configuration file of the domain name mapping request of sending for client of loading; Resolution unit, resolves for the routing configuration file of the domain name mapping request to sending for client, obtains the routing policy of response domain name analysis request; Scheduling unit, for according to the routing policy of response domain name analysis request, determines that the WEB server ip address that can respond domain name analysis request is for scheduling.
In order to address the above problem, the application has also disclosed the dispatching patcher in a kind of domain name mapping, comprise: the harvester of routing configuration information, the generating apparatus of routing configuration file, and dispatching device, the harvester of described routing configuration information and the generating apparatus of described routing configuration file couple, and the generating apparatus of described routing configuration file and described dispatching device couple; Wherein: the harvester of described routing configuration information is for gathering the routing configuration information of the WEB server ip address that can respond domain name analysis request; The generating apparatus of described routing configuration file is for generating the routing configuration file of corresponding domain name analysis request according to the routing configuration information of the WEB server ip address of domain name analysis request; Described dispatching device is for responding the routing policy of domain name analysis request, and definite WEB server ip address that can respond domain name analysis request is for scheduling.
Compared with prior art, the application can obtain and comprise following technique effect:
In background management system, according to the routing policy of response domain name analysis request, generate corresponding configurable data interface, by this configurable data-interface, can gather the routing configuration information of the WEB server ip address that can respond domain name analysis request.When needs upgrade in front end management system routing configuration file, can automatically generate routing configuration information according to the routing configuration information gathering, be recorded on the database of scheduler in batches, thereby the process that the database of having avoided manually going revising scheduler causes is loaded down with trivial details, easily go out the defects such as operate miss, is convenient to upgrade in time.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide further understanding of the present application, forms the application's a part, and the application's schematic description and description is used for explaining the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 is the acquisition method flow chart of the embodiment of the present invention one routing configuration information.
Fig. 2 is the acquisition method flow chart of the embodiment of the present invention two routing configuration information.
Fig. 3 is the acquisition method flow chart of the embodiment of the present invention three routing configuration information.
Fig. 4 is the acquisition method flow chart of the embodiment of the present invention four routing configuration information.
Fig. 5 is the acquisition method flow chart of the embodiment of the present invention five routing configuration information.
Fig. 6 is the acquisition method flow chart of the embodiment of the present invention six routing configuration information.
Fig. 7 is the generation method flow diagram of the embodiment of the present invention seven routing configuration files.
Fig. 8 is the embodiment of the present invention eight dispatching method flow charts.
Fig. 9 is the embodiment of the present invention nine harvester structural representations.
Figure 10 is the generating apparatus structural representation of the embodiment of the present invention ten configuration files.
Figure 11 is the dispatching device structural representation of the embodiment of the present invention 11 configuration files.
Figure 12 is the dispatching patcher structural representation in 12 kinds of domain name mappings of the embodiment of the present invention.
Embodiment
To coordinate drawings and Examples to describe the application's execution mode in detail below, by this application's implementation procedure how application technology means solve technical problem and reach technology effect can be fully understood and be implemented according to this.
As used some vocabulary in the middle of specification and claim, censure specific components.Those skilled in the art should understand, and hardware manufacturer may be called same assembly with different nouns.This specification and claims are not used as distinguishing the mode of assembly with the difference of title, but the difference in function is used as the criterion of distinguishing with assembly.If " comprising " mentioned in the middle of specification and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in receivable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.In addition, " couple " word and comprise directly any and electric property coupling means indirectly at this.Therefore, if describe a first device in literary composition, be coupled to one second device, represent that described first device can directly be electrically coupled to described the second device, or be indirectly electrically coupled to described the second device by other devices or the means that couple.Specification subsequent descriptions is for implementing the application's better embodiment, and right described description is to illustrate that the application's rule is object, not in order to limit the application's scope.The application's protection range is when being as the criterion depending on the claims person of defining.
embodiment mono-
As shown in Figure 1, be the acquisition method flow chart of the embodiment of the present invention one routing configuration information, it can comprise:
The domain name mapping request that step S100, reception client are sent, and the routing policy of the response domain name analysis request of using in definite domain name mapping, routing policy according to response domain name analysis request, generates the configurable data interface that described routing policy is corresponding;
On Internet, between domain name and WEB server ip address, be one to one.Domain name can a corresponding WEB server ip address, and WEB server ip address can corresponding a plurality of domain names, so a plurality of domain name can be resolved to a WEB server ip address simultaneously.Therefore, while responding a certain concrete domain name mapping request, its essence process is exactly to determine to a certain domain name mapping request, to provide the WEB server of service content, and this process is actually the process of a selection.As previously mentioned, due to the unpredictability of domain name access, certain some WEB server within a certain period of time accessed quantity may be very large, and the accessed quantity of some WEB server may be very little.Therefore, so-called " scheduling " is exactly the How to choose WEB server that goes out a best provides service content to the client of initiation domain name mapping request.
Therefore, in the present embodiment, formulated different routing policies, the WEB server of selecting a best to realize provides service content to the client of initiating domain name mapping request.This routing policy can the IP-based IP route of user route, the core of core based on user, the business route of core based on business tine, and the relevant concrete routing policy of this three part refers to following embodiment, does not repeat them here.
Due to different routing policies based on core different, if user's route is based on user, IP route is based on client ip address, and business route can distributing contents based on server, the routing configuration information that different routing policies are corresponding also can be different.Therefore, in the present embodiment, for different routing policies, provide different configurable data interfaces, for forming each configuration data of typing routing configuration information.Such as, life cycle of the Virtual network operator of client ip address ownership, the physics ownership place (comprising country origin, province, city, county etc.) of client ip address, bandwidth threshold, contents distribution formal definition, response analysis request (TIME TO LIVE is called for short TTL) etc.
It should be noted that, in conjunction with concrete application scenarios, the routing policy of appointment is not limited to above-mentioned three kinds that in the present embodiment, list.Those of ordinary skills are according to the inspiration of the embodiment of the present application, need not creative works, also can expect the alternative that other are equal to, and do not repeat them here.
Need explanation time, for different routing policies, configurable data are not limited to list in the present embodiment above-mentioned, those of ordinary skills are according to the inspiration of the embodiment of the present application, need not creative work, also can expect the alternative that other are equal to, do not repeat them here.
Step S102, obtain the WEB server ip address that can respond domain name analysis request, and by described configurable data interface, collection can respond the routing configuration information of the WEB server ip address of domain name analysis request.
In the present embodiment, due to according to different routing policies, determined the routing configuration information of different routing policies, and different configurable data interfaces is provided accordingly.By this configurable data interface, both can gather easily the routing configuration information of the WEB server ip address that can respond domain name analysis request.
In a certain concrete application scenarios, after being finished at said method, from trend user, provide a content typing page, each in this content route page can be inputted option, corresponding above-mentioned configurable data interface, needs only and input corresponding content in each can input option respectively, and the content of this input both can collect by configurable data interface, thereby complete the collection of routing configuration information, define the WEB server ip address that domain name mapping request that client sends is pointed to.
In the present embodiment, in background management system, according to the routing policy of response domain name analysis request, generate corresponding configurable data interface, by this configurable data-interface, can gather the routing configuration information of the WEB server ip address that can respond domain name analysis request.When needs upgrade in front end management system routing configuration file, can automatically generate routing configuration information according to the routing configuration information gathering, be recorded on the database of scheduler in batches, thereby the process that the database of having avoided manually going revising scheduler causes is loaded down with trivial details, easily go out the defects such as operate miss, is convenient to upgrade in time.
embodiment bis-
As shown in Figure 2, be the acquisition method flow chart of the embodiment of the present invention two routing configuration information, it can comprise:
Step S200, according to the client ip address carrying in domain name analysis request, in conjunction with the corresponding relation of WEB server ip address in the addressable network node of each client ip address in preset different clients IP address and different clients IP address, determine the routing policy of the response domain name analysis request of using in domain name mapping;
Because user accesses internet, can select different Virtual network operators, and the standard of the access internet that different Virtual network operators provides there are differences.Such as, the Virtual network operator in China's Mainland has China Telecom, China Mobile, China Railway Telecom, CHINAUNICOM etc. at present.Therefore,, in the present embodiment, when determining routing policy, the Virtual network operator that accesses internet selection based on terminal use carries out.In routing policy, the addressable different WEB server of client ip address of regulation heterogeneous networks operator.
Step S202, according to the routing policy of response domain name analysis request, generate the configurable data interface that described routing policy is corresponding;
In the present embodiment, owing to being routing policy based on user, therefore, to providing a plurality of configuration data interfaces by routing policy, such as the input interface of network operator information is, interface of Virtual network operator physics ownership place etc., can realize routing configuration, a domain name mapping request is directed to the data-interface of a certain concrete WEB server etc., repeat no more in detail.And on backstage, do not configure in order to realize the data-interface of collection, generation, load configuration information in prior art.
Step S204, obtain the WEB server ip address that can respond domain name analysis request, and by described configurable data interface, collection can respond the routing configuration information of the WEB server ip address of domain name analysis request.
In the present embodiment, the WEB server that can respond the domain name mapping request that a certain client sends may exist a plurality of, also with regard to correspondence, has a plurality of WEB server ip address.As previously mentioned, the reasons such as randomness due to access to netwoks, although different WEB servers can respond the domain name mapping request that a certain client is sent, but, during its domain name mapping request TTL sending in a certain client, accessed number of times is too much, that is to say that load capacity is very large, cannot make in time the response of domain name mapping request, to the client of initiating domain name mapping request, provide service.Therefore, in the present embodiment, be actually and carried out a screening process, therefrom filtering those during the TTL of domain name mapping request, the WEB server of service content cannot be provided, only retain the WEB server that also has Resource Supply service content.
By configurable data interface defined above, gather routing configuration information, domain name mapping request is directed to corresponding WEB server address.
embodiment tri-
As shown in Figure 3, be the acquisition method flow chart of the embodiment of the present invention three routing configuration information, it can comprise:
Step S300, according to the client ip address carrying in domain name analysis request, determine client ip address section, in conjunction with the corresponding relation of WEB server ip address in the addressable network node of each client ip address in preset different clients IP address field and client ip address section, determine the routing policy of the response domain name analysis request of using in domain name mapping;
Different from above-described embodiment two, in the present embodiment, the corresponding relation of core based on client ip address section and WEB server ip address, determines routing policy.Such as regulation is in the addressable WEB server of client of some IP address field contents, the different WEB server of client-access of different IP addresses section.Such as, define all addressable certain several WEB servers being positioned on a certain network node of clients all in some county towns, by IP address, judge, so long as initiate domain name mapping request from the client in this county town, all to the WEB server leading on this network node.Certainly, owing to there being a plurality of WEB servers that can the request of response field name analysis on this node, therefore, also can customize with reference to the user's routing policy in the above embodiment of the present invention one a concrete route and join strategy, if such as monitoring client ip address ownership Chinese telecommunications network operator, domain name mapping request corresponding to these client ip address is directed to a certain WEB server, if belong to China Mobile network operator and monitor other client ip address, the domain name mapping request of these client ip address being initiated is directed on another WEB server.
Step S302, according to the routing policy of response domain name analysis request, generate the configurable data interface that described routing policy is corresponding;
As previously shown, in the present embodiment, when formulating routing policy, based on client ip address section, i.e. IP routing policy.Therefore, when configuration data interface, generate the configurable data interface of a series of corresponding IP routing policies, such as the network operator information of IP address field defining interface, client ip address ownership, up (descending) flow restriction, up (descending) limit bandwidth etc.
Step S304, obtain the WEB server ip address that can respond domain name analysis request;
Step S306, by described configurable data interface, collection can respond the routing configuration information of the WEB server ip address of domain name analysis request.
With similar in embodiment bis-, in the present embodiment, be actually and carried out a screening process, from responding all WEB servers of a certain domain name mapping device request, filtering those during the TTL of domain name mapping request, the WEB server of service content cannot be provided, only retain the WEB server that also has Resource Supply service content, and obtain these WEB server ip address, to set up the routing configuration of client ip address access WEB server ip address.
embodiment tetra-
As shown in Figure 4, be the acquisition method flow chart of the embodiment of the present invention four routing configuration information, it can comprise:
Step S400, according to the client ip address carrying in domain name analysis request, according to domain name analysis request, determine the business tine of asking, in conjunction with the corresponding relation of the WEB server in preset different business content and the addressable network node of described client ip address, determine the routing policy of the response domain name analysis request of using in domain name mapping;
Different from above-described embodiment two and three, in the present embodiment, be that the business tine based on the distribution of WEB server is carried out determining of routing policy.
For name space, the business tine numerous and complicated that it provides, varied, such as there being advertising business etc., and for different business, configure different WEB servers.Therefore, the domain name mapping request of initiating for client for business tine, select different WEB servers, with this domain name mapping request of success response.
Step S402, according to the routing policy of response domain name analysis request, generate the configurable data interface that described routing policy is corresponding;
In the present embodiment, due to based on business tine, therefore, when generating configurable data interface, mainly the routing policy based on business tine defines, such as, net operation business that the classification of business tine, business tine provide etc.
Step S404, obtain the WEB server ip address that can respond domain name analysis request;
Step S406, by described configurable data interface, collection can respond the routing configuration information of the WEB server ip address of domain name analysis request.
Similar with embodiment, in the present embodiment, be actually and carried out a screening process, from responding all WEB servers of a certain domain name mapping device request, filtering those during the TTL of domain name mapping request, the WEB server of service content cannot be provided, only retain the WEB server that also has Resource Supply service content, and obtain these WEB server ip address, to set up the routing configuration of client ip address access WEB server ip address.
embodiment five
As shown in Figure 5, be the acquisition method flow chart of the embodiment of the present invention five routing configuration information, it can comprise:
Step S500, according to domain name analysis request, determine the business tine ask, corresponding relation in conjunction with WEB server in preset different business content and the addressable network node of client ip address, and the network operator information of described client ip address ownership, obtain the WEB server ip address in the addressable network node of client ip address;
Different from above-described embodiment is, in the present embodiment, acquisition can provide after the different WEB servers of different business content, these WEB servers have been carried out to further segmentation, determining those WEB servers is to provide service content to client corresponding to that Virtual network operator, i.e. the client of different WEB server response heterogeneous networks operators.
Step S502, according to the network operator information of described client ip address ownership and the WEB server ip address in the addressable network node of client ip address, determine the routing policy of the response domain name analysis request of using in domain name mapping;
In the present embodiment, when formulating routing policy, the while is with reference to the Virtual network operator of business tine and client ip address ownership, thereby further route optimization strategy improves the response efficiency of domain name mapping request.
Step S504, according to the routing policy of response domain name analysis request, generate the configurable data interface that described routing policy is corresponding;
In the present embodiment, in the present embodiment, due to based on business tine and Virtual network operator, therefore, when generating configurable data interface, mainly based on business tine, Virtual network operator routing policy, define, such as, the net operation business information that the classification of business tine, business tine provide, network operator information of client ip address etc.
Step S506, obtain the WEB server ip address that can respond domain name analysis request;
Step S508, by described configurable data interface, collection can respond the routing configuration information of the WEB server ip address of domain name analysis request.
Similar with embodiment, in the present embodiment, step S506, step S508 are actually and have carried out a screening process, from responding all WEB servers of a certain domain name mapping device request, filtering those during the TTL of domain name mapping request, the WEB server of service content cannot be provided, only retain the WEB server that also has Resource Supply service content, and obtain these WEB server ip address, to set up the routing configuration of client ip address access WEB server ip address.
embodiment six
As shown in Figure 6, be the acquisition method flow chart of the embodiment of the present invention six routing configuration information, it can comprise:
Step S600, according to domain name analysis request, determine the business tine ask, corresponding relation in conjunction with WEB server in preset different business content and the addressable network node of client ip address, and the network operator information of described client ip address ownership, obtain the WEB server ip address in the addressable network node of client ip address;
Step S602, statistics can respond the load capacity of WEB server and the time cycle of response domain name analysis request of domain name analysis request;
Step S604, according to the time cycle of the load capacity of the WEB server ip address in described network operator information, addressable network node, WEB server and the request of response field name analysis, determine the routing policy of the response domain name analysis request of using in domain name mapping;
In the present embodiment, introduced the load capacity of WEB server and the time cycle of domain name mapping request and carried out the definition of routing policy.Contrastively, in the embodiment shown in above-mentioned Fig. 1-Fig. 5, can ignore this concept of load capacity, so long as can the request of response field name analysis, just according to the request initiation time, the time-sequencing that carries out to the domain name mapping request of different clients, forms a request queue, waits WEB server, once find that corresponding WEB server can the request of response field name analysis, from request queue according to time order and function, read one by one, be directed to corresponding WEB server.
And for the length of time cycle of domain name mapping request, the request queue of carrying out time-sequencing stroke according to domain name mapping request is optimized, the time cycle of preferential answering domain name mapping request is short.
Step S606, according to the routing policy of response domain name analysis request, generate the configurable data interface that described routing policy is corresponding;
In the present embodiment, configurable data interface correspondence is stated WEB server ip address, the load capacity of WEB server and time cycle of response field name analysis request in network operator information, addressable network node etc., also can increase the data-interfaces such as physics ownership place, network operator information, bandwidth limit, flow limit value, repeat no more in detail.
Step S608, by described configurable data interface, collection can respond the routing configuration information of the WEB server ip address of domain name analysis request.
In the present embodiment, different from above-described embodiment, in fact with reference to the load capacity of WEB server, the time cycle of domain name mapping request WEB server is screened.
In above-described embodiment one to six, the routing policy of determining the response domain name analysis request of using in domain name mapping can also comprise: the ownership place of determining described client ip address according to the client ip address carrying in domain name analysis request, according to the WEB server ip address in all nodes of described ownership place, obtain WEB server ip address in the addressable network node of described client ip address, determine the routing policy of the response domain name analysis request of using in domain name mapping.
In above-described embodiment one to six, all steps can be arranged in background management system to be carried out, that is to say, as long as background management system can complete the collection of routing configuration information, and without generating corresponding configuration file.
embodiment seven
As shown in Figure 7, be the generation method flow diagram of the embodiment of the present invention seven routing configuration files, it can comprise:
When step S700, judgement need to be upgraded current routing configuration file, reception can respond the routing configuration information of the WEB server ip address of domain name analysis request;
In the present embodiment, the execution of this generation method can be arranged in front end management system, as long as current routing policy has not met domain name mapping request, such as existing WEB server to delay, machine or WEB server working procedure interrupt, some WEB server load amount surpasses the predetermined situations such as threshold value, can judge and need to upgrade current routing configuration file.
Step S702, according to the routing configuration information of the WEB server ip address of domain name analysis request, generate the routing configuration file of corresponding domain name analysis request.
When needs Reconfigurations file, in front end management system, trigger the generation of configuration file, can generate routing configuration file according to gathering routing configuration information, send to scheduler and load.
embodiment eight
As shown in Figure 8, be the embodiment of the present invention eight dispatching method flow charts, it can comprise:
Step S800, obtain the routing configuration file of the domain name mapping request of sending for client of loading;
Step S802, the routing configuration file of the domain name mapping request of sending for client is resolved, obtain the routing policy of response domain name analysis request;
In the present embodiment, owing to having loaded according to routing configuration information generating configuration file, as long as this configuration file is resolved automatically, therefrom parse corresponding routing policy, can determine the real-time domain name mapping request that how to respond.As long as receive the domain name mapping request that comes from client ip address, just according to set routing policy, domain name mapping request is directed to corresponding WEB server ip address.
Step S804, according to the routing policy of response domain name analysis request, determine that the WEB server ip address that can respond domain name analysis request is for scheduling.
It should be noted that, when the above-mentioned routing policy of concrete execution, can adopt following several dispatching algorithm:
If the handling property of all WEB servers is all identical, ignore the current load capacity of server, can adopt wheel to cry scheduling (Round Robin Scheduling is called for short RRS), to take turns the mode of crying, successively domain name mapping request scheduling be arrived to different WEB servers.In addition, also can be optimized, stipulate server weights, when the weights of WEB server are zero, represent the unavailable non-scheduling of this WEB server, thereby this WEB server is cut out to service.
If the performance of server differs, can utilize weighted round robin dispatching algorithm, give the different different weights of not WEB server-assignment, represent its handling property, the mode according to weights height, is assigned to corresponding WEB server by domain name mapping request.
Also can dispatch by the number of connection of server, by the current active load capacity of WEB server, estimate the ruuning situation of WEB server.
embodiment nine
As shown in Figure 9, be the embodiment of the present invention nine harvester structural representations, it can comprise: dispensing unit 900, IP address acquisition unit 902, collecting unit 904, wherein:
The domain name mapping request that dispensing unit 900 is sent for receiving client, and the routing policy of the response domain name analysis request of using in definite domain name mapping, routing policy according to response domain name analysis request, generates the configurable data interface that described routing policy is corresponding;
IP address acquisition unit 902 is for obtaining the WEB server ip address that can respond domain name analysis request;
Collecting unit 904 is for passing through described configurable data interface, and collection can respond the routing configuration information of the WEB server ip address of domain name analysis request.
embodiment ten
As shown in figure 10, be the generating apparatus structural representation of the embodiment of the present invention ten configuration files, it can comprise: receiving element 1000, configuration file generation unit 1002, wherein:
Receiving element 1000 is for when judgement need to be upgraded current routing configuration file, and reception can respond the routing configuration information of the WEB server ip address of domain name analysis request;
Configuration file generation unit 1002 is for generating the routing configuration file of corresponding domain name analysis request according to the routing configuration information of the WEB server ip address of domain name analysis request.
embodiment 11
As shown in figure 11, be the dispatching device structural representation of the embodiment of the present invention 11 configuration files, it can comprise: acquiring unit 1100, resolution unit 1102, scheduling unit 1104
Acquiring unit 1100 is for obtaining the routing configuration file of the domain name mapping request of sending for client of loading;
Resolution unit 1102 is resolved for the routing configuration file of the domain name mapping request to sending for client, obtains the routing policy of response domain name analysis request;
Scheduling unit 1104, for according to the routing policy of response domain name analysis request, determines that the WEB server ip address that can respond domain name analysis request is for scheduling.
embodiment 12
As shown in figure 12, be the dispatching patcher structural representation in 12 kinds of domain name mappings of the embodiment of the present invention, it can comprise: the harvester 1200 of routing configuration information, the generating apparatus 1202 of routing configuration file, and dispatching device 1204.
The harvester 1200 of routing configuration information couples with the generating apparatus 1202 of routing configuration file, and generating apparatus 1202 and the dispatching device 1204 of routing configuration file couple.
The harvester 1200 of described routing configuration information is for gathering the routing configuration information of the WEB server ip address that can respond domain name analysis request.
The generating apparatus 1202 of described routing configuration file is for generating the routing configuration file of corresponding domain name analysis request according to the routing configuration information of the WEB server ip address of domain name analysis request.
Described dispatching device 1204, for responding the routing policy of domain name analysis request, determines that the WEB server ip address that can respond domain name analysis request is for scheduling.
It should be noted that, the harvester 1200 of routing configuration information can be arranged in background management system, and the generating apparatus 1202 of routing configuration file, dispatching device 1204 can be arranged in front end management system, thereby realize the concentrated bulk management to front end management system by background management system.
Also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make to comprise that the commodity of a series of key elements or system not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as this commodity or the intrinsic key element of system.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within and comprise in the commodity of described key element or system and also have other identical element.
Above-mentioned explanation has illustrated and has described some preferred embodiments of the application, but as previously mentioned, be to be understood that the application is not limited to disclosed form herein, should not regard the eliminating to other embodiment as, and can be used for various other combinations, modification and environment, and can, in invention contemplated scope described herein, by technology or the knowledge of above-mentioned instruction or association area, change.And the spirit and scope that the change that those skilled in the art carry out and variation do not depart from the application, all should be in the protection range of the application's claims.

Claims (13)

1. a routing configuration information acquisition method in domain name mapping, is characterized in that, comprising:
Receive the domain name mapping request that client is sent, and the routing policy of the response domain name analysis request of using in definite domain name mapping, the routing policy according to response domain name analysis request, generates the configurable data interface that described routing policy is corresponding;
Obtain the WEB server ip address that can respond domain name analysis request, and by described configurable data interface, collection can respond the routing configuration information of the WEB server ip address of domain name analysis request.
2. method according to claim 1, is characterized in that, determines that the routing policy of the response domain name analysis request of using in domain name mapping comprises:
According to the client ip address carrying in domain name analysis request, in conjunction with the corresponding relation of WEB server ip address in the addressable network node of each client ip address in preset different clients IP address and different clients IP address, determine the routing policy of the response domain name analysis request of using in domain name mapping.
3. method according to claim 1, is characterized in that, determines that the routing policy of the response domain name analysis request of using in domain name mapping comprises:
According to the client ip address carrying in domain name analysis request, determine client ip address section, according to described client ip address section, in conjunction with the corresponding relation of WEB server ip address in the addressable network node of each client ip address in preset different clients IP address field and different clients IP address field, determine the routing policy of the response domain name analysis request of using in domain name mapping.
4. method according to claim 1, is characterized in that, determines that the routing policy of the response domain name analysis request of using in domain name mapping comprises:
According to the client ip address carrying in domain name analysis request, according to domain name analysis request, determine the business tine of asking, in conjunction with the corresponding relation of the WEB server in preset different business content and the addressable network node of described client ip address, determine the routing policy of the response domain name analysis request of using in domain name mapping.
5. method according to claim 1, is characterized in that, determines that the routing policy of the response domain name analysis request of using in domain name mapping comprises:
According to the client ip address carrying in domain name analysis request, determine the network operator information of described client ip address ownership, according to described network operator information, obtain the WEB server ip address in the addressable network node of described client ip address, determine the routing policy of the response domain name analysis request of using in domain name mapping.
6. method according to claim 1, is characterized in that, determines that the routing policy of the response domain name analysis request of using in domain name mapping comprises:
According to the client ip address carrying in domain name analysis request, determine the ownership place of described client ip address, according to the WEB server ip address in all nodes of described ownership place, obtain WEB server ip address in the addressable network node of described client ip address, determine the routing policy of the response domain name analysis request of using in domain name mapping.
7. method according to claim 1, is characterized in that, determines that the routing policy of the response domain name analysis request of using in domain name mapping comprises:
Statistics can respond the load capacity of WEB server and the time cycle of response domain name analysis request of domain name analysis request;
According to the time cycle of the load capacity of the WEB server of statistics and response domain name analysis request, determine the routing policy of the response domain name analysis request of using in domain name mapping.
8. a generation method for the routing configuration file in domain name mapping, is characterized in that, comprising:
When judgement need to be upgraded current routing configuration file, receive the routing configuration information of the WEB server ip address of the responded domain name analysis request described in claim 1-7 any one;
According to the routing configuration information of the WEB server ip address of domain name analysis request, generate the routing configuration file of corresponding domain name analysis request.
9. the dispatching method in domain name mapping, is characterized in that, comprising:
Obtain the routing configuration file of the domain name mapping request of sending for client of loading;
Routing configuration file to the domain name mapping request of sending for client is resolved, and obtains the routing policy of response domain name analysis request;
According to the routing policy of response domain name analysis request, determine that the WEB server ip address that can respond domain name analysis request is for scheduling.
10. a harvester for routing configuration information in domain name mapping, is characterized in that, comprising:
Dispensing unit, for receiving the domain name mapping request that client is sent, and the routing policy of the response domain name analysis request of using in definite domain name mapping, the routing policy according to response domain name analysis request, generates the configurable data interface that described routing policy is corresponding;
IP address acquisition unit, for obtaining the WEB server ip address that can respond domain name analysis request;
Collecting unit, for passing through described configurable data interface, collection can respond the routing configuration information of the WEB server ip address of domain name analysis request.
The generating apparatus of the routing configuration file in 11. 1 kinds of domain name mappings, is characterized in that, comprising:
Receiving element, for when judging while need to upgrade current routing configuration file, receives the routing configuration information of the WEB server ip address of the responded domain name analysis request described in claim 1-7 any one;
Configuration file generation unit, for generating the routing configuration file of corresponding domain name analysis request according to the routing configuration information of the WEB server ip address of domain name analysis request.
Dispatching device in 12. 1 kinds of domain name mappings, is characterized in that, comprising:
Acquiring unit, for obtaining the routing configuration file of the domain name mapping request of sending for client of loading;
Resolution unit, resolves for the routing configuration file of the domain name mapping request to sending for client, obtains the routing policy of response domain name analysis request;
Scheduling unit, for according to the routing policy of response domain name analysis request, determines that the WEB server ip address that can respond domain name analysis request is for scheduling.
Dispatching patcher in 13. 1 kinds of domain name mappings, it is characterized in that, comprise: the harvester of routing configuration information claimed in claim 10, the generating apparatus of the routing configuration file described in claim 11, and the dispatching device described in claim 12, the harvester of described routing configuration information and the generating apparatus of described routing configuration file couple, and the generating apparatus of described routing configuration file and described dispatching device couple; Wherein:
The harvester of described routing configuration information is for gathering the routing configuration information of the WEB server ip address that can respond domain name analysis request;
The generating apparatus of described routing configuration file is for generating the routing configuration file of corresponding domain name analysis request according to the routing configuration information of the WEB server ip address of domain name analysis request;
Described dispatching device is for responding the routing policy of domain name analysis request, and definite WEB server ip address that can respond domain name analysis request is for scheduling.
CN201310728306.4A 2013-12-25 2013-12-25 Method and device for collecting routing configuration information in domain name resolution Pending CN103685609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310728306.4A CN103685609A (en) 2013-12-25 2013-12-25 Method and device for collecting routing configuration information in domain name resolution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310728306.4A CN103685609A (en) 2013-12-25 2013-12-25 Method and device for collecting routing configuration information in domain name resolution

Publications (1)

Publication Number Publication Date
CN103685609A true CN103685609A (en) 2014-03-26

Family

ID=50321878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310728306.4A Pending CN103685609A (en) 2013-12-25 2013-12-25 Method and device for collecting routing configuration information in domain name resolution

Country Status (1)

Country Link
CN (1) CN103685609A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017167130A1 (en) * 2016-03-31 2017-10-05 阿里巴巴集团控股有限公司 Routing method and device
CN109561082A (en) * 2018-11-16 2019-04-02 国网思极网安科技(北京)有限公司 A kind of method and system for distinguishing DNS user
CN110177140A (en) * 2019-05-27 2019-08-27 湖南快乐阳光互动娱乐传媒有限公司 A kind of IP scheduling system and method for client data downloading
CN114567585A (en) * 2022-02-28 2022-05-31 上海掌门科技有限公司 Method and equipment for determining routing level information of routing equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017167130A1 (en) * 2016-03-31 2017-10-05 阿里巴巴集团控股有限公司 Routing method and device
CN107295033A (en) * 2016-03-31 2017-10-24 阿里巴巴集团控股有限公司 A kind of method for routing and device
US11165885B2 (en) 2016-03-31 2021-11-02 Alibaba Group Holding Limited Routing method and device
CN109561082A (en) * 2018-11-16 2019-04-02 国网思极网安科技(北京)有限公司 A kind of method and system for distinguishing DNS user
CN110177140A (en) * 2019-05-27 2019-08-27 湖南快乐阳光互动娱乐传媒有限公司 A kind of IP scheduling system and method for client data downloading
CN110177140B (en) * 2019-05-27 2022-06-07 湖南快乐阳光互动娱乐传媒有限公司 IP scheduling system and method for client data downloading
CN114567585A (en) * 2022-02-28 2022-05-31 上海掌门科技有限公司 Method and equipment for determining routing level information of routing equipment
CN114567585B (en) * 2022-02-28 2024-05-03 上海掌门科技有限公司 Method and device for determining routing level information of routing device

Similar Documents

Publication Publication Date Title
CN105516391B (en) A kind of DNS name resolution method based on CNAME
CN103051740B (en) Domain name analytic method, dns server and domain name analysis system
CN109167674B (en) Service node scoring method, Domain Name System (DNS) scheduling method and server
CN103685583B (en) A kind of method and system of domain name mapping
CN1146186C (en) Virtual enclosed cluster capable of recovery
CN101764747B (en) Intelligent dispatching method, device and system of content delivery network flow
CN102281190B (en) Networking method for load balancing apparatus, server and client access method
CN103825975B (en) Cdn node distribution server and system
CN109151009B (en) CDN node distribution method and system based on MEC
CN104158919A (en) Webpage access implementation method, server and client
CN107087023B (en) Data forwarding method and system
CN108173976A (en) Domain name analytic method and device
CN103780654A (en) Business request processing method, user terminal, business router and network system
CN108924274A (en) domain name system DNS processing method, device, storage medium and electronic equipment
CN104754640A (en) Network resource scheduling method and network resource management server
CN109729183A (en) Request processing method, device, equipment and storage medium
CN109040243A (en) A kind of message processing method and device
CN103685609A (en) Method and device for collecting routing configuration information in domain name resolution
CN111327647A (en) Method and device for providing service to outside by container and electronic equipment
CN110719273A (en) Method for determining back source node, server and computer readable storage medium
CN104935653A (en) Bypass cache method for visiting hot spot resource and device
CN108965036A (en) Configure across public network equipment exchanging visit method, system, server and storage medium
CN103841159B (en) Offline file transmission system and method
CN102970391B (en) Inquiry of the domain name processing method, server and system
CN110392123A (en) The methods, devices and systems of detection outlet IP address

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20180123

AD01 Patent right deemed abandoned