The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
State the monitoring method of the CDN server of problem and the monitoring system with corresponding CDN server.
Foundation one aspect of the present invention, the embodiments of the invention provide a kind of monitoring method of CDN server, including:
Obtaining needs the domain name of detection content distribution network CDN server;
Domain name mapping is carried out for the domain name that need to detect CDN server, obtains corresponding IP address;
HTTP HTTP detection requests are sent to IP address;
Response message according to request is detected for HTTP determines the state of CDN server.
Wherein, the domain name progress domain name mapping for that need to detect CDN server includes:
Local dns server list is obtained, the local dns server list records are in the dns server;For needing to detect
The domain name of CDN server is corresponding into local dns server list in the network of multiple area/ISPs
Local dns server send domain name analysis request, obtain include all IP address that need to detect CDN server IP address arrange
Table.
Wherein, sending HTTP detection requests to IP address includes:In the network of multiple area/ISPs
Corresponding IP address into IP address list sends HTTP detection requests.
Wherein, sending HTTP detection requests to IP address includes:Obtain the system associated with the domain name of CDN server need to be detected
One URLs url list;URL in url list, in the network of multiple area/ISPs to
IP address sends HTTP detection requests, and obtains HTTP testing results by HTTP detection requests.
Wherein, determine that the state of CDN server includes according to the response message that request is detected for HTTP:When not receiving
During to the response message that request is detected for HTTP, the CDN server abnormal state is determined;When receiving at least one be directed to
During the response message of HTTP detection requests, it is determined that the CDN server state is normal.
Wherein, domain name mapping is carried out for the domain name of CDN server need to be detected, obtains the operation of corresponding IP address by position
Dns resolution client in the network of multiple area/ISPs is realized;Sending HTTP detections to IP address please
The operation asked is realized by the HTTP detection clients in the network of multiple area/ISPs.
Foundation another aspect of the present invention, the embodiments of the invention provide a kind of monitoring system of CDN server, including:
Monitoring server, the multiple HTTP being arranged in the network of multiple area/ISPs detection clients and multiple
Dns resolution client,
Monitoring server, domain name and the local dns list of CDN server need to be detected suitable for obtaining, and by domain name and local
DNS lists are issued to each dns resolution client;With receiving the IP for the CDN server that the needs that dns resolution client reports detect
Location;IP address is issued to each HTTP detections client;Receive the HTTP that is directed to that HTTP detections client reports and detect request
Response message;The service state of CDN server is determined according to the response message;
Dns resolution client, it need to detect the domain name of CDN server suitable for utilization and local dns list is obtained in CDN
The IP address of CDN server detected is needed, the IP address of CDN server is uploaded to monitoring server;
HTTP detects client, suitable for sending HTTP detection requests to IP address, obtains for HTTP detection requests
Response message, and the response message is uploaded to monitoring server.
Wherein, monitoring server, suitable for obtaining local dns list from dns server.
Wherein, dns resolution client, suitable for orienting local dns server according to local dns server list, and from
It need to detect and the domain name that current detection uses is chosen in the domain name of CDN server;The domain name that current detection is used is arranged on domain name
In analysis request, domain name mapping request is sent to the local dns server oriented, to be incited somebody to action by the local dns server
Domain name mapping request is sent to dns server;Receive the domain name mapping knot of the dns server forwarded by local dns server
Fruit;The IP address for the CDN server that needs detect analytically is obtained in result.
Wherein, monitoring server, suitable for obtaining the url list associated with the domain name of CDN server need to be detected;By IP address
Each DNS client is issued to url list, so that HTTP detects URL of the client in url list and sent to IP address
HTTP detection requests, and met with a response information by HTTP detection requests.
Wherein, HTTP detects client, suitable for choosing URL to be detected from url list;URL to be detected is arranged on
After HTTP detection requests, HTTP detection requests are sent to IP address, to access the URL to be detected under IP address.
Wherein, monitoring server, suitable for when be not received by for HTTP detection request response message when, it is determined that should
CDN server abnormal state;When receive it is at least one for HTTP detection request response message when, it is determined that the CDN take
Device state of being engaged in is normal.
From the above mentioned, the monitoring method and monitoring system of CDN server provided in an embodiment of the present invention, by needing to detect
The domain name of CDN server carries out domain name mapping, obtains the technological means of corresponding IP address, and can get need to detect CDN clothes
The IP address of business device, then by sending HTTP detection requests to the IP address got, detect what is asked according to for HTTP
Response message determines the technological means of the state of CDN server, and the access based on user side is realized from user side to CDN service
The condition monitoring of device, so as to solve existing scheme dependent on control real-time caused by the monitoring of commercial CDN service provider
With quality monitoring it is poor the problem of etc., commercial CDN user can be made to get monitored results, and monitored results and user in time
Actual network access situation is closer, and the authenticity of monitored results is stronger.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
Due to how to CDN(Content Delivery Network, content distributing network)Server, which is monitored, is
One core technology of commercial CDN service provider, typically will not externally be announced.Also, commercial CDN user does not have authority in business
With monitor client is disposed above CDN server, commercial CDN user is caused to rely only on the prison of commercial CDN service provider
Control result.For these problems, the angle of the invention from commercial CDN user, commercial CDN server is monitored, and
The CDN server of Shi Faxian abnormal states.
One embodiment of the invention provides a kind of monitoring system of CDN server, and referring to Fig. 2, the system includes monitoring
Server 200, multiple HTTP(HyperText Transfer Protocol, HTTP)Detect the He of client 300
Multiple DNS(Domain Name System, i.e. domain name system)Parse client 400.Multiple HTTP detections clients 300 are set
In multiple area/ISPs(Such as UNICOM Internet Service Provider, telecommunication network services provider)Network in,
Multiple dns resolution clients 400 are arranged in the network of multiple area/ISPs.Optionally, in monitoring system
Data center 500 can also be included.These equipment are illustrated separately below.
Referring to Fig. 3, show that monitoring server 200 and HTTP detections client 300, dns resolution client 400 interact
Mode flow chart, including following operation:
S300:Monitoring server 200 obtains domain name and the local dns list that need to detect CDN server.
Monitoring server 200 is established with dns server and connected, and local dns list, local dns are got from dns server
The IP address of CDN server in CDN is have recorded in list.
The monitoring that monitoring server 200 can be inputted by receiving monitoring side is instructed, and CDN server need to be detected by getting
Domain name.The domain name that need to detect CDN server can be included in above-mentioned monitoring instruction.The domain name that CDN server need to be detected refers to
The website or the domain name of network service that the CDN server that need to be detected is supported, a need detection CDN server can correspond to one
Individual or multiple domain names.
S301:Domain name and local dns list are issued to each dns resolution client 400 by monitoring server 200.
S302:Monitoring server 200 is with receiving the IP for the CDN server that the needs that dns resolution client 400 reports detect
Location.
S303:IP address is issued to each HTTP and detects client 300 by monitoring server 200.
Specifically, monitoring server 200 is further adapted for obtaining the URL associated with that need to detect the domain name of CDN server
(Uniform Resource Locator, URL)List;IP address and url list are issued to each DNS visitors
Family end, so that HTTP detects URL of the client in url list and sends HTTP detection requests to IP address, and by the HTTP
Detection request meets with a response information.
S304:Monitoring server 200 receives the response letter for HTTP detection requests that HTTP detections client 300 reports
Breath.
S305:Monitoring server 200 determines the service state of CDN server according to the response message.Monitoring server 200
Suitable for when being not received by the response message for HTTP detection requests, determining the CDN server abnormal state;When receiving
It is at least one for HTTP detection request response message when, it is determined that the CDN server state is normal.
Under certain situation, even if CDN server state is normal, it is also possible to monitoring server occur and do not receive HTTP detections
The phenomenon for the response message that client reports, for same HTTP detection requests in the present embodiment, as long as there is a HTTP inspection
Survey the response message that client receives return, you can confirm that CDN server state corresponding to accessed IP address is normal.
Dns resolution client 400 is suitable to the domain name and local dns list acquisition CDN that utilization need to detect CDN server
The IP address of the middle CDN server for needing to detect, monitoring server is uploaded to by the IP address of CDN server.Referring to Fig. 4, show
The method schematic diagram that dns resolution client obtains the IP address for the CDN server that need to be detected, including following operation are gone out:
First, the dns resolution client in the network of different regions or ISP can basis respectively
The local dns server corresponding to it is oriented in local dns server list, and local DNS service can be recorded in local dns list
The IP address of device.For example, the dns resolution client in District of Shanghai Netcom service provider network arranges according to local dns
Mark the IP address of the local dns server of record(Such as 11.11.11.1)Orient the local dns server 1 corresponding to it, position
Dns resolution client in Beijing area telco service provider network is according to the local dns services of local dns list records
The IP address of device(Such as 20.20.20.1)Orient the local dns server 2 corresponding to it.
Secondly, dns resolution client chooses the domain name that current detection uses from the domain name that need to detect CDN server;Will
The domain name that current detection uses is arranged in domain name mapping request, and domain name mapping request is sent to the local dns oriented
Server.For example, the dns resolution client in District of Shanghai Netcom service provider network selects currently from multiple domain names
The domain name 1 used is detected, domain name 1 is arranged in domain name mapping request and sent to local dns server 1.Beijing area telecommunications
Dns resolution client in service provider network selects the domain name 2 that current detection uses from multiple domain names, by domain name 2
It is arranged in domain name mapping request and sends to local dns server 2.Each local dns server translates domain names into request hair respectively
Dns server is delivered to, to be parsed by dns server to domain name mapping request.
Again, dns resolution client receives the domain name mapping result of the dns server forwarded by local dns server,
The IP address for the CDN server that needs detect analytically is obtained in result.For example, in District of Shanghai Netcom service provider network
Dns resolution client receive the domain name mapping result that local dns server 1 forwards, the domain name mapping result includes IP1,
IP1 corresponds in CDN the IP address for a CDN server for needing detection.In Beijing area telco service provider network
Dns resolution client receive the domain name mapping result that local dns server 2 forwards, the domain name mapping result includes IP2,
IP2 corresponds in CDN the IP address for a CDN server for needing detection.
The IP address of the CDN server for the need detection that each dns resolution client obtains itself is respectively sent to monitor
Server, so that the IP address is recorded in IP address list by monitoring server, the IP address list is sent to HTTP and examined
Survey client.
HTTP detects client 300, the IP address of the need detection CDN server issued suitable for receiving monitoring server 200,
HTTP detection requests are sent to the IP address, obtain the response message for HTTP detection requests, and by the response message
Reach monitoring server 200.
Specifically, HTTP detections client 300 also receives the url list that monitoring server 200 issues, remember in url list
Record one or more URL that the domain name of the CDN server with that need to detect associates.HTTP detections client 300 is selected from url list
URL to be detected is taken, after URL to be detected is arranged on into HTTP detection requests, HTTP detection requests are sent to IP address, to access
URL to be detected under IP address.When accessing successfully, HTTP detections client 300 can receive being directed to from the IP returns of access
The response message of HTTP detection requests, response message show that the CDN server service state under accessed IP address is normal,
HTTP detections client 300 sends the response message to monitoring server 200.When accessing failure, HTTP detection clients
300 will not receive the response message for HTTP detection requests.However, under certain situation, even if CDN server state is normal,
The phenomenon that HTTP detections client 300 does not receive response message may also occur, be examined in the present embodiment for same HTTP
Request is surveyed, as long as there is the response message that a HTTP detections client receives return, you can confirm accessed IP address pair
The CDN server state answered is normal.
From the foregoing, it will be observed that the embodiment of the present invention proposes a kind of innovative scheme, from the angle of commercial CDN user,
All CDN servers in CDN are known based on local dns list, then directly detect the state of these CDN servers.
It is achieved thereby that one is more scientific, more effective service detection mechanism.
For large enterprises, the relatively large scene of customer volume, the monitoring for business is particularly important.And by of the invention real
The technical scheme of example is applied, the access situation of user, the CDN server to note abnormalities, without when user can be understood in time
Feedback just notes abnormalities, the service quality of the business greatly improved.
Another embodiment of the invention provides a kind of monitoring method of CDN server, and referring to Fig. 5, this method is included such as
Lower step:
S500:Obtaining needs the domain name of detection content distribution network CDN server.
The domain name that CDN server need to be detected refers to website that the CDN server that need to be detected supported or the domain of network service
Name, a need detection CDN server can correspond to one or more domain names.
S501:Domain name mapping is carried out for the domain name that need to detect CDN server, obtains corresponding IP address.This step can
With including following operation:
First, local dns server list is obtained, the local dns server list records are in the dns server.
Secondly, the domain name for CDN server need to be detected, in the network of multiple area/ISPs to
Corresponding local dns server sends domain name analysis request in local dns server list, and acquisition includes all to detect CDN
The IP address list of the IP address of server.
All local dns servers that can be recorded into local dns server list send domain name analysis request, also may be used
Domain name analysis request, domain name mapping request are sent with the part local dns server only recorded into local dns server list
Include that the domain name of CDN server need to be detected.
Each local dns server translates domain names into request and sent to dns server, by dns server to domain name solution
Domain name in analysis request is parsed, and obtains detecting the IP address of CDN server, and the IP address is back into local dns clothes
Business device.The IP address that multiple local dns servers obtain is recorded in IP address list.
Exemplary, step S501 operation can be by the network of multiple area/ISPs
Dns resolution client is realized.
S502:HTTP detection requests are sent to IP address.
Specifically, in the network of multiple area/ISPs, CDN server need to be detected to including all
IP address IP address list in IP address send HTTP detection request.
Further, the url list associated with the domain name of CDN server need to be detected is obtained;URL in url list,
IP address in from the network of multiple area/ISPs to IP address list sends HTTP detection requests, and
HTTP testing results are obtained by HTTP detection requests.
Exemplary, step S502 operation can be by the network of multiple area/ISPs
HTTP detection clients are realized.
S503:Response message according to request is detected for HTTP determines the state of CDN server.
When being not received by the response message for HTTP detection requests, the CDN server abnormal state is determined;When connecing
Receive it is at least one for HTTP detection request response message when, it is determined that the CDN server state is normal.
Exemplary, step S500 and S503 operation can be realized by monitoring server.
The specific execution method of each step may refer to the system embodiment of the present invention in the inventive method embodiment, herein
Repeat no more.
From the above mentioned, the monitoring method and monitoring system of CDN server provided in an embodiment of the present invention, by needing to detect
The domain name of CDN server carries out domain name mapping, obtains the technological means of corresponding IP address, and can get need to detect CDN clothes
The IP address of business device, then by sending HTTP detection requests to the IP address got, detect what is asked according to for HTTP
Response message determines the technological means of the state of CDN server, and the access based on user side is realized from user side to CDN service
The condition monitoring of device, so as to solve existing scheme dependent on control real-time caused by the monitoring of commercial CDN service provider
With quality monitoring it is poor the problem of etc., commercial CDN user can be made to get monitored results, and monitored results and user in time
Actual network access situation is closer, and the authenticity of monitored results is stronger.
Embodiment of the invention discloses that:
A1, a kind of monitoring method of CDN server, including:
Obtaining needs the domain name of detection content distribution network CDN server;
Domain name mapping is carried out for the domain name that need to detect CDN server, obtains corresponding IP address;
HTTP HTTP detection requests are sent to the IP address;
Response message according to request is detected for the HTTP determines the state of the CDN server.
A2, the method according to claim A1, wherein, carry out domain for the domain name that need to detect CDN server
Name parsing includes:
Local domain name system dns server list is obtained, the local dns server list records are in the dns server;
For the domain name that need to detect CDN server, to this in the network of multiple area/ISPs
Corresponding local dns server sends domain name analysis request in ground dns server list, and acquisition includes all CDN that need to detect and taken
The IP address list of the IP address of business device.
A3, the method according to claim A2, wherein, sending HTTP detection requests to the IP address includes:
Corresponding IP address in from the network of multiple area/ISPs to the IP address list is sent
HTTP detection requests.
A4, the method according to claim A3, wherein, sending HTTP detection requests to the IP address includes:
Obtain the uniform resource position mark URL list associated with the domain name that need to detect CDN server;
According to the URL in the url list, in the network of multiple area/ISPs to the IP
Location sends HTTP detection requests, and obtains HTTP testing results by HTTP detection requests.
A5, the method according to claim A1, wherein, it is true according to the response message that request is detected for the HTTP
The state of the fixed CDN server includes:
When being not received by the response message for HTTP detection requests, the CDN server abnormal state is determined;
When receive it is at least one for the HTTP detection request response message when, it is determined that the CDN server shape
State is normal.
A6, the method according to claim A1 to any one of A5, wherein,
It is described to carry out domain name mapping for the domain name that detect CDN server, obtain the operation of corresponding IP address
Realized by the dns resolution client in the network of multiple area/ISPs;
It is described to send the operation of HTTP detection requests by positioned at multiple area/ISPs to the IP address
Network in HTTP detection client realize.
B7, a kind of monitoring system of CDN server, including:Monitoring server, it is arranged on multiple area/Internet services
Multiple HTTP detection clients and multiple dns resolution clients in the network of provider,
The monitoring server, domain name and the local dns list of CDN server need to be detected suitable for obtaining, and by the domain
Name and local dns list are issued to each dns resolution client;Receive the CDN that the needs that the dns resolution client reports detect
The IP address of server;The IP address is issued to each HTTP detections client;The HTTP detections client is received to report
For the HTTP detection request response message;The service state of CDN server is determined according to the response message;
The dns resolution client, suitable for utilizing the domain name that need to detect CDN server and local dns list acquisition
The IP address of CDN server detected is needed in CDN, the IP address of CDN server is uploaded to monitoring server;
The HTTP detects client, suitable for sending HTTP detection requests to the IP address, obtains examining for the HTTP
The response message of request is surveyed, and the response message is uploaded to monitoring server.
B8, the system according to claim B7, wherein, the monitoring server, suitable for obtaining institute from dns server
State local dns list.
B9, the system according to claim B7, wherein, the dns resolution client, suitable for being taken according to local dns
Local dns server is oriented in business device list, and the domain that current detection uses is chosen from the domain name that need to detect CDN server
Name;The domain name that the current detection uses is arranged in domain name mapping request, domain name mapping request is sent to orienting
Local dns server, so that domain name analysis request is sent to dns server by the local dns server;Reception passes through
The domain name mapping result of the dns server of local dns server forwarding;Obtain needing the CDN detected from the analysis result
The IP address of server.
B10, the system according to claim B7, wherein, the monitoring server, need to detect with described suitable for obtaining
The url list of the domain name association of CDN server;The IP address and url list are issued to each DNS client, so that HTTP
Detect URL of the client in url list and send HTTP detection requests to the IP address, and please be try to achieve by HTTP detections
To response message.
B11, the system according to claim B10, wherein, the HTTP detects client, suitable for from the URL column
URL to be detected is chosen in table;After the URL to be detected is arranged on into the HTTP detections request, being sent to the IP address should
HTTP detection requests, to access the URL to be detected under the IP address.
B12, the system according to claim B10, wherein, the monitoring server, it is suitable to
When being not received by the response message for HTTP detection requests, the CDN server abnormal state is determined;
When receive it is at least one for the HTTP detection request response message when, it is determined that the CDN server state is normal.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is to this specification(Including adjoint claim, summary and accompanying drawing)Disclosed in all features and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification(Including adjoint power
Profit requirement, summary and accompanying drawing)Disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor(DSP)To realize monitoring server according to embodiments of the present invention, HTTP detection visitors
The some or all functions of some or all parts in family end and dns resolution client.The present invention is also implemented as
For performing some or all equipment or program of device of method as described herein(For example, computer program and
Computer program product).Such program for realizing the present invention can store on a computer-readable medium, or can have
The form of one or more signal.Such signal can be downloaded from internet website and obtained, or on carrier signal
There is provided, or provided in the form of any other.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.