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, and described region is the logical collection of IP address, and described pool is for providing the server set of service;
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 the corresponding a plurality of pool in a certain region, 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 large, according to the applied load balancing of the pool of incidence relation pool is selected.
Above-mentioned method, preferred, described load balancing is specially:
According to priority from big to small order is the GA strategy, Ratio is tactful and RR is tactful.
Above-mentioned method, preferred, when the same and employed load balancing of each pool is the same when the incidence relation weight of described a plurality of pool, choose at random satisfactory pool.
Above-mentioned method, preferred, described to the CDN node under the pool that chooses ratio and 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 for receiving 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, the switches at different levels that relate in the inspection 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 region is the logical collection of IP address, and described pool is for providing the server set of service;
Described restriction 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, the method for synchronous of SDNS data provided by the invention and system, 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 better the application's scheme.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 obtains under the creative work prerequisite, all should belong to the scope of the application's protection.
The term of at first the embodiment of the present application process being used makes an explanation:
CDN:Content Delivery Network, content distributing network.Its objective is by increasing the new network architecture of one deck among the existing Internet, the content of website is published to network " edge " near the user, make the user can obtain required content nearby, solve Internet network congestion situation, improve the response speed of user's access websites.Solve technically the slow problem of user's access websites response speed little owing to the network bandwidth, that user's visit capacity is large, the unequal reason of network point distribution causes 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 accelerates is specified the GSLB strategy and uses.
Load balancing: 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 large is large; RoundRobin is called for short RR, and expression is chosen 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 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 comprises that also the SDNS data that will generate are synchronized to the process among 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, then carry out on the backstage; 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 accelerating 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 such 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 correspondence is crossed individual pool, under the prerequisite that pool does not close, pool with incidence relation weight maximum is as the criterion, the region that provides such as the embodiment of the present application and a plurality of pool concern that schematic diagram is shown in Figure 3, when the corresponding pool1 in region, south China and pool2, select the pool2 of incidence relation weight maximum.
The example schematic of the region that the embodiment of the present application provides and pool as shown in Figure 4, when having common factor between two different geographicals, 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.
For 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 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 and the employed strategy of server pools are all the same, select at random an incidence relation.
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.
Data inserting in the SDNS data movement tabulation is transferred data simultaneous module the SNDS data that generate is carried out synchronously.
A weight properties is arranged on the incidence relation of each pool and region; When a plurality of pool related same region all, can only there be an incidence relation to come into force, remaining incidence relation all is for subsequent use.
Only have 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 the employed strategy according to the Pool of incidence relation, priority is as follows: the GA strategy〉the Ratio strategy〉the RR strategy.
When the weight of incidence relation and the employed strategy of pool are all the same, select at random an incidence relation.
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 Beijing pool--〉pair of region, Beijing is standby, and Langfang pool--region, Beijing minimum is time secondary standby.
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 first a larger zone (covering region, Beijing such as region, Beijing pool) with a larger pool, corresponding key cities build separately a key cities region (Beijing pool covers region, Beijing), go to cover key cities with little pool, as long as associated weights just can reach greatly than it, pool is the effect for subsequent use of little pool greatly.
In synchronizing process, the CDN node has an acquisition mode (dead/as to live), this acquisition mode is to read in real time detection data 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 so the reserve pool (be associated among other pool of same region weight maximum that) of this pool, if there are not the words of reserve pool, when SDNS inquires about, can fall on pool corresponding to the upper level of region of its association, for example China Telecom's Guangzhou Guangdong does not have related pool, can look for pool corresponding to China Telecom Guangdong.
The synchronous detailed process schematic diagram of the SDNS data 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, then transform and obtain the SDNS data, the SDNS data are sent to the synchrodata module, the SDNS data are carried out simultaneous operation.
For aforesaid embodiment of the method, 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.
For above embodiment of the method, 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 for receiving 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, the switches at different levels that relate in the inspection 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;
Limiting unit 204 is used for choosing the ratio of the CDN node under the pool that chooses unit 203 and limiting described;
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 that lock unit 206 is used for described generation unit 205 is generated are synchronously to other SDNS.
For system embodiment, because it is substantially corresponding to embodiment of the method, so description is fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
Embodiment of the method and system embodiment that comprehensive the embodiment of the present application provides, among the present invention, with the page area of page division for the storage different content, 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; Avoided in the service code with the nested full page of service code of equal modules, so that the degree of coupling of full page increases, if the equal modules content of quoting 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 is difference with other embodiment.The above only is the application's 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.