CN103997517B - A kind of CDN node file synchronisation method and device - Google Patents

A kind of CDN node file synchronisation method and device Download PDF

Info

Publication number
CN103997517B
CN103997517B CN201410188211.2A CN201410188211A CN103997517B CN 103997517 B CN103997517 B CN 103997517B CN 201410188211 A CN201410188211 A CN 201410188211A CN 103997517 B CN103997517 B CN 103997517B
Authority
CN
China
Prior art keywords
original
new file
file
cdn node
consistent
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.)
Expired - Fee Related
Application number
CN201410188211.2A
Other languages
Chinese (zh)
Other versions
CN103997517A (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.)
Guangzhou Cheetah Network Technology Co ltd
Original Assignee
Kingsoft Guangzhou Network Technology Co 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 Kingsoft Guangzhou Network Technology Co Ltd filed Critical Kingsoft Guangzhou Network Technology Co Ltd
Priority to CN201410188211.2A priority Critical patent/CN103997517B/en
Publication of CN103997517A publication Critical patent/CN103997517A/en
Application granted granted Critical
Publication of CN103997517B publication Critical patent/CN103997517B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of CDN node file synchronisation method, including:When it is determined that the original in CDN node needs to update, inquire about and whether there is the new file corresponding with the original in the source server associated with the CDN node;If there is the new file corresponding with the original in the source server, the file size of the new file and the file size of the original are obtained;Judge whether the new file is consistent with the file size of the original;If the file size of the new file and the original is inconsistent, the original in the CDN node is updated using the new file.A kind of CDN node file synchronizer is also disclosed in the embodiment of the present invention.Using the embodiment of the present invention, the accuracy of CDN node synchronously renewing file condition judgment can be improved.

Description

A kind of CDN node file synchronisation method and device
Technical field
The present invention relates to electronic technology field, more particularly to a kind of CDN node file synchronisation method and device.
Background technology
CDN (Content Delivery Network, content distributing network) is taken by placing node everywhere in network One on the existing Internet basic layer intelligent virtual network that business device is constituted, CDN system can be in real time according to net The connection of network flow and each node, load state and to the integrated information such as the distance of user and response time by the request of user Re-direct on the service node nearest from user.The purpose is to make user to obtain required content nearby, Internet is solved The situation of network congestion, improves the response speed that user obtains Web content.
In the prior art scheme, when some file in CDN node reaches period of validity, by this article in source server The last modification time of the last modification time of part and this document in this CDN node is compared, if last modification time one Cause, then this CDN node will not be updated to this document, if last modification time is different, this CDN node will be serviced from source Device transfers new file and replaces this document.
The shortcoming of prior art is:The condition of synchronized update file is only the last modification time of comparison document, The comparison of file integrality is not carried out, accuracy is not high, although because the modification time of some files is the same, in file Hold essence different, the file so also resulted in the file and source server in CDN node is inconsistent.
The content of the invention
The embodiment of the present invention provides a kind of CDN node file synchronisation method and device.CDN node file synchronization can be improved The accuracy that update condition judges.
The embodiments of the invention provide a kind of CDN node file synchronisation method, including:
When it is determined that the original in CDN node needs to update, inquiring about in the source server associated with the CDN node is It is no to there is the new file corresponding with the original;
If there is the new file corresponding with the original in the source server, the file of the new file is obtained The file size of size and the original;
Judge whether the new file is consistent with the file size of the original;
If the file size of the new file and the original is inconsistent, the CDN is updated using the new file The original in node.
Wherein, after whether the file size for judging the new file and the original is consistent, in addition to:
If the new file is consistent with the file size of the original, the MD5 information characteristics of the new file are obtained The MD5 information characteristics code of code and the original;
Judge whether the new file is consistent with the MD5 information characteristics code of the original;
If the MD5 information characteristics code of the new file and the original is inconsistent, institute is updated using the new file State the original in CDN node.
Wherein, after whether the file size for judging the new file and the original is consistent, in addition to:
If the new file is consistent with the file size of the original, the last modification of the new file is obtained Time and the last modification time of the original;
Judge whether the new file is consistent with the last modification time of the original;
If the last modification time of the new file and the original is inconsistent, update described using the new file The original in CDN node.
Wherein, after whether the last modification time for judging the new file and the original is consistent, in addition to:
If the new file is consistent with the last modification time of the original, the MD5 of the new file is obtained The MD5 information characteristics code of information characteristics code and the original;
Judge whether the new file is consistent with the MD5 information characteristics code of the original;
If the MD5 information characteristics code of the new file and the original is inconsistent, institute is updated using the new file State the original in CDN node.
The embodiment of the present invention additionally provides a kind of CDN node file synchronisation method, including:
When it is determined that the original in CDN node needs to update, inquiring about in the source server associated with the CDN node is It is no to there is the new file corresponding with the original;
If there is the new file corresponding with the original in the source server, the MD5 of the new file is obtained The MD5 information characteristics code of information characteristics code and the original;
Judge whether the new file is consistent with the MD5 information characteristics code of the original;
If the MD5 information characteristics code of the new file and the original is inconsistent, institute is updated using the new file State the original in CDN node.
Correspondingly, the embodiments of the invention provide a kind of CDN node file synchronizer, including:
First enquiry module, for when it is determined that the original in CDN node needs to update, inquiring about and the CDN node It whether there is the new file corresponding with the original in the source server of association;
First information acquisition module, if for there is the new file corresponding with the original in the source server, Then obtain the file size of the new file and the file size of the original;
First judge module, for judging whether the new file is consistent with the file size of the original;
First update module, if the file size for the new file and the original is inconsistent, using described New file updates the original in the CDN node.
Wherein, if the first information acquisition module is additionally operable to the file size one of the new file and the original Cause, then obtain the MD5 information characteristics code of the new file and the MD5 information characteristics code of the original;
First judge module be additionally operable to judge the new file and the original MD5 information characteristics code whether one Cause;
If the MD5 information characteristics code that first update module is additionally operable to the new file and the original is inconsistent, Then the original in the CDN node is updated using the new file.
Wherein, if the first information acquisition module is additionally operable to the file size of the new file and the original Unanimously, then the last modification time of the new file and the last modification time of the original are obtained;
First judge module be additionally operable to judge the new file and the original last modification time whether one Cause;
If the last modification time that first update module is additionally operable to the new file and the original is inconsistent, The original in the CDN node is updated using the new file.
Wherein, if the first information acquisition module is additionally operable to the last modification of the new file and the original Time consistency, then obtain the MD5 information characteristics code of the new file and the MD5 information characteristics code of the original;
First judge module be additionally operable to judge the new file and the original MD5 information characteristics code whether one Cause;
If the MD5 information characteristics code that first update module is additionally operable to the new file and the original is inconsistent, Then the original in the CDN node is updated using the new file.
Correspondingly, the embodiment of the present invention additionally provides a kind of CDN node file synchronizer, including:
Second enquiry module, for when it is determined that the original in CDN node needs to update, inquiring about and the CDN node It whether there is the new file corresponding with the original in the source server of association;
Second data obtaining module, if for there is the new file corresponding with the original in the source server, Then obtain the MD5 information characteristics code of the new file and the MD5 information characteristics code of the original;
Second judge module, for judging whether the new file is consistent with the MD5 information characteristics code of the original;
Second update module, if the MD5 information characteristics code for the new file and the original is inconsistent, is used The new file updates the original in the CDN node.
Implement the embodiment of the present invention, when it is determined that the original in CDN node needs to update, inquiry and the CDN node It whether there is the new file corresponding with the original in the source server of association;If in the source server exist with it is described The corresponding new file of original, then obtain the file size of the new file and the file size of the original;Judge institute Whether the file size for stating new file is consistent with the file size of the original;If the text of the new file and the original Part is not of uniform size to be caused, then updates the original in the CDN node using the new file.For CDN in the prior art The problem of synchronously renewing file condition judgment is inaccurate in node, the embodiment of the present invention is by obtaining the text of new file and original Part size, to judge whether new file is consistent with the file size of original, so as to improve synchronously renewing file condition judgment Accuracy.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, being used required in being described below to embodiment Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for this area For those of ordinary skill, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
A kind of flow chart for CDN node file synchronisation method that Fig. 1 embodiment of the present invention is proposed;
A kind of Fig. 2 another embodiment flow charts of CDN node file synchronisation method proposed by the present invention;
A kind of structural representation for CDN node file synchronizer that Fig. 3 embodiment of the present invention is proposed;
A kind of Fig. 4 structural representations of another embodiment of CDN node file synchronizer proposed by the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It refer to Fig. 1, a kind of flow chart for CDN node file synchronisation method that Fig. 1 embodiment of the present invention is proposed.As schemed Show, methods described at least includes:
S101, when it is determined that the original in CDN node needs to update, inquires about the source service associated with the CDN node It whether there is the new file corresponding with the original in device.
In the specific implementation, can check whether some original in CDN node reaches default period of validity, if wherein one Individual original reaches default period of validity, then can determine that above-mentioned original needs renewal.Optionally, can also be to source server Whether there is new file issue to be monitored in real time, when by FTP (File Transfer Protocol, FTP) or , then can be true when person SSH (Secure Shell, containment agreement) instrument uploads one or more new file to source server Determining the original in CDN node needs renewal.After it is determined that original in CDN node needs to update, source server is inquired about In the new file corresponding with above-mentioned original.
S102, if there is the new file corresponding with the original in the source server, obtains the new file File size and the original file size.
In the specific implementation, the domain name that above-mentioned new file is stored can be obtained, then according to domain name, inquiry is matched with domain name Source server IP (Internet Protocol, Internet protocol) address, according to the source server IP address inquired, Obtain the file size of the above-mentioned new file in source server;Simultaneously according to domain name, the described and source clothes matched with domain name are inquired about The IP address of the CDN node of business device association, according to the IP address of the CDN node inquired, passes through CDN refresh interfaces and refreshes CDN Node is so as to obtain the file size of above-mentioned original.
It should be noted that the CDN node of deployment in a network is likely to be breached tens or even hundreds of, the embodiment of the present invention Using multithreading, while all CDN nodes associated with the source server are inquired about, so as to obtain each CDN node simultaneously In the original corresponding with new file file size, and file synchronization operation is carried out to each CDN node simultaneously.
S103, judges whether the new file is consistent with the file size of the original.
It should be noted that needing the regular hour due to calculating MD5 information characteristics code, it is possible to relatively more last first Modification time and file size, the embodiment of the present invention judge whether the file size of original and new file is consistent at first, if on The file size for stating new file and above-mentioned original is inconsistent, then when no longer needing to judge the last modification of original and new file Between or MD5 information characteristics code it is whether consistent, if above-mentioned new file is consistent with the file size of above-mentioned original, need into one Step judges whether original is consistent with the last modification time or MD5 information characteristics code of new file.But, MD5 information characteristics Code has certain superiority, if the MD5 information characteristics code-phase of above-mentioned new file and above-mentioned original is same, above-mentioned new file It is necessarily identical with the last modification time or file size of above-mentioned original.Wherein, MD5 information characteristics code is plucked by information Algorithm is wanted to calculate an obtained fixed-length value, for ensuring that information transfer is completely consistent.
S104, if the file size of the new file and the original is inconsistent, institute is updated using the new file State the original in CDN node.
In the specific implementation, CDN node can be refreshed by CDN refresh interfaces, the above-mentioned new file in source server is transferred It is saved in CDN node, and the original in CDN node is stored in before deletion.
Optionally, if the new file is consistent with the file size of the original, the MD5 letters of the new file are obtained Cease the MD5 information characteristics code of condition code and the original;Judge the MD5 information characteristics code of the new file and the original It is whether consistent;If the MD5 information characteristics code of the new file and the original is inconsistent, institute is updated using the new file State the original in CDN node.If the new file is consistent with the MD5 information characteristics code of the original, described new The last modification time of file and the last modification time of the original are necessarily identical, therefore when being not required to continue to last modification Between judged.
Optionally, if the new file is consistent with the file size of the original, the new file is obtained The last modification time of last modification time and the original;When judging the last modification of the new file and the original Between it is whether consistent;If the last modification time of the new file and the original is inconsistent, updated using the new file The original in the CDN node.
Further, if the new file is consistent with the last modification time of the original, obtain described new The MD5 information characteristics code of file and the MD5 information characteristics code of the original;Judge the new file and the original Whether MD5 information characteristics code is consistent;If the MD5 information characteristics code of the new file and the original is inconsistent, institute is used State the original in the new file renewal CDN node.
It should be noted that in embodiments of the present invention, executive agent can be source server or CDN node, Can be so that above steps may be repeated multiple times, to ensure that it is synchronous that the file in source server and the file in CDN node reach.
Then the embodiment of the present invention is sentenced by obtaining the file size of the new file and the file size of the original Whether the new file of breaking is consistent with the file size of the original, if the file size of the new file and the original It is inconsistent, then the original in the CDN node is updated using the new file, so that it is same to improve CDN node file Walk the accuracy that update condition judges.
It refer to Fig. 2, a kind of Fig. 2 flow charts of another embodiment of CDN node file synchronisation method proposed by the present invention. As illustrated, methods described at least includes:
S201, when it is determined that the original in CDN node needs to update, inquires about the source service associated with the CDN node It whether there is the new file corresponding with the original in device.This step is identical with the S101 in previous embodiment, this step Repeat no more.
S202, if there is the new file corresponding with the original in the source server, obtains the new file MD5 information characteristics code and the original MD5 information characteristics code.
S203, judges whether the new file is consistent with the MD5 information characteristics code of the original.
S204, if the MD5 information characteristics code of the new file and the original is inconsistent, using the new file more The original in the new CDN node.
It should be noted that MD5 information characteristics code has certain superiority, if above-mentioned new file and above-mentioned original MD5 information characteristics code-phase it is same, then the certain phase of the last modification time or file size of above-mentioned new file and above-mentioned original Together, thus be not required to continue file size or last modification time are judged.The embodiment of the present invention is to above-mentioned new file Judged with the MD5 information characteristics code of above-mentioned original, and CDN only is assured that to the code progress judgement of MD5 information characteristics Whether original can be updated in node.Wherein, MD5 information characteristics code is to calculate obtain one by message digest algorithm Individual fixed-length value, for ensuring that information transfer is completely consistent.
The embodiment of the present invention is by obtaining the MD5 information characteristics code of the new file and the MD5 information spy of the original Levy code, then judge whether the MD5 information characteristics code of the new file and the original consistent, if the new file with it is described The MD5 information characteristics code of original is inconsistent, then updates the original in the CDN node using the new file, from And improve the accuracy of CDN node synchronously renewing file condition judgment.
It refer to Fig. 3, a kind of structural representation for CDN node file synchronizer that Fig. 3 embodiment of the present invention is proposed.Such as Shown in figure, the embodiment of the present invention at least includes:First enquiry module 301, first information acquisition module 302, the first judge module 303 and first update module 304, wherein:
First enquiry module 301, for when it is determined that the original in CDN node needs to update, inquiry to be saved with the CDN It whether there is the new file corresponding with the original in the source server of point association.
Specifically, it can check whether some original in CDN node reaches default period of validity, if one of former File reaches default period of validity, then can determine that above-mentioned original needs renewal.Optionally, can also to source server whether There is new file issue to be monitored in real time, when uploading one or more new file to source server by FTP or SSH instruments When, then it can determine that the original in CDN node needs renewal.After it is determined that original in CDN node needs to update, look into Ask new file corresponding with above-mentioned original in source server.
First information acquisition module 302, if for there is the new text corresponding with the original in the source server Part, then obtain the file size of the new file and the file size of the original.
Specifically, the domain name that above-mentioned new file is stored can be obtained, then according to domain name, inquires about the source matched with domain name Server ip address, according to the source server IP address inquired, obtains the file size of the above-mentioned new file in source server; Simultaneously according to domain name, the IP address of the CDN node associated with source server matched with domain name is inquired about, according to what is inquired The IP address of CDN node, refreshes CDN node to obtain the file size of above-mentioned original by CDN refresh interfaces.
It should be noted that the CDN node of deployment in a network is likely to be breached tens or even hundreds of, the embodiment of the present invention Using multithreading, while all CDN nodes associated with the source server are inquired about, so as to obtain each CDN node simultaneously In the original corresponding with new file file size, and file synchronization operation is carried out to each CDN node simultaneously.
First judge module 303, for judging whether the new file is consistent with the file size of the original.
It should be noted that needing the regular hour due to calculating MD5 information characteristics code, it is possible to relatively more last first Modification time and file size, the embodiment of the present invention judge whether the file size of original and new file is consistent at first, if on The file size for stating new file and above-mentioned original is inconsistent, then when no longer needing to judge the last modification of original and new file Between or MD5 information characteristics code it is whether consistent, if above-mentioned new file is consistent with the file size of above-mentioned original, need into one Step judges whether original is consistent with the last modification time or MD5 information characteristics code of new file.But, MD5 information characteristics Code has certain superiority, if the MD5 information characteristics code-phase of above-mentioned new file and above-mentioned original is same, above-mentioned new file It is necessarily identical with the last modification time or file size of above-mentioned original.Wherein, MD5 information characteristics code is plucked by information Algorithm is wanted to calculate an obtained fixed-length value, for ensuring that information transfer is completely consistent.
First update module 304, if the file size for the new file and the original is inconsistent, uses institute State the original in the new file renewal CDN node.
Specifically, CDN node can be refreshed by CDN refresh interfaces, the above-mentioned new file transferred in source server is preserved The original in CDN node is stored in into CDN node, and before deletion.
Optionally, if the new file is consistent with the file size of the original, the MD5 letters of the new file are obtained Cease the MD5 information characteristics code of condition code and the original;Judge the MD5 information characteristics code of the new file and the original It is whether consistent;If the MD5 information characteristics code of the new file and the original is inconsistent, institute is updated using the new file State the original in CDN node.If the new file is consistent with the MD5 information characteristics code of the original, described new The last modification time of file and the last modification time of the original are necessarily identical, therefore when being not required to continue to last modification Between judged.
Optionally, if the new file is consistent with the file size of the original, the new file is obtained The last modification time of last modification time and the original;When judging the last modification of the new file and the original Between it is whether consistent;If the last modification time of the new file and the original is inconsistent, updated using the new file The original in the CDN node.
Further, if the new file is consistent with the last modification time of the original, obtain described new The MD5 information characteristics code of file and the MD5 information characteristics code of the original;Judge the new file and the original Whether MD5 information characteristics code is consistent;If the MD5 information characteristics code of the new file and the original is inconsistent, institute is used State the original in the new file renewal CDN node.
It should be noted that in embodiments of the present invention, executive agent can be source server or CDN node, Aforesaid operations module can be repeated several times, to ensure that it is synchronous that the file in source server and the file in CDN node reach.
Then the embodiment of the present invention is sentenced by obtaining the file size of the new file and the file size of the original Whether the new file of breaking is consistent with the file size of the original, if the file size of the new file and the original It is inconsistent, then the original in the CDN node is updated using the new file, so that it is same to improve CDN node file Walk the accuracy that update condition judges.
Fig. 4 is refer to, a kind of Fig. 4 structures of another embodiment of CDN node file synchronizer proposed by the present invention are shown It is intended to.As illustrated, the embodiment of the present invention at least includes:Second enquiry module 401, the second data obtaining module 402, second are sentenced The disconnected update module 404 of module 403 and second, wherein:
Second enquiry module 401, for when it is determined that the original in CDN node needs to update, inquiry to be saved with the CDN It whether there is the new file corresponding with the original in the source server of point association.The in this step and previous embodiment One enquiry module 301 operates identical, and this step is repeated no more.
Second data obtaining module 402, if for there is the new text corresponding with the original in the source server Part, then obtain the MD5 information characteristics code of the new file and the MD5 information characteristics code of the original.
Second judge module 403, for judge the new file and the original MD5 information characteristics code whether one Cause.
Second update module 404, if the MD5 information characteristics code for the new file and the original is inconsistent, The original in the CDN node is updated using the new file.
It should be noted that MD5 information characteristics code has certain superiority, if above-mentioned new file and above-mentioned original MD5 information characteristics code-phase it is same, then the certain phase of the last modification time or file size of above-mentioned new file and above-mentioned original Together, thus be not required to continue file size or last modification time are judged.The embodiment of the present invention is to above-mentioned new file Judged with the MD5 information characteristics code of above-mentioned original, and CDN only is assured that to the code progress judgement of MD5 information characteristics Whether original can be updated in node.Wherein, MD5 information characteristics code is to calculate obtain one by message digest algorithm Individual fixed-length value, for ensuring that information transfer is completely consistent.
The embodiment of the present invention is by obtaining the MD5 information characteristics code of the new file and the MD5 information spy of the original Levy code, then judge whether the MD5 information characteristics code of the new file and the original consistent, if the new file with it is described The MD5 information characteristics code of original is inconsistent, then updates the original in the CDN node using the new file, from And improve the accuracy of CDN node synchronously renewing file condition judgment.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in device of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
Unit described in the embodiment of the present invention, can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, application specific integrated circuit) realize.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (8)

1. a kind of CDN node file synchronisation method, it is characterised in that methods described includes:
When it is determined that the original in CDN node needs to update, inquire about and whether deposited in the source server associated with the CDN node In the new file corresponding with the original;
If there is the new file corresponding with the original in the source server, the file for obtaining the new file is big All CDN nodes that small and inquiry simultaneously is associated with the source server obtain original text described in each CDN node The file size of part, including:The domain name that the new file is stored is obtained, according to domain name, inquiry is matched with domain name Source server IP address, according to the source server IP address, obtain the file of the new file in the source server Size;Simultaneously according to domain name, with inquiring about the IP of the CDN node associated with source server matched with domain name Location, according to the IP address of the CDN node, obtains the file size of the original;
Judge whether the new file is consistent with the file size of the original;
If the file size of the new file and the original is inconsistent, the CDN node is updated using the new file In the original.
2. the method as described in claim 1, it is characterised in that the file of the judgement new file and the original is big It is small whether it is consistent after, in addition to:
If the new file is consistent with the file size of the original, obtain the new file MD5 information characteristics code and The MD5 information characteristics code of the original;
Judge whether the new file is consistent with the MD5 information characteristics code of the original;
If the MD5 information characteristics code of the new file and the original is inconsistent, the CDN is updated using the new file The original in node.
3. the method as described in claim 1, it is characterised in that the file of the judgement new file and the original is big It is small whether it is consistent after, in addition to:
If the new file is consistent with the file size of the original, the last modification time of the new file is obtained With the last modification time of the original;
Judge whether the new file is consistent with the last modification time of the original;
If the last modification time of the new file and the original is inconsistent, the CDN is updated using the new file The original in node.
4. method as claimed in claim 3, it is characterised in that the judgement new file is repaiied with the last of the original Change the time it is whether consistent after, in addition to:
If the new file is consistent with the last modification time of the original, the MD5 information of the new file is obtained The MD5 information characteristics code of condition code and the original;
Judge whether the new file is consistent with the MD5 information characteristics code of the original;
If the MD5 information characteristics code of the new file and the original is inconsistent, the CDN is updated using the new file The original in node.
5. a kind of CDN node file synchronizer, it is characterised in that described device includes:
First enquiry module, for when it is determined that the original in CDN node needs to update, inquiry to be associated with the CDN node Source server in whether there is the new file corresponding with the original;
First information acquisition module, if for there is the new file corresponding with the original in the source server, obtaining All CDN nodes that the file size and inquiry simultaneously for taking the new file are associated with the source server obtain each The file size of original described in the CDN node, including:The domain name that the new file is stored is obtained, according to the domain Name, inquires about the source server IP address matched with domain name, according to the source server IP address, obtains the source server In the new file file size;Simultaneously according to domain name, the described and source server matched with domain name is inquired about The IP address of the CDN node of association, according to the IP address of the CDN node, obtains the file size of the original;
First judge module, for judging whether the new file is consistent with the file size of the original;
First update module, if the file size for the new file and the original is inconsistent, uses the new text Part updates the original in the CDN node.
6. device as claimed in claim 5, it is characterised in that if the first information acquisition module is additionally operable to the new file It is consistent with the file size of the original, then obtain the MD5 information characteristics code of the new file and the MD5 of the original believes Cease condition code;
First judge module is additionally operable to judge whether the new file is consistent with the MD5 information characteristics code of the original;
If the MD5 information characteristics code that first update module is additionally operable to the new file and the original is inconsistent, make The original in the CDN node is updated with the new file.
7. device as claimed in claim 5, it is characterised in that if the first information acquisition module is additionally operable to the new file It is consistent with the file size of the original, then obtain the last modification time and the original of the new file most Modification time afterwards;
First judge module is additionally operable to judge whether the new file is consistent with the last modification time of the original;
If the last modification time that first update module is additionally operable to the new file and the original is inconsistent, use The new file updates the original in the CDN node.
8. device as claimed in claim 7, it is characterised in that if the first information acquisition module is additionally operable to the new file It is consistent with the last modification time of the original, then obtain the MD5 information characteristics code and the original text of the new file The MD5 information characteristics code of part;
First judge module is additionally operable to judge whether the new file is consistent with the MD5 information characteristics code of the original;
If the MD5 information characteristics code that first update module is additionally operable to the new file and the original is inconsistent, make The original in the CDN node is updated with the new file.
CN201410188211.2A 2014-05-06 2014-05-06 A kind of CDN node file synchronisation method and device Expired - Fee Related CN103997517B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410188211.2A CN103997517B (en) 2014-05-06 2014-05-06 A kind of CDN node file synchronisation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410188211.2A CN103997517B (en) 2014-05-06 2014-05-06 A kind of CDN node file synchronisation method and device

Publications (2)

Publication Number Publication Date
CN103997517A CN103997517A (en) 2014-08-20
CN103997517B true CN103997517B (en) 2017-10-24

Family

ID=51311520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410188211.2A Expired - Fee Related CN103997517B (en) 2014-05-06 2014-05-06 A kind of CDN node file synchronisation method and device

Country Status (1)

Country Link
CN (1) CN103997517B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021580A (en) * 2016-11-04 2018-05-11 广东亿迅科技有限公司 A kind of data synchronization updating method and its system
CN106681976A (en) * 2017-01-12 2017-05-17 北京华夏电通科技有限公司 Multi-client-side real-time synchronous editing and display method
CN109039696A (en) * 2018-06-08 2018-12-18 网宿科技股份有限公司 A kind of CDN node, CDN node restorative procedure and node repair system
CN109241004B (en) * 2018-09-26 2022-02-18 郑州云海信息技术有限公司 Metadata file size recovery method, system, device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741643A (en) * 2009-12-24 2010-06-16 北京世纪互联宽带数据中心有限公司 Content delivery network node detecting method and system
CN101977236A (en) * 2010-11-05 2011-02-16 北京云快线软件服务有限公司 Large-file multipoint distribution system
CN102054045A (en) * 2010-12-31 2011-05-11 福建星网视易信息系统有限公司 System and method for updating resources of electronic device
CN102055799A (en) * 2010-12-09 2011-05-11 北京云快线软件服务有限公司 Content refreshing system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130929A (en) * 2010-01-20 2011-07-20 金蝶软件(中国)有限公司 Method and device for updating client testing server and testing server
CN103412929A (en) * 2013-08-16 2013-11-27 蓝盾信息安全技术股份有限公司 Mass data storage method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741643A (en) * 2009-12-24 2010-06-16 北京世纪互联宽带数据中心有限公司 Content delivery network node detecting method and system
CN101977236A (en) * 2010-11-05 2011-02-16 北京云快线软件服务有限公司 Large-file multipoint distribution system
CN102055799A (en) * 2010-12-09 2011-05-11 北京云快线软件服务有限公司 Content refreshing system
CN102054045A (en) * 2010-12-31 2011-05-11 福建星网视易信息系统有限公司 System and method for updating resources of electronic device

Also Published As

Publication number Publication date
CN103997517A (en) 2014-08-20

Similar Documents

Publication Publication Date Title
JP6629697B2 (en) Method and apparatus for extracting a virtual machine image file
CA2954294C (en) Website access method, apparatus, and website system
CN111405019B (en) Data processing method, data processing device, computer equipment and storage medium
CN102984194B (en) The synchronous method and system of the configuration file of virtual applications distribution frame
CN103997517B (en) A kind of CDN node file synchronisation method and device
WO2016026384A1 (en) Client page display method, device and system
CN107465707A (en) A kind of content refresh method and device of content distributing network
BRPI0811048B1 (en) METHOD FOR CREATING AN INFORMATION LIST, NETWORK NODE TO PERFORM INSTRUCTIONS AND MEDIUM CARRIER
WO2017152768A1 (en) Routing table synchronization method, device and system
RU2005116528A (en) CREATION AND MANAGEMENT OF CONTENT-RELATED OBJECTS
CN110309461B (en) Page display method and device
CN103873502A (en) Cache updating method and system, and update resource providing method and system
CN102882974A (en) Method for saving website access resource by website identification version number
CN107908521A (en) A kind of monitoring method of container performance on the server performance and node being applied under cloud environment
TW201405324A (en) Cloud storage system and data storage and sharing method based on the system
CN105868251A (en) Cache data updating method and device
CN106326460A (en) Advertising push method, server and system
CN104104653A (en) Page information synchronization method, device and system
CN105208058A (en) Information exchange system based on web session sharing
CN108347459A (en) A kind of high in the clouds data quick storage method and device
CN105868234A (en) Update method and device of caching data
CN106713460B (en) Version control method and system for flash application
CN103997518B (en) A kind of CDN node file synchronisation method and device
CN106446640B (en) User knows method for distinguishing and server
CN107341266A (en) The method and apparatus that a kind of display information obtains

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 510623 07, 08A unit, fifteenth floor of agile center, 26 Huaxia Road, Tianhe District, Guangzhou, Guangdong.

Patentee after: Guangzhou cheetah Network Technology Co.,Ltd.

Address before: 510623 01-B sixth unit, Guangzhou bank building, 30 Zhujiang East Road, Tianhe District, Guangzhou, Guangdong.

Patentee before: GUANGZHOU KINGSOFT NETWORK TECHNOLOGY Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171024