CN105634784B - Control data distributing method, apparatus and system - Google Patents

Control data distributing method, apparatus and system Download PDF

Info

Publication number
CN105634784B
CN105634784B CN201410643629.8A CN201410643629A CN105634784B CN 105634784 B CN105634784 B CN 105634784B CN 201410643629 A CN201410643629 A CN 201410643629A CN 105634784 B CN105634784 B CN 105634784B
Authority
CN
China
Prior art keywords
node
cdn
autonomous domain
nodes
main website
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
Application number
CN201410643629.8A
Other languages
Chinese (zh)
Other versions
CN105634784A (en
Inventor
牛秋霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410643629.8A priority Critical patent/CN105634784B/en
Publication of CN105634784A publication Critical patent/CN105634784A/en
Application granted granted Critical
Publication of CN105634784B publication Critical patent/CN105634784B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This application involves a kind of control data distributing method, apparatus and system, in content distributing network CDN system, which comprises CDN node in network other CDN nodes and the main website detect, obtain the detection result of the CDN node;According to the detection result, the network distance between the CDN node and other CDN nodes is calculated;Autonomous Domain grouping is carried out according to the network distance, forms the first Autonomous Domain;A CDN node is chosen from first Autonomous Domain and is used as host node, other nodes in first Autonomous Domain is from nodes;The host node reports the autonomous domain information of first Autonomous Domain to the main website;The control data that the main website is sent are received, and the control data distribution is given to the slave node of first Autonomous Domain;The control data sent from the host node of first Autonomous Domain to be received such as node.

Description

Control data distributing method, apparatus and system
Technical field
This application involves technical field of the computer network more particularly to a kind of control data distributing methods, apparatus and system.
Background technique
Content distributing network (Content Del ivery Network, CDN) is that node serve is placed everywhere in network The intelligent virtual network on existing Internet basic that device is constituted.CDN system can in real time according to network flow and The connection of each node, load state and the request of user is re-directed to the integrated informations such as the distance of user and response time On the node nearest from user.
For CDN system by being made of many server nodes, server node can be divided into source station (content server) and CDN section Point (content caching server, including 1 grade of cache, 2 grades of cache etc.).CDN system in addition to normal service server node it It outside, further include main website (control server).The main website of CDN system can provide the functions such as the configuration management of cache software, O&M Personnel can carry out system control, such as parsing, equipment initialization management, perform script etc. to CDN system by main website.
Each CDN node of CDN system is physically independent from each other, but has many associations again.CDN system The main website of system needs to issue the control data such as software configuration data and various message to CDN node.Market large-scale use at present CDN system not yet the network optimization is carried out between CDN node and between main website and CDN node, can have the disadvantage that 1) Control data distributing delay it is especially big, moreover, because the factors such as unstable networks cause these control data can not timely under It gives, or even can not successfully issue;2) some nodes can be because network causes node out of control the case where can not being connected to;3) one The equipment of computer room may be lacked because of a routing in router to be caused not connecting, and causes node out of control.
Summary of the invention
The purpose of the application is to provide a kind of control data distributing method, apparatus and system, solves the control of CDN system Data distributing is not prompt enough, or even can not issue, and may cause node problem out of control.
This application provides a kind of control data distributing methods, are used in content distributing network CDN system, the CDN system System includes main website and CDN node, which comprises
The CDN node in network other CDN nodes and the main website detect, obtain the CDN node Detection result, the detection result of the CDN node include link information between the CDN node and the main website and described Link information between CDN node and other CDN nodes;
According to the link information between the CDN node and other CDN nodes, calculates the CDN node and other CDN are saved Network distance between point;
Autonomous Domain grouping is carried out according to the network distance, forms the first Autonomous Domain;
According to the detection result of the CDN node, a CDN section is chosen according to pre-defined rule from first Autonomous Domain Point is used as host node, other nodes in first Autonomous Domain are from node;
The host node reports the autonomous domain information of first Autonomous Domain to the main website;The main website is received to send Control data, and by it is described control data distribution give first Autonomous Domain slave node;
The control data sent from the host node of first Autonomous Domain to be received such as node.
Another aspect, present invention also provides a kind of control data delivery devices, for content distributing network CDN system In CDN node, wherein the CDN system further includes main website, and described device includes:
Probe unit, for in network other CDN nodes and the main website detect, obtain the CDN node Detection result, the detection result of the CDN node includes the link information and institute between the CDN node and the main website State the link information between CDN node and other CDN nodes;
Computing unit, the link between the CDN node and other CDN nodes for being obtained according to the probe unit Information calculates the network distance between the CDN node and other CDN nodes;
Grouped element, the network distance for being calculated according to the computing unit carry out Autonomous Domain grouping, form the One Autonomous Domain;
Election unit, the detection result of the CDN node for being obtained according to the probe unit, certainly from described first It controls in domain and chooses a CDN node as host node according to pre-defined rule, other nodes in first Autonomous Domain is from sections Point;
First processing units are used for when the CDN node is the host node, by the Autonomous Domain of first Autonomous Domain Information is sent to the main website;The control data that the main website is sent are received by receiving unit, and pass through transmission unit for institute Control data distribution is stated to the slave node of first Autonomous Domain;
The second processing unit, for when the CDN node be it is described from node when, waiting is received by the receiving unit The control data that the host node of first Autonomous Domain is sent.
Another aspect, present invention also provides a kind of CDN system, the system comprises: main website and multiple CDN nodes;
The CDN node in network other CDN nodes and the main website detect, obtain the CDN node Detection result, the detection result of the CDN node include link information between the CDN node and the main website and described Link information between CDN node and other CDN nodes;
The CDN node calculates the CDN node according to the link information between the CDN node and other CDN nodes With the network distance between other CDN nodes;
The CDN node carries out Autonomous Domain grouping according to the network distance, forms the first Autonomous Domain;
The CDN node is selected from first Autonomous Domain according to pre-defined rule according to the detection result of the CDN node Take a CDN node as host node, other nodes in first Autonomous Domain are from node;
The main website receives the autonomous domain information that the host node of first Autonomous Domain is reported;
The main website sends control data to the host node of first Autonomous Domain;
The control data distribution is given the slave node of first Autonomous Domain by the host node.
Control data distributing method provided by the present application, apparatus and system carry out the automatic of Autonomous Domain to CDN node and draw Point, the control data distribution chosen the host node of Autonomous Domain, and sent main website by the host node of Autonomous Domain, can to from node To reduce via net loss, control data are effectively issued in time, avoid that node situation out of control can not be communicated to due to network.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those of ordinary skill in the art, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of structural schematic diagram of CDN system provided by the embodiments of the present application;
Fig. 2 is a kind of control data distributing method flow chart provided by the embodiments of the present application;
Fig. 3 is a kind of control data delivery device schematic diagram provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of CDN system provided by the embodiments of the present application.
Specific embodiment
To enable present invention purpose, feature, advantage more obvious and understandable, below in conjunction with the application Attached drawing in embodiment, technical solutions in the embodiments of the present application are described, it is clear that described embodiment is only this Application a part of the embodiment, and not all embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not having Every other embodiment obtained under the premise of creative work is made, shall fall in the protection scope of this application.
Control data distributing method provided by the embodiments of the present application, apparatus and system, the control suitable for various CDN systems Data dissemination process, especially in it not can guarantee the CDN system that all CDN nodes are communicated with the link of main website, for example, far The unstable system etc. of CDN system, the link-quality of distance.
Fig. 1 is a kind of structural schematic diagram of CDN system provided by the embodiments of the present application, as shown in Figure 1, the CDN system It include: main website 1, CDN node 2 and source station 3.User requests required resource by CDN node 2, and CDN node 2 is receiving After the request of user, goes to obtain specific content to corresponding source station 3 and return to user.Main website 1 to CDN node 2 for issuing Software configuration data and various message etc. control data, to monitor the CDN node 2 of CDN system.For example, the picture in source station 3 When wanting expired, main website 1 can send data (picture) expired instruction message to CDN node 2, due to either picture or its The resource of his type is all with a specific uniform resource identifier (Uniform Resource in CDN node 2 Locator, URL) form storage, thus, which can be labeled as corresponding URL in CDN node 2 expired Pair state, and subsequent when user accesses this URL resource again, CDN node 2 will go in source station 3 to reacquire resource, i.e., The URL answered, and new resource is cached, expired data are deleted, in this way it is avoided that getting expired picture.
Fig. 2 is control data distributing method flow chart provided in this embodiment, as shown in Fig. 2, the control data of the application Distribution method includes:
S101, CDN node in network other CDN nodes and the main website detect, obtain the CDN node Detection result.
The detection result of the CDN node includes link information between the CDN node and the main website and described Link information between CDN node and other CDN nodes.
Link information between the CDN node and the main website can include but is not limited to it is one of set forth below or Any combination: network delay, the CDN node between the CDN node and the main website and network biography between the main website Network speed between defeated packet loss and the CDN node and the main website or other CDN nodes.
Link information between the CDN node and other CDN nodes includes one of set forth below or any combination: Network response delay, the CDN node between the CDN node and other CDN nodes and network biography between other CDN nodes Network speed between defeated packet loss and the CDN node and other CDN nodes.
Specifically, a software can be all installed on CDN node and main website, after software starting, node can be visited Every other node is surveyed, corresponding link information is obtained.
S102, according to the link information between the CDN node and other CDN nodes, calculate the CDN node and other Network distance between CDN node.
The network distance is calculated according to information such as network delay, packet loss, network speeds in detection result A weight is obtained, to indicate the link connection situation between two nodes.Network distance is smaller, represent the two nodes it Between link connection situation it is better.If the link between two nodes is obstructed, by the network distance between the two nodes It is set as maximum value.
Certainly, when calculating network distance, it can be combined with other information, for example whether cross operator etc., carries out weight Calculating.
S103, Autonomous Domain grouping is carried out according to the network distance, forms the first Autonomous Domain.
Specifically, by with the network distance of the CDN node be less than preset threshold other CDN nodes be determined as with it is described CDN node is in the same Autonomous Domain, forms the first Autonomous Domain.
Preset threshold can be configured according to practical application scene or previous experiences.Network distance is in preset threshold range It is interior, it is believed that the link circuit condition between the two nodes is good, these nodes are formed an Autonomous Domain, it is same from It controls in domain, it is believed that Network status is good.
S104, according to the detection result of the CDN node, from first Autonomous Domain according to pre-defined rule choose one For CDN node as host node, other nodes in first Autonomous Domain are from node.If the CDN node is chosen as institute Host node is stated, then enters step S105, if the CDN node is described from node, enters step S106.
According to the detection result of the CDN node, a CDN section is chosen according to pre-defined rule from first Autonomous Domain Point is used as host node, other nodes in first Autonomous Domain are to specifically include: from node according to the CDN node and its The link information between link information and the CDN node and the main website between his CDN node, it is autonomous from described first A CDN node, which is chosen, according to pre-defined rule in domain is used as main (master) node, other nodes in first Autonomous Domain For from (slave) node.
The pre-defined rule is to weigh the rule set after each Consideration in advance, may include each Consideration The weight distribution of priority or each Consideration can be specifically adjusted according to the difference of actual use scene. For example, the factor of consideration may include: (1) in this Autonomous Domain and the link of other CDN nodes is good in some scene, than Such as, the sum of the CDN node and the network distance of other CDN nodes are minimum;(2) link of node and main website is good, or passes through it The link that his Autonomous Domain jumps to main website is good, for example, the network distance of the CDN node and main website is minimum;(3) load of node It is low, for example, load is no more than 80%.So, in this scene, so that it may determine each CDN according to above-mentioned Consideration Result is chosen in the ballot of node.
For example, there are 10 CDN nodes in an Autonomous Domain, during election, each CDN node is opened in ballot When the beginning, oneself may be chosen first as main node, then broadcast pre-selection to other CDN nodes as a result, in broadcast pre-selection knot During fruit to other CDN nodes send information include: (1) this node Yu other CDN nodes the sum of network distance; (2) network distance of this node and main website;And the load information of (3) this node.Each CDN node is receiving other CDN After the information that node is sent, the selection result of oneself is adjusted.It, can be with for example, after node A receives the pre-selection result of node B The sum of node B and the network distance of other CDN nodes, the load information of node B etc. are got, if the network distance of node B The sum of less than node A, moreover, the load of node B is no more than 80%, then node A will choose node B as host node.Similarly, Other nodes in the Autonomous Domain also will do it corresponding adjustment, if the case where node B, is best, the throwing that node B is obtained A possibility that a possibility that poll is most are bigger, are elected to host node is also bigger.Finally, according to 10 CDN nodes in Autonomous Domain Voting results determine host node.
A host node is elected in each Autonomous Domain, other nodes are from node.Each Autonomous Domain passes through host node It is communicated with main website, can be communicated also by host node between Autonomous Domain.
Optionally, the detection result for the CDN node that step S101 is obtained further includes the load letter of other CDN nodes Breath.
When choosing host node, can also be carried out according to the load information of CDN node and the load information of other CDN nodes It chooses, for example, the load of other nodes and the load of this node can be compared, if the duty factor of this node is heavier, This node will not be chosen as host node.
That is, the detection result according to the CDN node, chooses one according to pre-defined rule from first Autonomous Domain For a CDN node as host node, other nodes in first Autonomous Domain are to specifically include from node: being saved according to the CDN Link information between point and other CDN nodes, the link information between the CDN node and the main website, the CDN node Load information, and, the load information of other CDN nodes is chosen from first Autonomous Domain according to pre-defined rule For one CDN node as host node, other nodes in first Autonomous Domain are from node.
It should be noted that considering it if current CDN node is communicated with the link between the main website The load information of his CDN node can only consider other CDN nodes in this Autonomous Domain.If this CDN node and the main website Between link it is obstructed, then, when considering the load information of other CDN nodes, need to consider the CDN of other Autonomous Domains Node can only consider the CDN node of other host nodes.
The selection process of this host node can be generated by each node vote by ballot in an Autonomous Domain.
S105, the autonomous domain information of first Autonomous Domain is sent to the main website, receives the control that the main website is sent Data processed, and by the control data distribution to the slave node of first Autonomous Domain.
The Autonomous Domain information of first Autonomous Domain includes: the node listing and the host node of first Autonomous Domain Detection result.Host node can only report the detection result of oneself, and for the detection result of the slave node in Autonomous Domain, it is Saving network flow, can be without reporting.
S106, etc. first Autonomous Domain to be received host node send control data.
During actual CDN system service operation, main website may require to configure to all CDN nodes are synchronous at any time. After forming Autonomous Domain, main website only needs configuration information to be issued to the host node of each Autonomous Domain, in Autonomous Domain from Node then goes host node to take content, can reduce via net loss in this way.The host node of all Autonomous Domains gathers, and group At a node cluster.
Although network losses can be reduced to by way of forwarding control data from node host node, also not It can guarantee that all host nodes can be connected to main website.It cannot be with the main website in Hangzhou for example, the host node in the U.S. is possible Normal communication.
Therefore, the autonomous domain information of first Autonomous Domain is reported to the main website, may include: directly by described The autonomous domain information of one Autonomous Domain is sent to the main website;Alternatively, the autonomous domain information of first Autonomous Domain is sent to The host node of two Autonomous Domains, to be transmitted to the main website by the host node of second Autonomous Domain.
In this way, when the host node of an Autonomous Domain can not directly be communicated with main website, the host node of the Autonomous Domain can also be with Using the host node of other Autonomous Domains as agency, communicated by way of the forwarding of the host node of other Autonomous Domains with main website, Receive the control data of main website.For example, may be selected by between the host node in the U.S. and the host node in Hangzhou main by others Node is communicated after being used as agency.
After being formed and including host node and Autonomous Domain from node, main website and host node or from the link between node It is formed, two-way communication can be carried out.On the one hand, main website can issue control data to from node by host node.Another party Face, can also be by host node to main website report data from node.
For example, carrying out phase according to the control data after the slave node in Autonomous Domain receives the control data that main website is sent The operation answered then can also be by the host node in Autonomous Domain to main website report data.For example, the control number that main website is sent According to being that CDN node is allowed to delete a URL, after CDN node completes delete operation, CDN node can also be by host node to master Report of standing has deleted the message of corresponding URL.
Optionally, control data distributing method provided by the embodiments of the present application further include: periodically to the institute in the network It states main website and other CDN nodes is detected again, update the detection result of the CDN node, update the network distance, from And adjust first Autonomous Domain.Regularly interval time can be set according to actual use situation, for example, one day or one Week etc..
Optionally, it after S103 forms the first Autonomous Domain, is also possible to have newly-increased CDN section in first Autonomous Domain Point or the CDN node deleted.
When receiving the message for increasing CDN node in first Autonomous Domain newly, if current CDN node is main section Point updates the node listing of first Autonomous Domain.If current CDN node can not be dealt with from node, until fixed Come temporarily at the time of phase updates, then is grouped again after being detected to other nodes in network.
When receiving the message for deleting CDN node in first Autonomous Domain, if current CDN node is main section Point then updates the node listing of first Autonomous Domain.If current CDN node be from node, judge the deletion Node whether be the host node of first Autonomous Domain, if so, choosing CDN section again from first Autonomous Domain Point be used as host node, alternatively, in the network the main website and other CDN nodes detected again, update the CDN The detection result of node, and the network distance is recalculated, re-start Autonomous Domain grouping.If the node of the deletion be from Node can not then be dealt with, then can be detected to other nodes in network with until coming interim at the time of regularly updating It is grouped again afterwards.
Specifically, it is reported to the main website (based on i.e. current CDN node by the autonomous domain information of first Autonomous Domain Node) after, further includes: when receive increased newly in first Autonomous Domain or delete the message of CDN node when, update described the The node listing of one Autonomous Domain.
Alternatively, control data (the i.e. current CDN node of the host node transmission in first Autonomous Domain to be received such as described For from node) after, further includes: when receiving the message for deleting CDN node in first Autonomous Domain, judge the deletion Node whether be the host node of first Autonomous Domain, if so, choosing CDN section again from first Autonomous Domain Point be used as host node, alternatively, in the network the main website and other CDN nodes detected again, update the CDN The detection result of node, and the network distance is recalculated, re-start Autonomous Domain grouping.
In this way, by being regularly grouped in real time or automatically to Autonomous Domain, by the host node in Autonomous Domain to from section The control data of point distribution main website, network caused by unstable networks, which can be effectively avoided, can not be connected to and cause to control data It can not issue, even result in node problem out of control.
Control data distributing method provided by the embodiments of the present application distributes control to from node by the host node in Autonomous Domain Data processed, main website only need to transmit control data to the host node in Autonomous Domain, can reduce the network pressure of main website;And And network quality is preferably convenient for transmitting in the same Autonomous Domain, it is possible to reduce network consumption;In addition, in CDN node and main website Link it is obstructed when, the control data of main website can also be obtained from the host node in corresponding Autonomous Domain, alternatively, the main section of Autonomous Domain When point is obstructed with the link of main website, it can also be forwarded to obtain the control data of main website, be kept away by the host node of other Autonomous Domains The problem of can not issuing is exempted from.
It is to the detailed description that control data distributing method carries out provided by the embodiment of the present application, below to this Shen above The control data delivery device and system that please be provided are described in detail.
Accordingly with Fig. 2, Fig. 3 is a kind of control data delivery device schematic diagram provided by the embodiments of the present application, the device It can be used in the CDN node of CDN system, as shown in figure 3, described device includes: probe unit 301, computing unit 302, grouping Unit 303, election unit 304, first processing units 305, the second processing unit 306, receiving unit 307 and transmission unit 308.
Probe unit 301 be used for in network the main website and other CDN nodes detect, obtain CDN section The detection result of point.
The detection result of the CDN node includes link information between the CDN node and the main website and described Link information between CDN node and other CDN nodes.
Wherein, the link information between the CDN node and the main website includes one of set forth below or any knot It closes: network response delay, the CDN node between the CDN node and the main website and network transmission between the main website Packet loss and the CDN node and the main website between network speed.
Link information between the CDN node and other CDN nodes includes one of set forth below or any combination: Network response delay, the CDN node between the CDN node and other CDN nodes and network biography between other CDN nodes Network speed between defeated packet loss and the CDN node and other CDN nodes.
The chain between the CDN node and other CDN nodes that computing unit 302 is used to be obtained according to probe unit 301 Road information calculates the network distance between the CDN node and other CDN nodes.
The network distance that grouped element 303 is used to be calculated according to computing unit 302 carries out Autonomous Domain grouping, formation the One Autonomous Domain.
Specifically, grouped element 303 will be less than other CDN nodes of preset threshold with the network distance of the CDN node It is determined as being in the same Autonomous Domain with the CDN node, forms the first Autonomous Domain.
The detection result for the CDN node that election unit 304 is used to be obtained according to probe unit 301, from described first Choose a CDN node according to pre-defined rule in Autonomous Domain and be used as host node, other nodes in first Autonomous Domain for from Node.
First processing units 305 are used for when the CDN node is the host node, by the autonomy of first Autonomous Domain Domain information is sent to the main website;The control data that the main website is sent are received by receiving unit 307, and pass through transmission unit 308 give the control data distribution the slave node of first Autonomous Domain.
The Autonomous Domain information of first Autonomous Domain includes: the node listing and the host node of first Autonomous Domain Detection result.
The second processing unit 306 be used for when the CDN node be it is described from node when, wait and being connect by receiving unit 307 Receive the control data that the host node of first Autonomous Domain is sent.
Optionally, the detection result for the CDN node that probe unit 301 obtains further includes other CDN nodes Load information.Unit 304 is elected to be specifically used for according to the link information between the CDN node and other CDN nodes, it is described Link information between CDN node and the main website, the load information of the CDN node, and, other CDN nodes Load information chooses a CDN node as host node, first autonomy according to pre-defined rule from first Autonomous Domain Other nodes in domain are from node.
Optionally, first processing units 305 are used to pass through transmission unit 308 for the autonomous domain information of first Autonomous Domain It reports to the main website, may include:
The autonomous domain information of first Autonomous Domain is directly sent to by transmission unit 308 by first processing units 305 The main website;Alternatively, first processing units 305 are sent the autonomous domain information of first Autonomous Domain by transmission unit 308 To the host node of the second Autonomous Domain, to be transmitted to the main website by the host node of second Autonomous Domain.
Optionally, control data delivery device provided by the embodiments of the present application may include:
Unit is regularly updated, for periodically starting probe unit 301 to the main website and other CDN section in the network Point is detected again, is updated the detection result of the CDN node, is updated the network distance by computing unit 302, thus First Autonomous Domain is adjusted using grouped element 303.
Optionally, first processing units 305 be also used to when receiving unit 307 receive in first Autonomous Domain increase newly or When deleting the message of CDN node, the node listing of first Autonomous Domain is updated.
Optionally, the second processing unit 306 is also used to delete in first Autonomous Domain when receiving unit 307 receives When the message of CDN node, judge whether the node of the deletion is the host node of first Autonomous Domain, if so, utilizing choosing It lifts unit 304 and chooses a CDN node again from first Autonomous Domain as host node, alternatively, restarting detection is single The main website and other CDN nodes in first 301 pairs of networks are detected again, update the detection knot of the CDN node Fruit, and the network distance is recalculated using computing unit 302, and re-start Autonomous Domain point using grouped element 303 Group.
The function of above-mentioned each unit can correspond to the processing step of the above-mentioned control data distributing method of Fig. 2 detailed description, It is repeated no more in this.
Fig. 4 is a kind of CDN system provided by the embodiments of the present application, as shown in figure 4, the system includes: main website 401 and multiple CDN node (CDN node 402, CDN node 403 etc.).
Specifically, may include following treatment process:
CDN node 402 in network main website 401 and other CDN nodes 403 detect, obtain CDN node 402 Detection result.The detection result of CDN node 402 includes the link information and CDN node between CDN node 402 and main website 401 Link information between 402 and other CDN nodes 403.
CDN node 402 calculates CDN section according to the link information between the CDN node 402 and other CDN nodes 403 Network distance between point 402 and other CDN nodes 403.
CDN node 402 carries out Autonomous Domain grouping according to the network distance, forms the first Autonomous Domain.402 institute of CDN node The first Autonomous Domain may include CDN node 403, it is also possible to do not include.
CDN node 402 is selected from first Autonomous Domain according to pre-defined rule according to the detection result of the CDN node Take a CDN node as host node, other nodes in first Autonomous Domain are from node.
Main website 401 receives the autonomous domain information that the host node of the first Autonomous Domain is reported.
Main website sends control data to the host node of the first Autonomous Domain.
The control data distribution is given the slave node of first Autonomous Domain by the host node of the first Autonomous Domain.
The concrete function of above-mentioned CDN node can correspond to the place for the above-mentioned control data distributing method being described in detail in Fig. 2 The function of controlling data delivery device described in step or Fig. 3 is managed, is repeated no more in this.
Control data distributing method provided by the present application, apparatus and system, by the host node in Autonomous Domain to from node Distribution control data, main website only need to transmit control data to the host node in Autonomous Domain, can reduce the network pressure of main website Power;Moreover, network quality is preferably convenient for transmitting in the same Autonomous Domain, it is possible to reduce network consumption;In addition, in CDN node When obstructed with the link of main website, the control data of main website can also be obtained from the host node in corresponding Autonomous Domain, alternatively, Autonomous Domain Host node it is obstructed with the link of main website when, can also be forwarded by the host node of other Autonomous Domains to obtain the control number of main website According to avoiding the problem of can not issuing.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description. These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution. Professional technician can use different methods to achieve the described function each specific application, but this realization It is not considered that exceeding scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can be executed with hardware, processor The combination of software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Above-described specific embodiment has carried out further the purpose of the application, technical scheme and beneficial effects It is described in detail, it should be understood that being not used to limit the application the foregoing is merely the specific embodiment of the application Protection scope, within the spirit and principles of this application, any modification, equivalent substitution, improvement and etc. done should all include Within the scope of protection of this application.

Claims (19)

1. a kind of control data distributing method, which is characterized in that be used in content distributing network CDN system, the CDN system packet Include main website and CDN node, which comprises
The CDN node in network other CDN nodes and the main website detect, obtain the detection of the CDN node As a result, the detection result of the CDN node includes the link information and the CDN between the CDN node and the main website Link information between node and other CDN nodes;
According to the link information between the CDN node and other CDN nodes, calculate the CDN node and other CDN nodes it Between network distance;The network distance indicates the link connection situation between two nodes;
Autonomous Domain grouping is carried out according to the network distance, forms the first Autonomous Domain;
According to the detection result of the CDN node, a CDN node is chosen according to pre-defined rule from first Autonomous Domain and is made For host node, other nodes in first Autonomous Domain are from node;
The host node reports the autonomous domain information of first Autonomous Domain to the main website;Receive the control that the main website is sent Data processed, and by the control data distribution to the slave node of first Autonomous Domain;
The control data sent from the host node of first Autonomous Domain to be received such as node.
2. the method according to claim 1, wherein the link information between the CDN node and the main website Including one of set forth below or any combination: the network response between the CDN node and the main website is delayed, is described Network speed between CDN node and the main website between the packet loss of network transmission and the CDN node and the main website;
Link information between the CDN node and other CDN nodes includes one of set forth below or any combination: described Network response delay, the CDN node between CDN node and other CDN nodes and network transmission between other CDN nodes Network speed between packet loss and the CDN node and other CDN nodes.
3. the method according to claim 1, wherein it is described according to the network distance carry out Autonomous Domain grouping, It specifically includes:
Other CDN nodes for being less than preset threshold with the network distance of the CDN node are determined as being in the CDN node In the same Autonomous Domain.
4. the method according to claim 1, wherein the detection result of the CDN node further include it is described other The load information of CDN node;
The detection result according to the CDN node chooses a CDN section according to pre-defined rule from first Autonomous Domain Point is used as host node, other nodes in first Autonomous Domain are to specifically include from node:
Chain according to the link information between the CDN node and other CDN nodes, between the CDN node and the main website Road information, the load information of the CDN node, and, the load information of other CDN nodes, from first Autonomous Domain In choose a CDN node according to pre-defined rule and be used as host node, other nodes in first Autonomous Domain is from nodes.
5. the method according to claim 1, wherein the autonomous domain information by first Autonomous Domain is reported To the main website, specifically include:
The autonomous domain information of first Autonomous Domain is directly sent to the main website;
Alternatively, the autonomous domain information of first Autonomous Domain to be sent to the host node of the second Autonomous Domain, to pass through described second The host node of Autonomous Domain is transmitted to the main website.
6. the method according to claim 1, wherein the method also includes:
Periodically in the network the main website and other CDN nodes detected again, update the detection of the CDN node As a result, the network distance is updated, so as to adjust first Autonomous Domain.
7. the method according to claim 1, wherein the Autonomous Domain information of first Autonomous Domain includes: described The detection result of the node listing of first Autonomous Domain and the host node.
8. the method according to the description of claim 7 is characterized in that by the autonomous domain information of first Autonomous Domain report to After the main website, further includes:
When receiving message that is newly-increased or deleting CDN node in first Autonomous Domain, the section of first Autonomous Domain is updated Point list.
9. the method according to claim 1, wherein in the host node of first Autonomous Domain to be received such as described After the control data of transmission, further includes:
When receiving the message for deleting CDN node in first Autonomous Domain, judge whether the node of the deletion is described The host node of first Autonomous Domain, if so, a CDN node is chosen again from first Autonomous Domain as host node, or Person, in the network the main website and other CDN nodes detected again, update the detection result of the CDN node, And the network distance is recalculated, re-start Autonomous Domain grouping.
10. a kind of control data delivery device, which is characterized in that in the CDN node for content distributing network CDN system, In, the CDN system further includes main website, and described device includes:
Probe unit, for in network other CDN nodes and the main website detect, obtain the spy of the CDN node It surveys as a result, the detection result of the CDN node includes link information between the CDN node and the main website and described Link information between CDN node and other CDN nodes;
Computing unit, the link letter between the CDN node and other CDN nodes for being obtained according to the probe unit Breath, calculates the network distance between the CDN node and other CDN nodes;The network distance indicates between two nodes Link connection situation;
Grouped element, the network distance for being calculated according to the computing unit carry out Autonomous Domain grouping, form first certainly Control domain;
Elect unit, the detection result of the CDN node for obtaining according to the probe unit, from first Autonomous Domain In choose a CDN node according to pre-defined rule and be used as host node, other nodes in first Autonomous Domain is from nodes;
First processing units are used for when the CDN node is the host node, by the autonomous domain information of first Autonomous Domain It is sent to the main website;The control data that the main website is sent are received by receiving unit, and pass through transmission unit for the control Data distribution processed gives the slave node of first Autonomous Domain;
The second processing unit, for when the CDN node be it is described from node when, wait described in being received by the receiving unit The control data that the host node of first Autonomous Domain is sent.
11. device according to claim 10, which is characterized in that the link letter between the CDN node and the main website Breath includes one of set forth below or any combination: the network response between the CDN node and the main website is delayed, is described Network speed between CDN node and the main website between the packet loss of network transmission and the CDN node and the main website;
Link information between the CDN node and other CDN nodes includes one of set forth below or any combination: described Network response delay, the CDN node between CDN node and other CDN nodes and network transmission between other CDN nodes Network speed between packet loss and the CDN node and other CDN nodes.
12. device according to claim 10, which is characterized in that the grouped element be used for by with the CDN node Other CDN nodes that network distance is less than preset threshold are determined as being in the same Autonomous Domain with the CDN node.
13. device according to claim 10, which is characterized in that the spy for the CDN node that the probe unit obtains Survey the load information that result further includes other CDN nodes;
The election unit is specifically used for according to the link information between the CDN node and other CDN nodes, the CDN section Link information between point and the main website, the load information of the CDN node, and, the load letter of other CDN nodes Breath chooses a CDN node as host node, in first Autonomous Domain according to pre-defined rule from first Autonomous Domain Other nodes are from node.
14. device according to claim 10, which is characterized in that the first processing units are used for single by the transmission Member reports the autonomous domain information of first Autonomous Domain to the main website, comprising:
The first processing units directly pass through the transmission unit and the autonomous domain information of first Autonomous Domain are sent to institute State main website;
Alternatively, the autonomous domain information of first Autonomous Domain is sent to by the transmission unit by the first processing units The host node of two Autonomous Domains, to be transmitted to the main website by the host node of second Autonomous Domain.
15. device according to claim 10, which is characterized in that described device further include:
Unit is regularly updated, for periodically starting the probe unit to the main website and other CDN nodes in the network Again it is detected, updates the detection result of the CDN node, the network distance is updated by the computing unit, thus First Autonomous Domain is adjusted using the grouped element.
16. device according to claim 10, which is characterized in that the Autonomous Domain information of first Autonomous Domain includes: institute State the node listing of the first Autonomous Domain and the detection result of the host node.
17. device according to claim 16, which is characterized in that the first processing units are also used to when the reception is single When member receives message that is newly-increased or deleting CDN node in first Autonomous Domain, the node column of first Autonomous Domain are updated Table.
18. device according to claim 10, which is characterized in that described the second processing unit is also used to when the reception is single When member receives the message for deleting CDN node in first Autonomous Domain, judge whether the node of the deletion is described first The host node of Autonomous Domain is made if so, being chosen a CDN node again from first Autonomous Domain using the election unit For host node, alternatively, restart the probe unit in the network the main website and other CDN nodes carry out again Detection, updates the detection result of the CDN node, and recalculate the network distance, Yi Jili using the computing unit Autonomous Domain grouping is re-started with the grouped element.
19. a kind of content distributing network CDN system, which is characterized in that including main website and multiple CDN nodes;
The CDN node in network other CDN nodes and the main website detect, obtain the detection of the CDN node As a result, the detection result of the CDN node includes the link information and the CDN between the CDN node and the main website Link information between node and other CDN nodes;
The CDN node calculates the CDN node and its according to the link information between the CDN node and other CDN nodes Network distance between his CDN node;The network distance indicates the link connection situation between two nodes;
The CDN node carries out Autonomous Domain grouping according to the network distance, forms the first Autonomous Domain;
The CDN node chooses one according to pre-defined rule from first Autonomous Domain according to the detection result of the CDN node For a CDN node as host node, other nodes in first Autonomous Domain are from node;
The main website receives the autonomous domain information that the host node of first Autonomous Domain is reported;
The main website sends control data to the host node of first Autonomous Domain;
The control data distribution is given the slave node of first Autonomous Domain by the host node.
CN201410643629.8A 2014-11-06 2014-11-06 Control data distributing method, apparatus and system Active CN105634784B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410643629.8A CN105634784B (en) 2014-11-06 2014-11-06 Control data distributing method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410643629.8A CN105634784B (en) 2014-11-06 2014-11-06 Control data distributing method, apparatus and system

Publications (2)

Publication Number Publication Date
CN105634784A CN105634784A (en) 2016-06-01
CN105634784B true CN105634784B (en) 2019-02-05

Family

ID=56049323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410643629.8A Active CN105634784B (en) 2014-11-06 2014-11-06 Control data distributing method, apparatus and system

Country Status (1)

Country Link
CN (1) CN105634784B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107517162B (en) * 2016-06-17 2020-09-04 阿里巴巴集团控股有限公司 CDN cache server determination method and device
CN111541796B (en) * 2016-09-20 2023-04-18 贵州白山云科技股份有限公司 CDN access flow scheduling method, device, communication system and storage medium
CN108123987A (en) * 2016-11-30 2018-06-05 华为技术有限公司 The method and device of master scheduler is determined from cloud computing system
CN107707379B (en) * 2017-06-29 2019-04-02 贵州白山云科技股份有限公司 A kind of CDN covering scheme generation method and device
CN107707378B (en) * 2017-06-29 2018-11-13 贵州白山云科技有限公司 A kind of CDN covering scheme generation method and device
CN107579860A (en) * 2017-09-29 2018-01-12 新华三技术有限公司 Node electoral machinery and device
CN108234247B (en) * 2018-01-25 2020-06-23 网宿科技股份有限公司 Method and system for detecting network quality
CN108494820B (en) * 2018-02-12 2020-04-14 厦门白山耘科技有限公司 Data processing method and system
CN109660624B (en) * 2018-12-26 2022-05-17 网宿科技股份有限公司 Planning method, server and storage medium for content distribution network resources
CN109688031B (en) * 2019-03-04 2020-11-03 腾讯科技(深圳)有限公司 Network monitoring method and related equipment
CN110191007B (en) * 2019-06-27 2022-05-03 广州虎牙科技有限公司 Node management method, system and computer readable storage medium
US11706076B2 (en) 2020-01-23 2023-07-18 Novnet Computing System Tech Co., Ltd. Computer system with computing devices, communication device, task processing device
CN110932920B (en) * 2020-01-23 2021-02-02 飞诺门阵(北京)科技有限公司 Network topology structure
CN113542135B (en) * 2021-08-04 2023-04-07 湖南快乐阳光互动娱乐传媒有限公司 CDN communication method, system, client and server
CN114630402A (en) * 2021-11-23 2022-06-14 杭州安脉盛智能技术有限公司 Wireless sensor data synchronous acquisition system and method
CN114520784B (en) * 2021-12-24 2023-10-10 天翼云科技有限公司 Dynamic content acceleration access method and device
WO2023236792A1 (en) * 2022-06-10 2023-12-14 华为技术有限公司 Communication method and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741731A (en) * 2009-12-03 2010-06-16 中兴通讯股份有限公司 Content metadata storing, inquiring method and managing system in content delivery network (CDN)
CN102055808A (en) * 2011-01-10 2011-05-11 复旦大学 Method and system for reducing broadcasting delay in P2P (Peer-to-Peer) live broadcasting system
CN102546775A (en) * 2011-12-27 2012-07-04 中兴通讯股份有限公司 Node in CDN (content delivery network) and automatic networking method thereof
CN103051709A (en) * 2012-12-20 2013-04-17 新浪网技术(中国)有限公司 Data transmission path determination method, network node and content delivery network system
CN103780475A (en) * 2014-02-24 2014-05-07 中国人民解放军理工大学 Spatial information network isomerism dynamic networking method based on layered autonomous area

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102064992B (en) * 2009-11-13 2012-11-28 中兴通讯股份有限公司 Relay node, and relay node distributed network and networking method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741731A (en) * 2009-12-03 2010-06-16 中兴通讯股份有限公司 Content metadata storing, inquiring method and managing system in content delivery network (CDN)
CN102055808A (en) * 2011-01-10 2011-05-11 复旦大学 Method and system for reducing broadcasting delay in P2P (Peer-to-Peer) live broadcasting system
CN102546775A (en) * 2011-12-27 2012-07-04 中兴通讯股份有限公司 Node in CDN (content delivery network) and automatic networking method thereof
CN103051709A (en) * 2012-12-20 2013-04-17 新浪网技术(中国)有限公司 Data transmission path determination method, network node and content delivery network system
CN103780475A (en) * 2014-02-24 2014-05-07 中国人民解放军理工大学 Spatial information network isomerism dynamic networking method based on layered autonomous area

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"内容分发网络请求路由研究";惠雯,尹浩,林闯,杨扬;《计算机科学》;20121231(第2期);1-7
"基于IMS重叠网络的多路径传输关键技术研究";于波;《中国博士学位论文全文数据库信息科技辑》;20121015(第10期);I136-20

Also Published As

Publication number Publication date
CN105634784A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN105634784B (en) Control data distributing method, apparatus and system
CN108769121B (en) Intelligent industrial equipment Internet of things data acquisition system and acquisition data uploading method
US8719427B2 (en) Efficiency for network group communication
CN109684358B (en) Data query method and device
CN104604189B (en) The efficient state issue mechanism of large enterprise
EP3629521B1 (en) Rating method for service node, domain name system (dns) scheduling method and server
CN103460648B (en) Methods and systems for screening Diameter messages within a Diameter signaling router (DSR)
US9954941B2 (en) Global server load balancer apparatus and method for dynamically controlling time-to-live
CN105101456B (en) A kind of method, equipment and system for internet of things equipment triggering
CN104301161B (en) Computational methods, computing device and the communication system of quality of service index
CN109190070A (en) A kind of data processing method, device, system and application server
US20180329771A1 (en) Identifying failed customer experience in distributed computer systems
US10097447B2 (en) Method, apparatus, and system for transmitting data
US11019171B2 (en) Cache data control method and device
CN107995314A (en) CDN network system and its network return source method
CN109642923A (en) Current-dividing network data are to execute load balance
EP3917084A1 (en) Network as service service cross-domain orchestration method, orchestration device, and control device
CN109302437A (en) A kind of method and apparatus redirecting website
US20150006622A1 (en) Web contents transmission method and apparatus
WO2017128713A1 (en) Method and device for publishing subscription message
JP7367120B2 (en) Dynamic object update subscription based on user interaction with interfaces
KR20140125224A (en) Method and node apparatus for collecting information in contents network based on information centric networking
CN109788075B (en) Private network system, data acquisition method and edge server
US20170013524A1 (en) Methods and system in user service enhancement for roaming in wireless mesh networks
CN106341775B (en) A kind of data transmission method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1225528

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant