CN103997517A - CDN-node file synchronization method and device - Google Patents

CDN-node file synchronization method and device Download PDF

Info

Publication number
CN103997517A
CN103997517A CN201410188211.2A CN201410188211A CN103997517A CN 103997517 A CN103997517 A CN 103997517A CN 201410188211 A CN201410188211 A CN 201410188211A CN 103997517 A CN103997517 A CN 103997517A
Authority
CN
China
Prior art keywords
new file
original
file
cdn node
information characteristics
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.)
Granted
Application number
CN201410188211.2A
Other languages
Chinese (zh)
Other versions
CN103997517B (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 CDN (Content Delivery Network)-node file synchronization method which includes the following steps: when it is determined that an original file in a CDN node needs to be updated, whether a new file corresponding to the original file exists in a source server correlated with the CDN node is inquired; if the new file corresponding to the original file exists in the source server, the size of the new file and the size of the original file are obtained; whether the sizes of the new file and the original file are identical are judged; and if the size of the new file is not identical with the size of the original file, the new file is used to update the original file in the CDN node. The embodiment of the invention also discloses a CDN-node file synchronization device. Through adoption of the CDN-node file synchronization method and device, the accuracy of synchronization update condition judgment of CDN-node files can be improved.

Description

A kind of CDN node file synchronisation method and device
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of CDN node file synchronisation method and device.
Background technology
CDN (Content Delivery Network, content distributing network) be one deck intelligent virtual network on existing Internet basic forming by place node server everywhere at network, CDN system can be in real time leads user's request on the nearest service node of user again according to the connection of network traffics and each node, load state and to integrated informations such as user's distance and response times.Its objective is and make user can obtain required content nearby, solve the situation of Internet network congestion, improve the response speed that user obtains Web content.
In prior art scheme, when certain file on CDN node arrives valid expiration date, the last modification time of this document on the last modification time of this document in source server and this CDN node is compared, if last modification time is consistent, this CDN node can not upgrade this document, if last modification time is different, this CDN node replaces this document by transfer new file from source server.
The shortcoming of prior art scheme is: the condition of synchronous transaction file is only the last modification time of comparison document, do not carry out the comparison of file integrality, accuracy is not high, because although the modification time of some file is the same, but file content essence is different, so also can cause file and the file in source server in CDN node inconsistent.
Summary of the invention
The embodiment of the present invention provides a kind of CDN node file synchronisation method and device.Can improve the accuracy of CDN node synchronously renewing file condition judgment.
The embodiment of the present invention provides a kind of CDN node file synchronisation method, comprising:
When the original in determining CDN node need to be upgraded, inquire about in the source server associated with described CDN node whether have the new file corresponding with described original;
If there is the new file corresponding with described original in described source server, obtain the file size of described new file and the file size of described original;
Judge that whether described new file is consistent with the file size of described original;
If the file size of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
Wherein, after whether the described file size that judges described new file and described original is consistent, also comprise:
If described new file is consistent with the file size of described original, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original;
Judge that whether described new file is consistent with the MD5 information characteristics code of described original;
If the MD5 information characteristics code of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
Wherein, after whether the described file size that judges described new file and described original is consistent, also comprise:
If described new file is consistent with the described file size of described original, obtain the last modification time of described new file and the last modification time of described original;
Judge that whether described new file is consistent with the last modification time of described original;
If the last modification time of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
Wherein, after whether the described last modification time that judges described new file and described original is consistent, also comprise:
If described new file is consistent with the described last modification time of described original, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original;
Judge that whether described new file is consistent with the MD5 information characteristics code of described original;
If the MD5 information characteristics code of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
The embodiment of the present invention also provides a kind of CDN node file synchronisation method, comprising:
When the original in determining CDN node need to be upgraded, inquire about in the source server associated with described CDN node whether have the new file corresponding with described original;
If there is the new file corresponding with described original in described source server, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original;
Judge that whether described new file is consistent with the MD5 information characteristics code of described original;
If the MD5 information characteristics code of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
Correspondingly, the embodiment of the present invention provides a kind of CDN node file synchronization device, comprising:
The first enquiry module, for when determining that the original of CDN node need to be upgraded, inquires about in the source server associated with described CDN node whether have the new file corresponding with described original;
First information acquisition module, if there is the new file corresponding with described original for described source server, obtains the file size of described new file and the file size of described original;
The first judge module, whether consistent with the file size of described original for judging described new file;
The first update module, if inconsistent for the file size of described new file and described original, is used the described original in CDN node described in described new file update.
Wherein, if described first information acquisition module is also consistent with the file size of described original for described new file, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original;
Whether described the first judge module is also consistent with the MD5 information characteristics code of described original for judging described new file;
If described the first update module is also inconsistent for the MD5 information characteristics code of described new file and described original, use the described original in CDN node described in described new file update.
Wherein, if described first information acquisition module is also consistent with the described file size of described original for described new file, obtain the last modification time of described new file and the last modification time of described original;
Whether described the first judge module is also consistent with the last modification time of described original for judging described new file;
If described the first update module is also inconsistent for the last modification time of described new file and described original, use the described original in CDN node described in described new file update.
Wherein, if described first information acquisition module is also consistent with the described last modification time of described original for described new file, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original;
Whether described the first judge module is also consistent with the MD5 information characteristics code of described original for judging described new file;
If described the first update module is also inconsistent for the MD5 information characteristics code of described new file and described original, use the described original in CDN node described in described new file update.
Correspondingly, the embodiment of the present invention also provides a kind of CDN node file synchronization device, comprising:
The second enquiry module, for when determining that the original of CDN node need to be upgraded, inquires about in the source server associated with described CDN node whether have the new file corresponding with described original;
The second acquisition of information module, if there is the new file corresponding with described original for described source server, obtains the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original;
The second judge module, whether consistent with the MD5 information characteristics code of described original for judging described new file;
The second update module, if inconsistent for the MD5 information characteristics code of described new file and described original, is used the described original in CDN node described in described new file update.
Implement the embodiment of the present invention, when the original in determining CDN node need to be upgraded, inquire about in the source server associated with described CDN node whether have the new file corresponding with described original; If there is the new file corresponding with described original in described source server, obtain the file size of described new file and the file size of described original; Judge that whether the file size of described new file and the file size of described original be consistent; If the file size of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.For file synchronization update condition in CDN node in prior art, judge inaccurate problem, the embodiment of the present invention is by obtaining the file size of new file and original, whether the file size that judges new file and original is consistent, thereby improved the accuracy of synchronously renewing file condition judgment.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of a kind of CDN node file synchronisation method that Fig. 1 embodiment of the present invention proposes;
Another embodiment flow chart of a kind of CDN node file synchronisation method that Fig. 2 the present invention proposes;
The structural representation of a kind of CDN node file synchronization device that Fig. 3 embodiment of the present invention proposes;
The structural representation of another embodiment of a kind of CDN node file synchronization device that Fig. 4 the present invention proposes.
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 clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, the flow chart of a kind of CDN node file synchronisation method that Fig. 1 embodiment of the present invention proposes.As shown in the figure, described method at least comprises:
S101, when the original in determining CDN node need to be upgraded, inquires about in the source server associated with described CDN node whether have the new file corresponding with described original.
In specific implementation, can check whether certain original in CDN node arrives default valid expiration date, if one of them original arrives default valid expiration date, can determine that above-mentioned original needs to upgrade.Optionally, can also whether there is new file distribution to carry out Real-Time Monitoring to source server, when passing through FTP (File Transfer Protocol, file transfer protocol (FTP)) or SSH (Secure Shell, when containment agreement) instrument is uploaded one or more new file to source server, can determine that the original in CDN node needs to upgrade.After original in determining CDN node need to be upgraded, the new file corresponding with above-mentioned original in query source server.
S102, if there is the new file corresponding with described original in described source server, obtains the file size of described new file and the file size of described original.
In specific implementation, can obtain the domain name that above-mentioned new file is stored, then according to domain name, source server IP (the Internet Protocol that inquiry is mated with domain name, Internet agreement) address, according to the source server IP address inquiring, obtain the file size of the above-mentioned new file in source server; According to domain name, the IP address of the CDN node that inquiry is associated with the described and source server of domain name coupling, according to the IP address of the CDN node inquiring, thereby refreshes by CDN refresh interface the file size that CDN node obtains above-mentioned original simultaneously.
It should be noted that, be deployed in CDN node in network and may reach tens hundreds ofs even, the embodiment of the present invention adopts multithreading, inquire about all CDN nodes associated with described source server simultaneously, thereby obtain the file size of original corresponding with new file in each CDN node simultaneously, and each CDN node is carried out to file synchronization operation simultaneously.
S103, judges that whether described new file is consistent with the file size of described original.
It should be noted that, owing to calculating MD5 information characteristics code, need the regular hour, so can first more last modification time and file size, the embodiment of the present invention judges that whether original is consistent with the file size of new file at first, if the file size of above-mentioned new file and above-mentioned original is inconsistent, no longer need to judge that whether original is consistent with last modification time or the MD5 information characteristics code of new file, if above-mentioned new file is consistent with the file size of above-mentioned original, need further to judge that whether original is consistent with last modification time or the MD5 information characteristics code of new file.But MD5 information characteristics code has certain superiority, if the MD5 information characteristics code of above-mentioned new file and above-mentioned original is identical, the last modification time of above-mentioned new file and above-mentioned original or file size are necessarily identical.Wherein, MD5 information characteristics code is the fixed-length value calculating by message digest algorithm, complete consistent for guaranteeing communication.
S104, if the file size of described new file and described original is inconsistent, is used the described original in CDN node described in described new file update.
In specific implementation, can refresh CDN node by CDN refresh interface, the above-mentioned new file of transferring in source server is saved in CDN node, and is kept at the original in CDN node before deleting.
Optionally, if described new file is consistent with the file size of described original, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original; Judge that whether described new file is consistent with the MD5 information characteristics code of described original; If the MD5 information characteristics code of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.If described new file is consistent with the MD5 information characteristics code of described original, the last modification time of described new file is necessarily identical with the last modification time of described original, does not therefore need to continue last modification time to judge.
Optionally, if described new file is consistent with the described file size of described original, obtain the last modification time of described new file and the last modification time of described original; Judge that whether described new file is consistent with the last modification time of described original; If the last modification time of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
Further, if described new file is consistent with the described last modification time of described original, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original; Judge that whether described new file is consistent with the MD5 information characteristics code of described original; If the MD5 information characteristics code of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
It should be noted that, in embodiments of the present invention, executive agent can be source server, can be also CDN node, can repeatedly repeat above-mentioned steps, to guarantee that file in source server and file in CDN node reach, synchronizes.
The embodiment of the present invention is by obtaining the file size of described new file and the file size of described original, then judge that whether described new file is consistent with the file size of described original, if the file size of described new file and described original is inconsistent, use the described original in CDN node described in described new file update, thereby improved the accuracy of CDN node synchronously renewing file condition judgment.
Please refer to Fig. 2, the flow chart of another embodiment of a kind of CDN node file synchronisation method that Fig. 2 the present invention proposes.As shown in the figure, described method at least comprises:
S201, when the original in determining CDN node need to be upgraded, inquires about in the source server associated with described CDN node whether have the new file corresponding with described original.This step is identical with the S101 in last embodiment, and this step repeats no more.
S202, if there is the new file corresponding with described original in described source server, obtains the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original.
S203, judges that whether described new file is consistent with the MD5 information characteristics code of described original.
S204, if the MD5 information characteristics code of described new file and described original is inconsistent, is used the described original in CDN node described in described new file update.
It should be noted that, MD5 information characteristics code has certain superiority, if the MD5 information characteristics code of above-mentioned new file and above-mentioned original is identical, the last modification time of above-mentioned new file and above-mentioned original or file size are necessarily identical, therefore do not need to continue file size or last modification time are judged.The embodiment of the present invention is that the MD5 information characteristics code of above-mentioned new file and above-mentioned original is judged, and only MD5 information characteristics code is judged and just can determine in CDN node, whether original can be upgraded.Wherein, MD5 information characteristics code is the fixed-length value calculating by message digest algorithm, complete consistent for guaranteeing communication.
The embodiment of the present invention is by obtaining the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original, then judge that whether described new file is consistent with the MD5 information characteristics code of described original, if the MD5 information characteristics code of described new file and described original is inconsistent, use the described original in CDN node described in described new file update, thereby improved the accuracy of CDN node synchronously renewing file condition judgment.
Please refer to Fig. 3, the structural representation of a kind of CDN node file synchronization device that Fig. 3 embodiment of the present invention proposes.As shown in the figure, the embodiment of the present invention at least comprises: the first enquiry module 301, first information acquisition module 302, the first judge module 303 and the first update module 304, wherein:
The first enquiry module 301, for when determining that the original of CDN node need to be upgraded, inquires about in the source server associated with described CDN node whether have the new file corresponding with described original.
Particularly, can check whether certain original in CDN node arrives default valid expiration date, if one of them original arrives default valid expiration date, can determine that above-mentioned original needs to upgrade.Optionally, can also whether there is new file distribution to carry out Real-Time Monitoring to source server, when uploading one or more new file to source server by FTP or SSH instrument, can determine that the original in CDN node needs to upgrade.After original in determining CDN node need to be upgraded, the new file corresponding with above-mentioned original in query source server.
First information acquisition module 302, if there is the new file corresponding with described original for described source server, obtains the file size of described new file and the file size of described original.
Particularly, can obtain the domain name that above-mentioned new file is stored, then according to domain name, the source server IP address that inquiry is mated with domain name, according to the source server IP address inquiring, obtains the file size of the above-mentioned new file in source server; According to domain name, the IP address of the CDN node that inquiry is associated with the described and source server of domain name coupling, according to the IP address of the CDN node inquiring, thereby refreshes by CDN refresh interface the file size that CDN node obtains above-mentioned original simultaneously.
It should be noted that, be deployed in CDN node in network and may reach tens hundreds ofs even, the embodiment of the present invention adopts multithreading, inquire about all CDN nodes associated with described source server simultaneously, thereby obtain the file size of original corresponding with new file in each CDN node simultaneously, and each CDN node is carried out to file synchronization operation simultaneously.
The first judge module 303, whether consistent with the file size of described original for judging described new file.
It should be noted that, owing to calculating MD5 information characteristics code, need the regular hour, so can first more last modification time and file size, the embodiment of the present invention judges that whether original is consistent with the file size of new file at first, if the file size of above-mentioned new file and above-mentioned original is inconsistent, no longer need to judge that whether original is consistent with last modification time or the MD5 information characteristics code of new file, if above-mentioned new file is consistent with the file size of above-mentioned original, need further to judge that whether original is consistent with last modification time or the MD5 information characteristics code of new file.But MD5 information characteristics code has certain superiority, if the MD5 information characteristics code of above-mentioned new file and above-mentioned original is identical, the last modification time of above-mentioned new file and above-mentioned original or file size are necessarily identical.Wherein, MD5 information characteristics code is the fixed-length value calculating by message digest algorithm, complete consistent for guaranteeing communication.
The first update module 304, if inconsistent for the file size of described new file and described original, is used the described original in CDN node described in described new file update.
Particularly, can refresh CDN node by CDN refresh interface, the above-mentioned new file of transferring in source server is saved in CDN node, and is kept at the original in CDN node before deleting.
Optionally, if described new file is consistent with the file size of described original, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original; Judge that whether described new file is consistent with the MD5 information characteristics code of described original; If the MD5 information characteristics code of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.If described new file is consistent with the MD5 information characteristics code of described original, the last modification time of described new file is necessarily identical with the last modification time of described original, does not therefore need to continue last modification time to judge.
Optionally, if described new file is consistent with the described file size of described original, obtain the last modification time of described new file and the last modification time of described original; Judge that whether described new file is consistent with the last modification time of described original; If the last modification time of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
Further, if described new file is consistent with the described last modification time of described original, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original; Judge that whether described new file is consistent with the MD5 information characteristics code of described original; If the MD5 information characteristics code of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
It should be noted that, in embodiments of the present invention, executive agent can be source server, can be also CDN node, can repeatedly repeat aforesaid operations module, to guarantee that file in source server and file in CDN node reach, synchronizes.
The embodiment of the present invention is by obtaining the file size of described new file and the file size of described original, then judge that whether described new file is consistent with the file size of described original, if the file size of described new file and described original is inconsistent, use the described original in CDN node described in described new file update, thereby improved the accuracy of CDN node synchronously renewing file condition judgment.
Please refer to Fig. 4, the structural representation of another embodiment of a kind of CDN node file synchronization device that Fig. 4 the present invention proposes.As shown in the figure, the embodiment of the present invention at least comprises: the second enquiry module 401, the second acquisition of information module 402, the second judge module 403 and the second update module 404, wherein:
The second enquiry module 401, for when determining that the original of CDN node need to be upgraded, inquires about in the source server associated with described CDN node whether have the new file corresponding with described original.This step is identical with the first enquiry module 301 operations in last embodiment, and this step repeats no more.
The second acquisition of information module 402, if there is the new file corresponding with described original for described source server, obtains the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original.
The second judge module 403, whether consistent with the MD5 information characteristics code of described original for judging described new file.
The second update module 404, if inconsistent for the MD5 information characteristics code of described new file and described original, is used the described original in CDN node described in described new file update.
It should be noted that, MD5 information characteristics code has certain superiority, if the MD5 information characteristics code of above-mentioned new file and above-mentioned original is identical, the last modification time of above-mentioned new file and above-mentioned original or file size are necessarily identical, therefore do not need to continue file size or last modification time are judged.The embodiment of the present invention is that the MD5 information characteristics code of above-mentioned new file and above-mentioned original is judged, and only MD5 information characteristics code is judged and just can determine in CDN node, whether original can be upgraded.Wherein, MD5 information characteristics code is the fixed-length value calculating by message digest algorithm, complete consistent for guaranteeing communication.
The embodiment of the present invention is by obtaining the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original, then judge that whether described new file is consistent with the MD5 information characteristics code of described original, if the MD5 information characteristics code of described new file and described original is inconsistent, use the described original in CDN node described in described new file update, thereby improved the accuracy of CDN node synchronously renewing file condition judgment.
Step in embodiment of the present invention method can be carried out according to actual needs order and adjusted, merges and delete.
Unit in embodiment of the present invention device can merge according to actual needs, divides and delete.
Unit described in the embodiment of the present invention, can pass through universal integrated circuit, for example CPU (Central Processing Unit, central processing unit), or realize by ASIC (Application Specific Integrated Circuit, application-specific integrated circuit (ASIC)).
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, to come the hardware that instruction is relevant to complete by computer program, described program can be stored in a computer read/write memory medium, this program, when carrying out, can comprise as the flow process of the embodiment of above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to the claims in the present invention, still belongs to the scope that the present invention is contained.

Claims (10)

1. a CDN node file synchronisation method, is characterized in that, described method comprises:
When the original in determining CDN node need to be upgraded, inquire about in the source server associated with described CDN node whether have the new file corresponding with described original;
If there is the new file corresponding with described original in described source server, obtain the file size of described new file and the file size of described original;
Judge that whether described new file is consistent with the file size of described original;
If the file size of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
2. the method for claim 1, is characterized in that, after whether the described file size that judges described new file and described original is consistent, also comprises:
If described new file is consistent with the file size of described original, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original;
Judge that whether described new file is consistent with the MD5 information characteristics code of described original;
If the MD5 information characteristics code of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
3. the method for claim 1, is characterized in that, after whether the described file size that judges described new file and described original is consistent, also comprises:
If described new file is consistent with the described file size of described original, obtain the last modification time of described new file and the last modification time of described original;
Judge that whether described new file is consistent with the last modification time of described original;
If the last modification time of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
4. method as claimed in claim 3, is characterized in that, after whether the described last modification time that judges described new file and described original is consistent, also comprises:
If described new file is consistent with the described last modification time of described original, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original;
Judge that whether described new file is consistent with the MD5 information characteristics code of described original;
If the MD5 information characteristics code of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
5. a CDN node file synchronisation method, is characterized in that, described method also comprises:
When the original in determining CDN node need to be upgraded, inquire about in the source server associated with described CDN node whether have the new file corresponding with described original;
If there is the new file corresponding with described original in described source server, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original;
Judge that whether described new file is consistent with the MD5 information characteristics code of described original;
If the MD5 information characteristics code of described new file and described original is inconsistent, use the described original in CDN node described in described new file update.
6. a CDN node file synchronization device, is characterized in that, described device comprises:
The first enquiry module, for when determining that the original of CDN node need to be upgraded, inquires about in the source server associated with described CDN node whether have the new file corresponding with described original;
First information acquisition module, if there is the new file corresponding with described original for described source server, obtains the file size of described new file and the file size of described original;
The first judge module, whether consistent with the file size of described original for judging described new file;
The first update module, if inconsistent for the file size of described new file and described original, is used the described original in CDN node described in described new file update.
7. device as claimed in claim 6, it is characterized in that, if described first information acquisition module is also consistent with the file size of described original for described new file, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original;
Whether described the first judge module is also consistent with the MD5 information characteristics code of described original for judging described new file;
If described the first update module is also inconsistent for the MD5 information characteristics code of described new file and described original, use the described original in CDN node described in described new file update.
8. device as claimed in claim 6, it is characterized in that, if described first information acquisition module is also consistent with the described file size of described original for described new file, obtain the last modification time of described new file and the last modification time of described original;
Whether described the first judge module is also consistent with the last modification time of described original for judging described new file;
If described the first update module is also inconsistent for the last modification time of described new file and described original, use the described original in CDN node described in described new file update.
9. device as claimed in claim 8, it is characterized in that, if described first information acquisition module is also consistent with the described last modification time of described original for described new file, obtain the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original;
Whether described the first judge module is also consistent with the MD5 information characteristics code of described original for judging described new file;
If described the first update module is also inconsistent for the MD5 information characteristics code of described new file and described original, use the described original in CDN node described in described new file update.
10. a CDN node file synchronization device, is characterized in that, described device also comprises:
The second enquiry module, for when determining that the original of CDN node need to be upgraded, inquires about in the source server associated with described CDN node whether have the new file corresponding with described original;
The second acquisition of information module, if there is the new file corresponding with described original for described source server, obtains the MD5 information characteristics code of described new file and the MD5 information characteristics code of described original;
The second judge module, whether consistent with the MD5 information characteristics code of described original for judging described new file;
The second update module, if inconsistent for the MD5 information characteristics code of described new file and described original, is used the described original in CDN node described in described new file update.
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 true CN103997517A (en) 2014-08-20
CN103997517B 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)

Cited By (5)

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

Citations (6)

* 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
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 (6)

* 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
CN102130929A (en) * 2010-01-20 2011-07-20 金蝶软件(中国)有限公司 Method and device for updating client testing server and testing server
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
CN103412929A (en) * 2013-08-16 2013-11-27 蓝盾信息安全技术股份有限公司 Mass data storage method

Cited By (6)

* 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
CN109241004A (en) * 2018-09-26 2019-01-18 郑州云海信息技术有限公司 Meta data file size restoration methods, system, device and readable storage medium storing program for executing
CN118283053A (en) * 2024-03-29 2024-07-02 湖南风云通达信息科技有限公司 Data synchronization method for CDN file
CN118283053B (en) * 2024-03-29 2024-09-13 湖南风云通达信息科技有限公司 Data synchronization method for CDN file

Also Published As

Publication number Publication date
CN103997517B (en) 2017-10-24

Similar Documents

Publication Publication Date Title
US10204114B2 (en) Replicating data across data centers
CN103997517A (en) CDN-node file synchronization method and device
CN105446750B (en) The method and apparatus that WebApp starting runs, generates image file
US10425502B2 (en) System and method for acquiring, processing and updating global information
CN104283933A (en) Data downloading method, client-side and system
CN103781055A (en) Data downloading method and associated device
WO2016029744A1 (en) Metadata recovery method and relevant device
US10425475B2 (en) Distributed data management
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN105095313A (en) Data access method and equipment
CN112839076B (en) Data storage method, data reading method, gateway, electronic equipment and storage medium
WO2017071118A1 (en) Monitoring resource management method and apparatus, cse and storage medium
CN103905441A (en) Data acquisition method and device
CN103701867A (en) Method, system and central server for processing call requests
CN103997518A (en) CDN-node file synchronization method and device
CN106155925A (en) A kind of method and device obtaining data
CN104092751A (en) Service access method and device
CN105471955A (en) Writing method of distributed file system, client device and distributed file system
CN105991744B (en) Method and apparatus for synchronizing user application data
CN105281941A (en) Data transmission method, first CSE, intermediate CSE, and second CSE
CN107509097B (en) Video sharing method and device and sharing server
CN109391658B (en) Account data synchronization method and equipment, storage medium and terminal thereof
EP3174322A1 (en) Method for deleting notification resource, and common service entity
CN109471713B (en) Method and device for inquiring information
CN107273047B (en) Cache management method, cache manager and storage management software

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