CN104811354B - A kind of methods, devices and systems for CDN health detections - Google Patents
A kind of methods, devices and systems for CDN health detections Download PDFInfo
- Publication number
- CN104811354B CN104811354B CN201510232331.2A CN201510232331A CN104811354B CN 104811354 B CN104811354 B CN 104811354B CN 201510232331 A CN201510232331 A CN 201510232331A CN 104811354 B CN104811354 B CN 104811354B
- Authority
- CN
- China
- Prior art keywords
- cdn
- data
- mobile terminal
- cdn node
- node
- 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.)
- Active
Links
Abstract
The invention discloses a kind of method for CDN health detections, including:After mobile terminal sends access request to CDN server and receives the CDN node information of CDN server feedback, the IP address of the CDN node is recorded;The IP address data of the CDN node and the facility information data of the mobile terminal are carried out assembled;Wherein, the facility information at least contains the positional information of the mobile terminal;Data after assembly are sent to server.The invention also discloses the device, server and system for CDN health detections.The health detection to CDN can be conveniently realized using the present invention.
Description
Technical field
The present invention relates to content distributing network technical field, and in particular to a kind of method, apparatus for CDN health detections
And system.
Background technology
With the continuous increase of network user group, the requirement more and more higher to websites response speed, in order to solve internet
Crowded situation, improve the response speed that user accesses website, CDN (Content Delivery Network, content delivery network
Network) technology arises at the historic moment.CDN forms one layer of intelligent virtual on existing internet by placing node server everywhere in network
Intend network, it is therefore an objective to by this layer of new network architecture, by the content of website be published to the immediate network of user " edge ",
User can obtain required content nearby, reach and alleviate network congestion, improve the purpose that user accesses websites response speed.When
Before, CDN health status how is quickly detected, that is, can detect CDN accurately return to the nodal information nearest from user, be
The problem of urgent need to resolve.
The content of the invention
In view of this, the present invention proposes a kind of methods, devices and systems for CDN health detections, utilizes mobile terminal
CDN information is collected, CDN health status can be tested and analyzed in real time.
The present invention provides a kind of method for CDN health detections, including:S101, sent out in mobile terminal to CDN server
After sending access request and receiving the CDN node information of CDN server feedback, the IP address of CDN node is recorded;S102, by institute
State the IP address data of CDN node and carry out assembly with the facility information data of the mobile terminal;Wherein, the facility information is extremely
Contain the positional information of the mobile terminal less;S103, the data after assembly are sent to server.
Preferably, wherein the positional information is IP address information or latitude and longitude information.
Preferably, wherein in S103, by the IP address data of the CDN node and the facility information of the mobile terminal
Data are assemblied into JSON formatted datas.
The present invention also provides a kind of method for CDN health detections, including:S201, receive the number from mobile terminal
According to;S202, the data received are disassembled, IP address and a movement of the data after disassembling at least containing a CDN node
The positional information of terminal;The CDN node for wherein disassembling to obtain is as the first CDN node;S203, based on all CDN nodes in CDN
Configuration information, select the CDN node nearest with the distance of mobile terminal from all CDN nodes;Wherein with it is described
The nearest CDN node of distance of mobile terminal is as the second CDN node;S204, the second CDN node and the first CDN node are carried out
Compare, if both are identical, the first CDN node is correct, if both are different, the first CDN node mistake.
Preferably, wherein the positional information is IP address information or latitude and longitude information.
Preferably, wherein in S201, the data from mobile terminal are JSON formatted datas.
The present invention also provides a kind of device for CDN health detections, including:Nodes records module, for mobile whole
Hold to CDN server send access request and receive CDN server feedback CDN node information after, record the CDN node
IP address;Data assembling module, for by the facility information number of the IP address data of the CDN node and the mobile terminal
It is assembled according to carrying out;Wherein, the facility information at least contains the positional information of the mobile terminal;Data transmission blocks, it is used for
Data after assembly are sent to server.
The present invention also provides a kind of server, including:Data reception module, for receiving the data from mobile terminal;
Data resolution module, for being disassembled to the data received, IP address of the data after disassembling at least containing a CDN node
With the positional information of a mobile terminal;The CDN node for wherein disassembling to obtain is as the first CDN node;Node analysis module, is used for
Based on the configuration information of all CDN nodes in CDN, selected from all CDN nodes nearest with the distance of mobile terminal
CDN node;Wherein the CDN node nearest with the distance of mobile terminal is as the second CDN node;Judging treatmenting module, use
In by the second CDN node, compared with the first CDN node, if both are identical, the first CDN node is correct, if both
Difference, then the first CDN node mistake.
The present invention also provides a kind of system for CDN health detections, including:Mobile terminal and server, and the shifting
There is the device for CDN health detections in dynamic terminal, the device for CDN health detections for mobile terminal to
After CDN server sends access request and receives the CDN node information of CDN server feedback, the IP of the CDN node is recorded
Address, the IP address data of the CDN node and the facility information data of the mobile terminal are subjected to assembly, after assembly
Data are sent to server, wherein the facility information at least contains the positional information of the mobile terminal;The server is used
In data of the reception from mobile terminal;The data received are disassembled, the data after disassembling at least contain a CDN node
IP address and a mobile terminal positional information;The CDN node for wherein disassembling to obtain is as the first CDN node;Based in CDN
The configuration information of all CDN nodes, the CDN node nearest with the distance of mobile terminal is selected from all CDN nodes;
Wherein the CDN node nearest with the distance of mobile terminal is as the second CDN node;By the second CDN node and the first CDN node
It is compared, if both are identical, the first CDN node is correct, if both are different, the first CDN node mistake.
Beneficial effect:It can be led to using embodiments of the invention on the premise of not influenceing user and normally accessing operation
CDN node information can easily be obtained by crossing mobile terminal, then the quality of node is judged, can the current CDN of real time inspection
Health status;When the mobile terminal number of investigation is enough, obtained CDN health status evaluations result can replace in the past
The a large amount of true main frame analog access test CDN health status of use process.
Brief description of the drawings
Fig. 1 is FB(flow block) of the method for CDN health detections in mobile terminal side of the embodiment of the present invention.
Fig. 2 is FB(flow block) of the method for CDN health detections in master server side of the embodiment of the present invention.
Fig. 3 is the structure drawing of device for CDN health detections of the embodiment of the present invention.
Fig. 4 is the server architecture figure for CDN health detections of the embodiment of the present invention.
Fig. 5 is the CDN health detection result schematic diagrams of the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment, technical scheme is described in detail.
User's browsing process based on CDN is briefly described first, approximately as:User desires access in operation terminal input
Website domain name, access request is addressed to CDN server, and CDN server first is based on DNS (Domain Name System, domain
Name system) agreement translated domain names into as IP address, CDN node that then will be most fast to this access request answer speed --- generally
It is the node nearest with the user distance, or considers the response time obtained after the factors such as distance, network load most
Short node --- IP address feed back to user, user obtains the backward CDN node of the IP address and sends access request, obtains
The content-data needed.Generally, mass data can be cached in CDN node, when user accesses the content-data stored,
Data can be supplied directly to user by CDN node, be rapidly completed response service;If access data do not store, CDN node to
Source server request data, user is available to, while stores data in local, when other users access identical data afterwards
Quick response can be provided.
Based on above-mentioned processing procedure, the present invention is received using intelligent mobile terminal (such as smart phones, tablets, wearable devices)
Collect " optimal CDN node " information of CDN server to user feedback, realized by the checking to " optimal CDN node " to CDN works
Make the health detection of state.
Fig. 1 shows process chart of the CDN health detecting methods in mobile terminal side of the embodiment of the present invention, including with
Lower step:
S101, send access request to CDN server in mobile terminal and receive the CDN node of CDN server feedback
After information, the IP address of the CDN node is recorded;
S102, the IP address data of the CDN node and the facility information data of the mobile terminal are carried out assembled;The equipment
The information at least positional information containing the mobile terminal;
S103, the data after assembly are sent to server.
Fig. 2 shows process chart of the CDN health detecting methods in server side of the embodiment of the present invention, including following
Step:
S201, receive the data from mobile terminal;
S202, the data received are disassembled, IP address and one of the data after disassembling at least containing a CDN node
The positional information of mobile terminal;Wherein using the CDN node for disassembling to obtain as the first CDN node;
S203, based on the configuration information of all CDN nodes in CDN, selected from all CDN nodes with the mobile terminal away from
From nearest CDN node;Wherein using the CDN node nearest with the distance of mobile terminal as the second CDN node;
S204, by the second CDN node compared with the first CDN node, if both are identical, the first CDN node is just
Really, if both are different, the first CDN node mistake.
Using above-described embodiment, can while user accesses website by browser of mobile terminal or application APP etc.,
Data are collected on backstage and further handled, so that the nodal information that CDN is returned is together with local device information
Server is sent to, whether is that optimal node judges to the node by server, can be to CDN health status based on this
Make evaluation.
The benefit so handled is, with the daily action triggers for sending access request of user to CDN node information,
Do not influence that on the premise of user normally accesses operation, CDN node information can be easily obtained by mobile terminal, then to section
The quality of point is judged.When the mobile terminal number of investigation is enough, obtained CDN health status evaluations result can generation
For the process of a large amount of true main frame analog access test CDN health status of conventional use.
In an embodiment of the present invention, the facility information of customer mobile terminal may include the operating system of mobile terminal, visitor
Installation version, IP address and/or the latitude and longitude information at family end etc..
Further, in step S104, CDN node information and mobile terminal device information can be assembled into such as JSON
Form, each attribute corresponding value when assembled.In certain embodiments of the present invention, following form can be used:
{“client”:“ios”,“clientVersion”:“3.7”,“osVersion”:“7”,“appName”:
“jph”,“clientIp”:“172.22.212.59”,“CDNIp”:" 172.22.212.59 " },
Wherein, client operating system ios, client release number are 3.7, and operating system version number is 7, app titles
For jph, client ip address 172.22.212.59, the CDN node IP address that server returns is 172.22.212.59.
On the other hand, it is possible to understand that corresponding to the assembled processing of data of mobile terminal, in step S202, server does number
It is that the data of such as JSON forms are parsed according to disassembling, by corresponding field storage into local data base, for subsequent step
Use.
In practical application scene, as the region (such as city) residing for the IP address of CDN node can obtain CDN node,
In certain embodiment, it is assumed that CDN is configured with 50 nodes altogether, wherein different nodes is located at different cities, then the CDN is shared
50 corresponding CDN node cities (assuming that including the cities such as Shanghai, Guangzhou, Tianjin);In addition, set according to the mobile terminal of user
Standby IP address, the city (it is assumed here that customer mobile terminal is located at Beijing) residing for the mobile terminal can also be known.
Then, each city in above-mentioned 50 node cities and Pekinese's geographic distance, 50 sections be can obtain
A city (be assumed to be Tianjin) nearest apart from Beijing in point city, then by the closest city and mobile terminal reporting
Node (i.e. CDN feeds back to the node of mobile terminal) where city contrasted, if both are identical, (i.e. CDN feeds back
CDN node is located at Tianjin), show that the CDN node meets optimal node condition, then current CDN health;If both difference (CDN
The CDN node of feedback is located at Shanghai or Guangzhou), it is not optimal node to show the CDN node, and current CDN is unhealthy.
More specifically, if the local IP longitudes pointed to and latitude information are reported to server by mobile terminal, upper
State in processing procedure, server can according to the IP of CDN node point to longitude and latitude, be calculated each CDN node with
The distance between mobile terminal, the most short CDN node of distance is optimal node, then by this node and the section of mobile terminal reporting
Point is contrasted, and can determine whether CDN is healthy.
It is possible to further be recorded to the real-time CDN health status in a period, CDN health status is calculated
Percentage.For example, it is assumed that 24 hours servers collect 100 parts of CDN assembly data from customer mobile terminal altogether,
After parsing, judgement processing through server, discovery has 80 parts of data to meet optimal node condition, and remaining 20 parts of data is unsatisfactory for most
Good node condition, then CDN health status percentage is 80%.
Checked for ease of operating personnel, percentage can be converted to diagrammatic form, cake chart as shown in Figure 5, intuitively
Ground shows current CDN health proportion.
With Fig. 1 embodiments accordingly, a kind of device 100 for CDN health detections can be designed, with reference to figure 3, it includes
With lower module:
Nodes records module 12, for sending access request to CDN server in mobile terminal and receiving CDN server
After the CDN node information of feedback, the IP address of the CDN node is recorded;
Data assembling module 14, for by the facility information data of the IP address data of the CDN node and the mobile terminal
Carry out assembled;The wherein facility information at least positional information containing the mobile terminal;
Data transmission blocks 16, for the data after assembly to be sent into server.
With Fig. 2 embodiments accordingly, can also design a kind of server 200, for CDN health detections, with reference to figure 4, its
Including with lower module:
Data reception module 20, for receiving the data from mobile terminal;
Data resolution module 22, for being disassembled to the data received, the data after disassembling at least save containing a CDN
The IP address of point and the positional information of a mobile terminal;Wherein using the CDN node for disassembling to obtain as the first CDN node;
Node analysis module 24, for the configuration information based on all CDN nodes in CDN, selected from all CDN nodes
The nearest CDN node with the distance of mobile terminal;Wherein using the CDN node nearest with the distance of mobile terminal as the 2nd CDN
Node;
Judging treatmenting module 26, for by the second CDN node compared with the first CDN node, if both are identical,
First CDN node is correct, if both are different, the first CDN node mistake.
According to the above, the present invention also provides a kind of system 300 for CDN health detections, and it includes mobile terminal
And server, and there is the device for CDN health detections in the mobile terminal, wherein,
The device for being used for CDN health detections is used to send access request to CDN server in mobile terminal and received
After the CDN node information of CDN server feedback, record the IP address of the CDN node, by the IP address data of the CDN node with
The facility information data of the mobile terminal carry out assembled, and the data after assembly are sent into server, and wherein the facility information is extremely
Few positional information containing the mobile terminal;
The server is used to receive the data from mobile terminal;The data received are disassembled, the number after disassembling
According to the IP address and the positional information of a mobile terminal at least containing a CDN node;The CDN node for wherein disassembling to obtain is as
One CDN node;Based on the configuration information of all CDN nodes in CDN, selected from all CDN nodes with the mobile terminal away from
From nearest CDN node;Wherein the CDN node nearest with the distance of mobile terminal is as the second CDN node;2nd CDN is saved
Point is compared with the first CDN node, if both are identical, the first CDN node is correct, if both are different, the first CDN
Node mistake.
More than, technical scheme is described in detail in conjunction with specific embodiments, described specific implementation
Example is used to help understand the thought of the present invention.The derivation that those skilled in the art make on the basis of the specific embodiment of the invention
Fallen within modification within the scope of the present invention.
Claims (13)
- A kind of 1. method for CDN health detections, it is characterised in that including:S101, send access request to CDN server in mobile terminal and receive the CDN node information of CDN server feedback Afterwards, the IP address of the CDN node is recorded;S102, the IP address data of the CDN node and the facility information data of the mobile terminal are carried out assembled;Wherein, The facility information at least contains the positional information of the mobile terminal;S103, the data after assembly are sent to server.
- 2. it is used for the method for CDN health detections as claimed in claim 1, it is characterised in that wherein, the positional information is IP Address information or latitude and longitude information.
- 3. it is used for the method for CDN health detections as claimed in claim 1, it is characterised in that wherein in S103, by described in The IP address data of CDN node are assemblied into JSON formatted datas with the facility information data of the mobile terminal.
- A kind of 4. method for CDN health detections, it is characterised in that including:S201, receive the data from mobile terminal;S202, the data received are disassembled, IP address and a movement of the data after disassembling at least containing a CDN node The positional information of terminal;The CDN node for wherein disassembling to obtain is as the first CDN node;S203, based on the configuration information of all CDN nodes in CDN, selected from all CDN nodes and the mobile terminal Closest CDN node;Wherein the CDN node nearest with the distance of mobile terminal is as the second CDN node;S204, by the second CDN node compared with the first CDN node, if both are identical, the first CDN node is correct, such as Both fruits difference, then the first CDN node mistake.
- 5. it is used for the method for CDN health detections as claimed in claim 4, it is characterised in that wherein, the positional information is IP Address information or latitude and longitude information.
- 6. it is used for the method for CDN health detections as claimed in claim 4, it is characterised in that described to come from wherein in S201 The data of mobile terminal are JSON formatted datas.
- A kind of 7. device for CDN health detections, it is characterised in that including:Nodes records module, for sending access request to CDN server in mobile terminal and receiving CDN server feedback After CDN node information, the IP address of the CDN node is recorded;Data assembling module, for the IP address data of the CDN node and the facility information data of the mobile terminal to be entered Row is assembled;Wherein, the facility information at least contains the positional information of the mobile terminal;Data transmission blocks, for the data after assembly to be sent into server.
- 8. it is used for the device of CDN health detections as claimed in claim 7, it is characterised in that wherein, the positional information is IP Address information or latitude and longitude information.
- 9. it is used for the device of CDN health detections as claimed in claim 7, it is characterised in that wherein, the data assembling module The facility information data of the IP address data of the CDN node and the mobile terminal are assemblied into JSON formatted datas.
- A kind of 10. server, it is characterised in that including:Data reception module, for receiving the data from mobile terminal;Data resolution module, for being disassembled to the data received, IP of the data after disassembling at least containing a CDN node Address and the positional information of a mobile terminal;The CDN node for wherein disassembling to obtain is as the first CDN node;Node analysis module, for the configuration information based on all CDN nodes in CDN, selected from all CDN nodes with The nearest CDN node of the distance of mobile terminal;Wherein the CDN node nearest with the distance of mobile terminal is as the 2nd CDN Node;Judging treatmenting module, for by the second CDN node compared with the first CDN node, if both are identical, first CDN node is correct, if both are different, the first CDN node mistake.
- 11. server as claimed in claim 10, it is characterised in that wherein, the positional information be IP address information or Latitude and longitude information.
- 12. server as claimed in claim 10, it is characterised in that wherein, the data from mobile terminal are JSON Formatted data.
- A kind of 13. system for CDN health detections, it is characterised in that including:Mobile terminal and server, and the movement There is the device for CDN health detections in terminal,The device for CDN health detections is used to send access request to CDN server in mobile terminal and receives CDN After the CDN node information of server feedback, record the IP address of the CDN node, by the IP address data of the CDN node with The facility information data of the mobile terminal carry out assembly, and the data after assembly are sent into server, wherein the equipment is believed Breath at least contains the positional information of the mobile terminal;The server is used to receive the data from mobile terminal;The data received are disassembled, the data after disassembling The positional information of IP address and a mobile terminal at least containing a CDN node;The CDN node for wherein disassembling to obtain is as first CDN node;Based on the configuration information of all CDN nodes in CDN, selected from all CDN nodes and the mobile terminal Closest CDN node;Wherein the CDN node nearest with the distance of mobile terminal is as the second CDN node;By second CDN node is compared with the first CDN node, if both are identical, the first CDN node is correct, if both are different, the One CDN node mistake.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510232331.2A CN104811354B (en) | 2015-05-08 | 2015-05-08 | A kind of methods, devices and systems for CDN health detections |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510232331.2A CN104811354B (en) | 2015-05-08 | 2015-05-08 | A kind of methods, devices and systems for CDN health detections |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104811354A CN104811354A (en) | 2015-07-29 |
CN104811354B true CN104811354B (en) | 2018-04-06 |
Family
ID=53695864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510232331.2A Active CN104811354B (en) | 2015-05-08 | 2015-05-08 | A kind of methods, devices and systems for CDN health detections |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104811354B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105933234A (en) * | 2016-04-20 | 2016-09-07 | 乐视控股(北京)有限公司 | Node management method and system in CDN network |
CN110855516B (en) * | 2019-10-15 | 2021-10-29 | 厦门美柚股份有限公司 | CDN quality detection system and method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1575582A (en) * | 2001-09-28 | 2005-02-02 | 塞维斯通讯公司 | Configurable adaptive global traffic control and management |
CN101410819A (en) * | 2005-12-30 | 2009-04-15 | 阿卡麦科技公司 | Reliable, high-throughput, high-performance transport and routing mechanism for arbitrary data flows |
CN102316091A (en) * | 2010-05-28 | 2012-01-11 | 丛林网络公司 | The application layer traffic optimization that is used for content distributing network strengthens |
CN104247340A (en) * | 2012-03-22 | 2014-12-24 | 阿卡麦科技公司 | Ethods and systems for performing message exchange accounting |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100088405A1 (en) * | 2008-10-08 | 2010-04-08 | Microsoft Corporation | Determining Network Delay and CDN Deployment |
-
2015
- 2015-05-08 CN CN201510232331.2A patent/CN104811354B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1575582A (en) * | 2001-09-28 | 2005-02-02 | 塞维斯通讯公司 | Configurable adaptive global traffic control and management |
CN101410819A (en) * | 2005-12-30 | 2009-04-15 | 阿卡麦科技公司 | Reliable, high-throughput, high-performance transport and routing mechanism for arbitrary data flows |
CN102316091A (en) * | 2010-05-28 | 2012-01-11 | 丛林网络公司 | The application layer traffic optimization that is used for content distributing network strengthens |
CN104247340A (en) * | 2012-03-22 | 2014-12-24 | 阿卡麦科技公司 | Ethods and systems for performing message exchange accounting |
Also Published As
Publication number | Publication date |
---|---|
CN104811354A (en) | 2015-07-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2018201459B2 (en) | System and method for improving access to search results | |
US8745128B2 (en) | Optimized content distribution based on metrics derived from the end user | |
KR101727602B1 (en) | Methods and apparatus to share online media impressions data | |
EP3522466A1 (en) | Dynamic scheduling and allocation method and system for network traffic | |
US9172632B2 (en) | Optimized content distribution based on metrics derived from the end user | |
US20120197856A1 (en) | Hierarchical Network for Collecting, Aggregating, Indexing, and Searching Sensor Data | |
CN102055815B (en) | System for acquiring local domain name analyses server of caller | |
JP2019512764A (en) | Method and apparatus for identifying the type of user geographical location | |
EP1982543B1 (en) | Performance monitoring of location-based service in a mobile telecommunications network | |
CN102761449A (en) | System, device and method for web service performance analysis | |
CN105072151A (en) | Content collaborative scheduling method and system for CDN | |
CN104301415A (en) | Global load balancing method based on HTTP redirection | |
CN103475749A (en) | Cross-domain communication method and device | |
CN106797327A (en) | Performed using the message being associated with adaptive bitrate streaming and the media of mobile platform are monitored | |
CN104394041A (en) | Access log generation method and device | |
CN108063832B (en) | Cloud storage system and storage method thereof | |
CN104811354B (en) | A kind of methods, devices and systems for CDN health detections | |
CN102035905B (en) | Method for obtaining visitor Local DNS (Local Domain-Name Server) | |
CN109818821B (en) | Detection method and device for CDN (content delivery network) architecture of website | |
CN103973819A (en) | Method, related device and system for responding to request for community domain name | |
WO2014166345A1 (en) | Method and system for presenting recommendation information | |
CN102200943B (en) | Method and equipment for automatically detecting CPU utilization rate based on background | |
CN111371570A (en) | Fault detection method and device for NFV network | |
CN105791043B (en) | A kind of business network service experience automatic Evaluation of Quality method and system | |
IL268670A (en) | Automatic server cluster discovery |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |