Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of detection method and system of CDN node, can accurately survey the existing state of CDN node.
Technical scheme is as follows:
A kind of detection method of CDN node comprises:
Obtain detected object and detection threshold from described configuration end;
Described detected object is carried out exploration operation, obtain detection data;
Analyze and add up described detection data and obtain the analytic statistics result;
Described analytic statistics result and described detection threshold are compared, determine the existing state of described detection threshold, and the state of the existing state pair CDN node corresponding with it of the described detection threshold of foundation is changed.
Above-mentioned detection method, preferred, comprising:
When the existing state of determining described detection threshold during for dead state not, the CDN node that it is corresponding is in not dead state, and according to the weight of the load threshold adjustment CDN node of described CDN node.
Above-mentioned detection method, preferred, the detection mode that described detected object is carried out the described CDN node report of exploration operation foundation carries out.
Above-mentioned detection method, preferred, described detected object is the IP and the port of CDN node.
A kind of detection system of CDN node comprises:
Acquiring unit, probe unit, analytic unit and comparing unit;
Wherein: described acquiring unit is used for obtaining detected object and detection threshold from described configuration end;
The detected object that described probe unit is used for described acquiring unit is obtained is carried out exploration operation, and obtains detection data;
Described analytic unit is used for analysis and adds up described detection data obtaining the analytic statistics result;
Described comparing unit is used for the detection threshold that analytic statistics result that described analytic unit is obtained and described acquiring unit obtain and compares, determine the existing state of described detection threshold, and the state of the existing state pair CDN node corresponding with it of the described detection threshold of foundation is changed.
Above-mentioned system, preferred, described comparing unit comprises adjustment unit;
Described adjustment unit is used for adjusting the weight of described CDN node according to the load threshold of described CDN node when the existing state of described comparing unit by relatively determining described detection threshold is in not dead state for not dead state and the CDN node that it is corresponding.
Above-mentioned system, preferred, the detection mode that the detected object that described probe unit obtains described acquiring unit is carried out the described CDN node report of exploration operation foundation carries out.
Above-mentioned system, preferred, the detected object that described acquiring unit obtains is the IP and the port numbers of described CDN node.
The technical scheme that is provided by above the embodiment of the present application as seen, the detection method of CDN node provided by the invention and system, the exploration operation that the detected object of obtaining from the configuration end is carried out multiple mode obtains detection data, obtain the analytic statistics result by analytic statistics to detection data, analytic statistics result who obtains and the detection threshold that obtains from the configuration end are compared, threshold value is judged if threshold value is dead state, then the CDN node state with the threshold value correspondence is changed to death; If threshold value is dead state, the CDN node of threshold value correspondence is changed to non-dead state, and the weight of CDN node is regulated.The detection method of CDN node provided by the invention can be surveyed the existing state of CDN node effectively accurately, and the CND node detecting function of demand can effectively be provided for intelligent DNS storehouse.
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.
The method flow diagram of the CDN node detecting method that the embodiment of the present application provides comprises as shown in Figure 1:
Step S101: obtain detected object and detection threshold from described configuration end;
Step S102: described detected object is carried out exploration operation, obtain detection data;
Step S103: analyze and add up described detection data and obtain the analytic statistics result;
Step S104: described analytic statistics result and described detection threshold are compared, determine the existing state of described detection threshold, and the state of the existing state pair CDN node corresponding with it of the described detection threshold of foundation is changed.
On the basis of Fig. 1, the embodiment of the present application provides a detailed method flow chart of CDN node detecting method, as shown in Figure 2, comprising:
Step S105: whether the state of judging the CDN node is dead, if, execution in step S107; Otherwise, execution in step S106;
Step S106: whether the load of judging the CDN node is light; If, execution in step S109; Otherwise, execution in step S108;
Step S107: with the status modifier of CDN node is dead;
Step S108: the state of revising the CDN node is for living; Carry out subsequent step S110;
Step S109: the state of revising the CDN node is for living; Carry out subsequent step S111;
Step S110: the weight that reduces the CDN node;
Step S111: the weight that improves the CDN node.
In the embodiment of the present application implementation, when current CDN node was the state of living, if it is dead to detect this node, then its state of living was set to dead state; When current C DN node was dead state, if detect the operating state that this node still is in survival, its dead state was set to state alive.
For Fig. 1 and the described method of Fig. 2 that the embodiment of the present application is provided are described more clearly, the detection schematic diagram of the detection process that the embodiment of the present application provides as shown in Figure 3, read the IP and the port of CDN node in the DNS configuration-system of detection system from the system of intelligent DNS storehouse, obtain detected object, utilize various detection modes that detected object is surveyed then, after obtaining detection data, from the DNS configuration-system, get access to detection threshold again.After detection data analyzed and add up, compare with described detection threshold, if detection threshold is the threshold value of dead state, the state of this CDN node is changed to death, if it is dead that detection threshold does not reach, then judge the weight of load, according to the weight of load threshold adjustment CDN node, to adjust the flow of CND node.
In the method that the embodiment of the present application provides, the detection mode that described detected object is carried out the described CDN node report of exploration operation foundation carries out, the CDN node is initiatively reported shown in Figure 4 that the activity diagram of detection mode such as the embodiment of the present application provide, the loading condition of the active collection dns server in the Preset Time section of the locator(-ter) in the CDN node feeds back to result of detection in the detection in the heart.
The activity chart of the probe node initiation detection mode that the embodiment of the present application provides as shown in Figure 5, can arrange a plurality of probe nodes in each different regions, each probe node gets access to IP and the port and the detection mode of detection from the detection center, initiate probe requests thereby to the CDN node, if the CDN node is replied, then the recording responses time, if status of fail is then write down in no response, structural exploration message sends to the detection center and deposits database in.
One instance graph of the detection process that the embodiment of the present application provides as shown in Figure 6, if arrange when the cost of probe node is higher, can survey detected object by the service of monitoring website, other detection system is returned result of detection to the detection center, and the detection center is therefrom taken out the data relevant with detected object and put in storage.
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.
Also provide a kind of detection system of CDN node at above method embodiment the embodiment of the present application, having comprised:
Acquiring unit 201, probe unit 202, analytic unit 203 and comparing unit 204;
Wherein: acquiring unit 201 is used for obtaining detected object and detection threshold from described configuration end;
Probe unit 202 is used for the detected object that described acquiring unit 201 obtains is carried out exploration operation, and obtains detection data;
Analytic unit 203 is used for analysis and adds up described detection data obtaining the analytic statistics result;
Comparing unit 204 is used for the detection threshold that analytic statistics result that described analytic unit 203 is obtained and described acquiring unit 201 obtain and compares, determine the existing state of described detection threshold, and the state of the existing state pair CDN node corresponding with it of the described detection threshold of foundation is changed.
In the system that the embodiment of the present application provides, comparing unit 204 comprises adjustment unit 205;
Adjustment unit 205 is used for adjusting the weight of described CDN node according to the load threshold of described CDN node when the existing state of described comparing unit 204 by relatively determining described detection threshold is in not dead state for not dead state and the CDN node that it is corresponding.
Need to prove for above system:
The detection mode that the detected object that 202 pairs of described acquiring units 201 of probe unit obtain is carried out the described CDN node report of exploration operation foundation carries out.
The detected object that acquiring unit 201 obtains is the IP and the port numbers of described CDN node.
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.
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.