Summary of the invention
The embodiment of the present application provides a kind of generation method of SDNS data, can effectively generate the required SDNS data of intelligent DNS node.
Technical scheme is as follows:
A kind of generation method of SDNS data comprises:
Receive the ID of domain name, and described ID is verified;
When described ID passes through checking, check the switches at different levels that relate in the domain name logical operation process;
The weight that concerns according to region and pool is chosen satisfactory pool in the checking process;
To the ratio of the CDN node under the pool that chooses with limit;
The switch of comprehensive described CDN node or weight change generation SDNS data.
Above-mentioned method, preferred, choose in the satisfactory pool process, when a plurality of pool of a certain region correspondence, choose the pool of incidence relation weight maximum.
Above-mentioned method, preferred, choose in the satisfactory pool process, when there was common factor in certain two zone, the part of occuring simultaneously was chosen the pool in the zone of incidence relation weight maximum.
Above-mentioned method, preferred, when the incidence relation weight of described a plurality of pool is equally big, pool is selected according to the applied load balancing strategy of the pool of incidence relation.
Above-mentioned method, preferred, described load balancing strategy is specially:
According to priority order from big to small is GA strategy, Ratio strategy and RR strategy.
Above-mentioned method, preferred, when the same and employed load balancing strategy of each pool is the same when the incidence relation weight of described a plurality of pool, the satisfactory pool of picked at random.
Above-mentioned method, preferred, described ratio to the CDN node the pool that chooses under with limit, limit the ratio of described CDN node and be 10000.
A kind of generation system of SDNS data comprises:
Receipt Validation unit, inspection unit, choose the unit, limit unit and generation unit;
Wherein:
Described Receipt Validation unit is used to receive the ID of domain name, and described ID is verified;
Described inspection unit be used for when described Receipt Validation unit by to the checking of described ID the time, check the switches at different levels that relate in the domain name logical operation process;
The described unit of choosing is used for choosing the satisfactory pool of described inspection unit checking process according to the weight that concerns of region and pool;
Described qualification unit is used for the ratio of the CDN node under the described pool that chooses unit selection and limits;
Switch or weight that described generation unit is used for comprehensive described CDN node change generation SDNS data.
The technical scheme that is provided by above the embodiment of the present application as seen, SDNS data synchronization method and system provided by the invention, the weight that concerns according to region and pool is chosen satisfactory pool in the checking process, to the ratio of the CDN node under the pool that chooses with limit, the switch of comprehensive CDN node or weight change and generate the SDNS data.The generation method and system of the SDNS data that the embodiment of the present application provides can effectively generate the required SDNS data of each intelligent DNS node.
Embodiment
In order to make those skilled in the art person understand the application's scheme better.Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment only is the application's part embodiment, rather than whole embodiment.Based on the embodiment among the application, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all should belong to the scope of the application's protection.
At first the term that the embodiment of the present application process is used makes an explanation:
CDN:Content Delivery Network, content distributing network.Its objective is by increasing the new network architecture of one deck in the existing Internet, with the content release of website near user's network " edge ", make the user can obtain required content nearby, solve Internet network congestion situation, improve the response speed of user capture website.Solve the slow-footed problem of user capture websites response little owing to the network bandwidth, that the user capture amount is big, the unequal reason of network point distribution causes technically comprehensively.
Pool: server pools provides the server set of service.
The region: the logical collection of IP address is the combination in any in country, ISP, province, city, in order to represent the region of user name, can be when domain name that different client quickens is specified the GSLB strategy and uses.
The load balancing strategy: the load strategy in certain server pools has Global Availability, RoundRobin, three kinds of Ratio; Wherein Global Availability is called for short GA, the heavy maximum server pools of expression weighting; Ratio, expression is chosen in the ratio of server pools, and the probability of obtaining that ratio is big is big; RoundRobin is called for short RR, the expression picked at random.
The incidence relation of server pools and region: the DNS that comprises in certain server pools is recorded as certain region service is provided, and incidence relation all has a weighted value.
SDNS: intelligent DNS node.
The SDNS method of data synchronization flow chart that the embodiment of the present application provides comprises as shown in Figure 1:
Step S101: receive the ID of domain name, and described ID is verified;
Step S102: when described ID passes through checking, check the switches at different levels that relate in the domain name logical operation process;
Step S103: the weight that concerns according to region and pool is chosen satisfactory pool in the checking process;
Step S104: to the ratio of the CDN node under the pool that chooses with limit;
Step S105: the switch of comprehensive described CDN node or weight change generation SDNS data.
The method that the embodiment of the present application provides also comprises the SDNS data sync that will the generate process in other SDNS after generating the SDNS data.
Logical operation switch figure in the SDNS data synchronization process that the embodiment of the present application provides as shown in Figure 2, in the SDNS data generating procedure, domain name logical operation process produces the SDNS data; In the system of at first intelligent DNS storehouse, the domain name configuration module calls by Web, the ID of input GSLB; Respond immediately after being called, carry out on the backstage then; Same ID can not operate more than twice simultaneously; Check each switch, as shown in Figure 2, the SDNS data comprise among Fig. 2 from quickening domain name to IP layer data of UNICOM all:
When certain domain name switch cut out, this domain name was unavailable;
When certain pool switch cuts out, the IP under this pool unavailable (available under other pool as this IP, then this IP can use);
When certain pool IP switch cut out, this IP under this pool was unavailable;
When certain IP switch cut out, this IP under all domain names was unavailable;
When the service state of certain IP was unavailable, this IP under all domain names was unavailable.
When certain region is corresponding when crossing pool, under the prerequisite that pool does not close, pool with incidence relation weight maximum is as the criterion, the region that provides as the embodiment of the present application and a plurality of pool concern that schematic diagram is shown in Figure 3, when corresponding pool1 in region, south China and pool2, select the pool2 of incidence relation weight maximum.
The example schematic of region that the embodiment of the present application provides and pool as shown in Figure 4, when having common factor between two different regions, the part of occuring simultaneously is got the pool of incidence relation weight maximum, in Fig. 4, pool1 is got in Guangdong, Hunan, pool2 is got in Shanghai, Jiangsu, and the pool2 of incidence relation weight maximum is got in common factor part Fujian.
At the process of choosing of above pool, when the weight part of the incidence relation of pool is all the same, to choose according to the employed load balancing strategy of the pool of incidence relation, priority is as follows:
The GA strategy is greater than the Ratio strategy; The Ratio strategy is greater than the RR strategy.
When the weight of incidence relation is all the same with the employed strategy of server pools, select an incidence relation at random.
Choose after the pool, guarantee the ratio of each CDN node in each pool and 10000,10000 be not the radix of ratio, 20% ratio is exactly 2000.
In the tabulation of SDNS data movement, insert data, transfer data simultaneous module the SNDS data that generate are carried out synchronously.
A weight properties is all arranged on the incidence relation of each pool and region; When all related same region of a plurality of pool, can only there be an incidence relation to come into force, remaining incidence relation all is standby.
Have only the incidence relation of weight maximum effective, serve the DNS record of this region and dispatch by the strategy in the Pool of this incidence relation (GA/Ration/RR).When the record in the pool of this incidence relation all lost efficacy, just take turns to second largest incidence relation of weight and come into force.
When the weight of these incidence relations is all the same, follow employed strategy according to the Pool of incidence relation, priority is as follows: GA strategy>Ratio strategy>RR strategy.
When the weight of incidence relation is all the same with the employed strategy of pool, select an incidence relation at random.
Shown in the another example schematic of region as shown in Figure 5 and pool, Beijing pool-->region, Beijing weight maximum, therefore Beijing pool comes into force in region, Beijing now, and Qingdao pool-->region, Beijing weight is second largest, therefore Qingdao pool-->region, Beijing is that the pair of Beijing pool-->region, Beijing is equipped with, and Langfang pool-->region, Beijing minimum is time secondary being equipped with.
Again shown in the example schematic of region as shown in Figure 6 and pool, the zone that correspondence is paid close attention to, concrete configuration is as follows, cover a bigger zone (covering region, Beijing) earlier with a bigger pool as region, Beijing pool, corresponding key cities build a key cities region (Beijing pool covers region, Beijing) separately, go to cover key cities with little pool, as long as associated weights just can reach greatly than it, pool is the standby effect of little pool greatly.
In synchronizing process, the CDN node all has an acquisition mode (dead/as to live), this acquisition mode is to read detection data in real time by the detection system in the intelligent DNS system to put, this detection has determined whether this CDN node enters in the dns resolution, if the acquisition mode of certain CDN node is dead, will ignore it during logical operation so, it does not just enter the dns resolution system.
CDN node under certain pool all in the dust, the state of this pool is just dead so, if will neglect this pool during logical operation so, will choose the reserve pool (be associated among other pool of same region weight maximum that) of this pool so, if there are not the words of reserve pool, when SDNS inquires about, can fall on the pool of upper level correspondence of region of its association, for example Guangzhou, China Telecom Guangdong does not have related pool, can look for the pool of China Telecom's Guangdong correspondence.
One detailed process schematic diagram of the SDNS data sync that the embodiment of the present application provides as shown in Figure 7, in the system of intelligent DNS storehouse:
The DNS configuration-system is sent to the domain name logical operation module with the ID of domain name, and ID is carried out Authority Verification, if by the checking return authorization information, switches at different levels are checked; The weight that concerns according to region and pool is chosen pool; Guarantee the ratio of the ip under each pool and be 10000, transform then and obtain the SDNS data, the SDNS data are sent to the synchrodata module, the SDNS data are carried out simultaneous operation.
For aforesaid method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
At above method embodiment, the system configuration schematic diagram that the embodiment of the present application also provides a kind of SDNS data to generate as shown in Figure 8, comprising:
Receipt Validation unit 201, inspection unit 202, choose unit 203, limit unit 204 and generation unit 205;
Wherein:
Receipt Validation unit 201 is used to receive the ID of domain name, and described ID is verified;
Inspection unit 202 be used for when described Receipt Validation unit 201 by to the checking of described ID the time, check the switches at different levels that relate in the domain name logical operation process;
Choosing unit 203 is used for choosing the satisfactory pool of described inspection unit 202 checking processes according to the weight that concerns of region and pool;
Limit unit 204 be used for to the described ratio of choosing the CDN node the pool that chooses unit 203 under with limit;
Switch or weight that generation unit 205 is used for comprehensive described CDN node change generation SDNS data.
In the generation system that the embodiment of the present application provides, also comprise lock unit 206, as shown in Figure 9;
The SDNS data sync that lock unit 206 is used for described generation unit 205 is generated is to other SDNS.
For system embodiment, because it is substantially corresponding to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
Method embodiment and system embodiment that comprehensive the embodiment of the present application provides, among the present invention, with the page area of page division, call the functional module that is under the complete separate state by page area, only by the generative process of calling module realization to the page for the storage different content; Avoided in the service code with the nested full page of service code of equal modules, make the degree of coupling of full page increase, if the equal modules content of being quoted in a plurality of pages needs to change, then need the problem that part is made amendment of quoting in a plurality of pages.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is difference with other embodiment.The above only is the application's a embodiment; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the application's principle; can also make some improvements and modifications, these improvements and modifications also should be considered as the application's protection range.