CN103634410A - Data synchronization method based on content distribution network (CDN), client end and server - Google Patents
Data synchronization method based on content distribution network (CDN), client end and server Download PDFInfo
- Publication number
- CN103634410A CN103634410A CN201310684099.7A CN201310684099A CN103634410A CN 103634410 A CN103634410 A CN 103634410A CN 201310684099 A CN201310684099 A CN 201310684099A CN 103634410 A CN103634410 A CN 103634410A
- Authority
- CN
- China
- Prior art keywords
- data file
- client
- server
- information
- seed resource
- 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
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开了一种基于内容分发网络CDN的数据同步方法,客户端及服务器,所述方法包括:所述客户端从为其分配的节点服务器下载数据文件;所述客户端依据所述数据文件的最新特征信息,判断所述数据文件是否最新;若否,则所述客户端向所述种子资源查询服务器提交最新的数据文件的查询请求;所述客户端接收所述种子资源查询服务器针对所述请求返回的所述最新的数据文件对应的种子资源信息;所述客户端从所述种子资源信息指示的节点服务器和/或客户端侧下载所述最新的数据文件。本发明可以提高数据同步效率,同时保证最新数据的准确性及安全性。
The invention discloses a data synchronization method based on content distribution network CDN, a client and a server. The method includes: the client downloads a data file from a node server assigned to it; the client downloads a data file according to the data file The latest feature information, to determine whether the data file is up-to-date; if not, the client submits a query request for the latest data file to the seed resource query server; The seed resource information corresponding to the latest data file returned by the request; the client downloads the latest data file from the node server and/or client side indicated by the seed resource information. The invention can improve the efficiency of data synchronization, and at the same time ensure the accuracy and safety of the latest data.
Description
技术领域technical field
本发明涉及数据处理技术领域,具体涉及一种基于内容分发网络CDN的数据同步方法,一种基于内容分发网络CDN的数据同步客户端,以及,一种基于内容分发网络CDN的数据同步种子资源查询服务器。The present invention relates to the technical field of data processing, in particular to a data synchronization method based on a content distribution network CDN, a data synchronization client based on a content distribution network CDN, and a data synchronization seed resource query based on a content distribution network CDN server.
背景技术Background technique
CDN(Content Distribution Network,内容分发网络)是一种新型网络内容服务体系,其基于互联网络而构建,基于内容访问与应用的效率要求、质量要求和内容秩序而提供内容的分发和服务。CDN可以尽可能避开互联网上有可能影响数据传输速度和稳定性的瓶颈和环节,使内容传输的更快、更稳定。具体而言,CDN能够实时地根据网络流量和各节点的连接、负载状况以及到用户的距离和响应时间等综合信息,将用户导向至最近的节点服务器上,使用户可就近取得所需数据,解决网络拥挤的状况,提高用户下载数据的速度。CDN (Content Distribution Network, Content Distribution Network) is a new type of network content service system, which is built on the basis of the Internet, and provides content distribution and services based on the efficiency requirements, quality requirements and content order of content access and application. CDN can avoid bottlenecks and links on the Internet that may affect the speed and stability of data transmission as much as possible, so as to make content transmission faster and more stable. Specifically, CDN can direct users to the nearest node server based on comprehensive information such as network traffic, connection of each node, load status, distance to the user, and response time in real time, so that the user can obtain the required data nearby. Solve the situation of network congestion and increase the speed of users downloading data.
但是,文件的数据同步问题在CDN一直是个难以解决的问题。在CDN中传输的文件,有的是几十M,有的是几百M,因此,可能由于延时或者网络故障等等其他情况,导致在CDN中各个网元的文件并非都是最新的。However, the data synchronization problem of files has always been a difficult problem to solve in CDN. Some of the files transmitted in the CDN are tens of M, and some are hundreds of M. Therefore, due to delays or network failures, etc., the files of each network element in the CDN are not all up-to-date.
参照图1所示的现有技术的一种内容分发网络CDN的架构图,在CDN中用户通常是从临近的节点服务器下载文件,但是,有时候虽然临近的节点服务器上文件的下载配置索引等已经更新了,而节点服务器还没有从其他服务器中下载到最新的数据,在其保存的数据可能是的旧数据,因此造成用户实际下载到的数据很有可能并非是最新的文件,这个时候CDN的数据就不同步了,造成用户的不便。在具体实现中,用户需下载的文件可能是病毒库、安装包等这些用于更新病毒库,或者软件的数据文件,而这些文件必须时常更新的,才能尽量保护用户的终端不被最新流行的病毒所侵害。Referring to the architecture diagram of a content distribution network CDN in the prior art shown in FIG. 1 , in the CDN, users usually download files from adjacent node servers, but sometimes although the download configuration index of files on the adjacent node servers, etc. It has been updated, but the node server has not downloaded the latest data from other servers, and the data stored in it may be old data, so the data actually downloaded by the user may not be the latest file. At this time, CDN The data is not synchronized, causing inconvenience to users. In a specific implementation, the files that users need to download may be virus databases, installation packages, etc., which are used to update virus databases, or data files of software. infected by the virus.
发明内容Contents of the invention
鉴于上述问题,提出了本发明以便提供一种基于内容分发网络CDN的数据同步方法,一种基于内容分发网络CDN的数据同步客户端,以及,一种基于内容分发网络CDN的数据同步种子资源查询服务器。In view of the above problems, the present invention is proposed to provide a CDN-based data synchronization method, a CDN-based data synchronization client, and a CDN-based data synchronization seed resource query server.
依据本发明的一个方面,提供了一种基于内容分发网络CDN的数据同步方法,所述内容分发网络CDN中包括分发服务器,与所述分发服务器通信的节点服务器,与所述节点服务器通信的客户端,以及,与所述客户端通信的种子资源查询服务器;所述客户端中存储有数据文件的最新特征信息;According to one aspect of the present invention, a data synchronization method based on a content distribution network CDN is provided, and the content distribution network CDN includes a distribution server, a node server communicating with the distribution server, and a client communicating with the node server terminal, and a seed resource query server communicating with the client; the latest feature information of the data file is stored in the client;
所述方法包括:The methods include:
所述客户端从为其分配的节点服务器下载数据文件;The client downloads the data file from its assigned node server;
所述客户端依据所述数据文件的最新特征信息,判断所述数据文件是否最新;The client determines whether the data file is up-to-date according to the latest characteristic information of the data file;
若否,则所述客户端向所述种子资源查询服务器提交最新的数据文件的查询请求;If not, the client submits a query request for the latest data file to the seed resource query server;
所述客户端接收所述种子资源查询服务器针对所述请求返回的所述最新的数据文件对应的种子资源信息;The client receives the seed resource information corresponding to the latest data file returned by the seed resource query server for the request;
所述客户端从所述种子资源信息指示的节点服务器和/或客户端侧下载所述最新的数据文件。The client downloads the latest data file from the node server and/or client side indicated by the seed resource information.
可选地,所述客户端从为其分配的节点服务器下载数据文件的步骤包括:Optionally, the step of downloading the data file from the assigned node server by the client includes:
客户端接收分发服务器发送的HTTP下载信息;所述HTTP下载信息包括节点服务器的指示信息;The client receives the HTTP download information sent by the distribution server; the HTTP download information includes the instruction information of the node server;
所述客户端依据所述HTTP下载信息连接对应的节点服务器下载数据文件。The client connects to the corresponding node server to download the data file according to the HTTP download information.
可选地,所述客户端依据所述HTTP下载信息连接对应的节点服务器下载数据文件的步骤包括:Optionally, the step of connecting the client to the corresponding node server to download the data file according to the HTTP download information includes:
所述客户端依据所述HTTP下载信息连接到对应的节点服务器,从所述节点服务器中多个预置的起止位置分段下载所述数据文件;The client is connected to the corresponding node server according to the HTTP download information, and downloads the data file in segments from a plurality of preset start and end positions in the node server;
所述客户端组合所述分段下载获得的数据文件。The client combines the data files obtained by the segment download.
可选地,所述客户端依据所述数据文件的最新特征信息,判断所述数据文件是否最新的步骤包括:Optionally, the step of determining whether the data file is up-to-date according to the latest characteristic information of the data file by the client includes:
所述客户端依据所述数据文件计算当前特征信息;The client calculates current feature information according to the data file;
所述客户端判断所述最新特征信息与当前特征信息是否一致;The client judges whether the latest characteristic information is consistent with the current characteristic information;
若是,则所述客户端判断所述数据文件为最新;If so, then the client judges that the data file is the latest;
若否,则所述客户端判断所述数据文件不为最新。If not, the client determines that the data file is not the latest.
可选地,所述最新特征信息为最新数据文件的数据内容标识,所述当前特征信息为当前数据文件的数据内容标识。Optionally, the latest characteristic information is the data content identifier of the latest data file, and the current characteristic information is the data content identifier of the current data file.
可选地,所述最新数据文件的数据内容标识为最新数据文件的MD5值;所述当前数据文件的数据内容标识为当前数据文件的MD5值。Optionally, the data content of the latest data file is identified as the MD5 value of the latest data file; the data content of the current data file is identified as the MD5 value of the current data file.
可选地,所述种子资源信息包括一条或多条P2SP下载索引信息,在所述客户端从所述种子资源信息指示的节点服务器和/或客户端侧下载所述最新的数据文件的步骤后,所述方法还包括:Optionally, the seed resource information includes one or more pieces of P2SP download index information, after the client downloads the latest data file from the node server and/or client side indicated by the seed resource information , the method also includes:
所述客户端上报自身的P2SP下载索引信息至所述种子资源查询服务器。The client reports its own P2SP download index information to the seed resource query server.
可选地,还包括:Optionally, also include:
若所述客户端依据所述数据文件的最新特征信息,判断所述数据文件为最新,则上报自身的P2SP下载索引信息至种子资源查询服务器。If the client judges that the data file is the latest according to the latest feature information of the data file, it reports its own P2SP download index information to the seed resource query server.
可选地,所述HTTP下载信息包括统一资源定位符URL;所述P2SP下载索引信息包括文件的存放位置,文件大小,文件所在服务器和/或客户端的地址,和/或文件发布者的地址。Optionally, the HTTP download information includes a Uniform Resource Locator URL; the P2SP download index information includes the storage location of the file, the file size, the address of the server and/or client where the file is located, and/or the address of the file publisher.
依据本发明的另一方面,还公开了一种基于内容分发网络CDN的数据同步方法,所述内容分发网络CDN中包括分发服务器,与所述分发服务器通信的节点服务器,与所述节点服务器通信的客户端,以及,与所述客户端通信的种子资源查询服务器;所述客户端中存储有数据文件的最新特征信息;According to another aspect of the present invention, a data synchronization method based on a content distribution network CDN is also disclosed, the content distribution network CDN includes a distribution server, a node server communicating with the distribution server, and a node server communicating with the node server A client, and a seed resource query server communicating with the client; the latest feature information of the data file is stored in the client;
所述方法包括:The methods include:
所述种子资源查询服务器接收客户端发送的最新的数据文件的查询请求;所述请求为所述客户端依据所述数据文件的最新特征信息,判断所述数据文件不为最新时提交;The seed resource query server receives a query request for the latest data file sent by the client; the request is submitted when the client judges that the data file is not the latest according to the latest feature information of the data file;
所述种子资源查询服务器依据所述请求查询所述最新的数据文件的种子资源信息;The seed resource query server queries the seed resource information of the latest data file according to the request;
所述种子资源查询服务器返回所述种子资源信息至所述客户端。The torrent resource query server returns the torrent resource information to the client.
可选地,所述种子资源信息包括一条或多条P2SP下载索引信息,所述方法还包括:Optionally, the seed resource information includes one or more pieces of P2SP download index information, and the method further includes:
所述种子资源查询服务器接收所述客户端上报自身的P2SP下载索引信息。The seed resource query server receives its own P2SP download index information reported by the client.
依据本发明的另一方面,还公开了一种内容分发网络CDN中的客户端,其中,所述客户端与节点服务器通信,所述节点服务器与分发服务器通信,所述客户端还与种子资源查询服务器通信,并且,所述客户端中存储有数据文件的最新特征信息;According to another aspect of the present invention, a client in a content distribution network CDN is also disclosed, wherein the client communicates with a node server, the node server communicates with a distribution server, and the client also communicates with a seed resource Query server communication, and the latest feature information of the data file is stored in the client;
所述客户端包括:The clients include:
第一下载模块,适于从为其分配的节点服务器下载数据文件;a first download module adapted to download data files from a node server assigned thereto;
判断模块,适于依据所述数据文件的最新特征信息,判断所述数据文件是否最新;若否,则执行提交模块;The judging module is adapted to judge whether the data file is up-to-date according to the latest feature information of the data file; if not, execute the submission module;
提交模块,适于向所述种子资源查询服务器提交最新的数据文件的查询请求;A submission module, adapted to submit a query request for the latest data file to the seed resource query server;
接收模块,适于接收所述种子资源查询服务器针对所述请求返回的所述最新的数据文件对应的种子资源信息;The receiving module is adapted to receive the seed resource information corresponding to the latest data file returned by the seed resource query server for the request;
第二下载模块,适于从所述种子资源信息指示的节点服务器和/或客户端侧下载所述最新的数据文件。The second downloading module is adapted to download the latest data file from the node server and/or client side indicated by the seed resource information.
可选地,所述第一下载模块包括:Optionally, the first download module includes:
HTTP下载信息接收子模块,适于接收分发服务器发送的HTTP下载信息;所述HTTP下载信息包括节点服务器的指示信息;The HTTP download information receiving submodule is adapted to receive the HTTP download information sent by the distribution server; the HTTP download information includes the instruction information of the node server;
连接子模块,适于依据所述HTTP下载信息连接对应的节点服务器下载数据文件。The connection sub-module is adapted to connect to the corresponding node server to download the data file according to the HTTP download information.
可选地,所述连接子模块包括:Optionally, the connection submodule includes:
分段下载单元,适于依据所述HTTP下载信息连接到对应的节点服务器,从所述节点服务器中多个预置的起止位置分段下载所述数据文件;The segment download unit is adapted to connect to the corresponding node server according to the HTTP download information, and download the data file in segments from a plurality of preset start and end positions in the node server;
组合单元,适于组合所述分段下载获得的数据文件。The combining unit is adapted to combine the data files obtained by the segment downloading.
可选地,所述判断模块包括:Optionally, the judging module includes:
计算子模块,适于依据所述数据文件计算当前特征信息;A calculation submodule, adapted to calculate current feature information according to the data file;
判断子模块,适于判断所述最新特征信息与当前特征信息是否一致;若是,则调用第一判定子模块,若否,则调用第二判定子模块;The judging submodule is adapted to judge whether the latest feature information is consistent with the current feature information; if so, call the first judging submodule, and if not, call the second judging submodule;
第一判定子模块,适于判断所述数据文件为最新;The first judging submodule is adapted to judge that the data file is the latest;
第二判定子模块,适于判断所述数据文件不为最新。The second determining submodule is adapted to determine that the data file is not up-to-date.
可选地,所述最新特征信息为最新数据文件的数据内容标识,所述当前特征信息为当前数据文件的数据内容标识。Optionally, the latest characteristic information is the data content identifier of the latest data file, and the current characteristic information is the data content identifier of the current data file.
可选地,所述最新特征信息为最新数据文件的MD5值;所述当前特征信息为当前数据文件的MD5值。Optionally, the latest feature information is the MD5 value of the latest data file; the current feature information is the MD5 value of the current data file.
可选地,所述种子资源信息包括一条或多条P2SP下载索引信息,所述客户端还包括:Optionally, the seed resource information includes one or more pieces of P2SP download index information, and the client further includes:
第一上报模块,适于上报自身的P2SP下载索引信息至所述种子资源查询服务器。The first reporting module is adapted to report its own P2SP download index information to the seed resource query server.
可选地,所述的客户端还包括:Optionally, the client also includes:
第二上报模块,适于在依据所述数据文件的最新特征信息,判断所述数据文件为最新时,上报自身的P2SP下载索引信息至种子资源查询服务器。The second reporting module is adapted to report its own P2SP download index information to the seed resource query server when judging that the data file is the latest according to the latest characteristic information of the data file.
可选地,所述HTTP下载信息包括统一资源定位符URL;所述P2SP下载索引信息包括文件的存放位置,文件大小,文件所在服务器和/或客户端的地址,和/或文件发布者的地址。Optionally, the HTTP download information includes a Uniform Resource Locator URL; the P2SP download index information includes the storage location of the file, the file size, the address of the server and/or client where the file is located, and/or the address of the file publisher.
依据本发明的另一方面,还公开了一种基于内容分发网络CDN的数据同步的种子资源查询服务器,其中,所述种子资源查询服务器与客户端通信,所述客户端与节点服务器通信,所述节点服务器与分发服务器通信,其中,所述客户端中存储有数据文件的最新特征信息;According to another aspect of the present invention, a seed resource query server based on data synchronization of content distribution network CDN is also disclosed, wherein the seed resource query server communicates with a client, and the client communicates with a node server. The node server communicates with the distribution server, wherein the latest feature information of the data file is stored in the client;
所述种子资源查询服务器包括:The seed resource query server includes:
接收模块,适于接收客户端发送的最新的数据文件的查询请求;所述请求为所述客户端依据所述数据文件的最新特征信息,判断所述数据文件不为最新时提交;The receiving module is adapted to receive the query request of the latest data file sent by the client; the request is submitted when the client judges that the data file is not the latest according to the latest feature information of the data file;
查询模块,适于依据所述请求查询所述最新的数据文件的种子资源信息;A query module, adapted to query the seed resource information of the latest data file according to the request;
返回模块,适于返回所述种子资源信息至所述客户端。A return module, adapted to return the seed resource information to the client.
可选地,所述种子资源信息包括一条或多条P2SP下载索引信息,所述种子资源查询服务器还包括:Optionally, the seed resource information includes one or more pieces of P2SP download index information, and the seed resource query server also includes:
下载信息接收模块,适于接收所述客户端上报自身的P2SP下载索引信息。The download information receiving module is adapted to receive the P2SP download index information reported by the client.
在本发明实施例中,在CDN为各个客户端分配节点服务器,并在有新的数据文件发布时,发送最新特征信息至各个客户端。当客户端从节点服务器下载到数据文件时,可以根据最新特征信息来判断数据文件是不是最新,如果判定数据文件不是最新,还可以发送请求至种子资源查询服务器,获取到临近的节点服务器的种子资源信息,并根据该种子资源信息所指示的节点服务器和/或客户端中快速去下载最新的数据文件,可以提高数据同步效率,同时保证最新数据的准确性及安全性。In the embodiment of the present invention, the CDN allocates node servers for each client, and sends the latest feature information to each client when a new data file is released. When the client downloads the data file from the node server, it can judge whether the data file is the latest according to the latest feature information. If it is determined that the data file is not the latest, it can also send a request to the seed resource query server to obtain the seeds of the adjacent node server Resource information, and according to the node server and/or client indicated by the seed resource information, quickly download the latest data file, which can improve the efficiency of data synchronization, and at the same time ensure the accuracy and security of the latest data.
另外,下载到最新数据的客户端,还可以将其自身的P2SP下载索引信息上报至种子资源查询服务器,种子资源查询服务器接收后就可以将该P2SP下载索引信息作为种子资源信息保留,其他的客户端就可以到该客户端下载数据文件,这样就可以有效地把原本孤立的服务器和其镜像资源以及P2P资源整合到了一起,当有较多客户端下载数据文件时,下载效率较高。In addition, the client that has downloaded the latest data can also report its own P2SP download index information to the seed resource query server, and the seed resource query server can keep the P2SP download index information as the seed resource information after receiving it. In this way, the original isolated server, its mirror resources and P2P resources can be integrated together effectively. When there are many clients downloading data files, the downloading efficiency is higher.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.
附图说明Description of drawings
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same parts. In the attached picture:
图1示出了现有技术的一种内容分发网络CDN的架构图;Fig. 1 shows the architectural diagram of a kind of content distribution network CDN of prior art;
图2示出了根据本发明一个实施例的一种基于内容分发网络CDN的数据同步方法实施例一的步骤流程图;FIG. 2 shows a flow chart of steps in Embodiment 1 of a data synchronization method based on a content distribution network CDN according to an embodiment of the present invention;
图3示出了根据本发明一个实施例的一种基于内容分发网络CDN的数据同步方法实施例二的步骤流程图;FIG. 3 shows a flow chart of steps in Embodiment 2 of a data synchronization method based on a content distribution network CDN according to an embodiment of the present invention;
图4示出了根据本发明一个实施例的一种基于内容分发网络CDN的数据同步实施结构示意图;FIG. 4 shows a schematic diagram of a data synchronization implementation structure based on a content distribution network CDN according to an embodiment of the present invention;
图5示出了根据本发明一个实施例的一种基于内容分发网络CDN的数据同步客户端实施例的结构框图;FIG. 5 shows a structural block diagram of an embodiment of a data synchronization client based on a content distribution network CDN according to an embodiment of the present invention;
图6示出了根据本发明一个实施例的一种基于内容分发网络CDN的数据同步种子资源查询服务器实施例的结构框图。Fig. 6 shows a structural block diagram of an embodiment of a CDN-based data synchronization seed resource query server according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
本发明实施例的核心之一在于,通过P2SP配合CDN方案处理数据同步的问题,当客户端下载到的数据文件经校验后发现不是最新时,可以采用P2SP的下载方式去其他节点服务器或者客户端下载最新的数据文件。One of the cores of the embodiments of the present invention is that the problem of data synchronization is handled through P2SP with the CDN solution. When the data file downloaded by the client is found to be not the latest after verification, the P2SP download method can be used to download to other node servers or clients. Download the latest data file from the terminal.
参照图2,示出了根据本发明一个实施例的一种基于内容分发网络CDN的数据同步方法实施例一的步骤流程图,所述内容分发网络CDN中可以包括分发服务器,与所述分发服务器通信的节点服务器,与所述节点服务器通信的客户端,以及,与所述客户端通信的种子资源查询服务器;所述客户端中可以存储有数据文件的最新特征信息;Referring to FIG. 2 , it shows a flow chart of the steps of Embodiment 1 of a data synchronization method based on a content distribution network CDN according to an embodiment of the present invention. The content distribution network CDN may include a distribution server, and the distribution server A communicating node server, a client communicating with the node server, and a seed resource query server communicating with the client; the latest feature information of the data file may be stored in the client;
所述方法具体可以包括如下步骤:The method may specifically include the following steps:
步骤101,所述客户端从为其分配的节点服务器下载数据文件;
在本发明的一种优选实施例中,所述步骤101可以包括如下子步骤:In a preferred embodiment of the present invention, the
子步骤S11,客户端接收分发服务器发送的HTTP下载信息;所述HTTP下载信息包括节点服务器的指示信息;Sub-step S11, the client receives the HTTP download information sent by the distribution server; the HTTP download information includes the instruction information of the node server;
子步骤S12,所述客户端依据所述HTTP下载信息连接对应的节点服务器下载数据文件。Sub-step S12, the client connects to the corresponding node server to download the data file according to the HTTP download information.
在具体实现中,CDN中的分发服务器,或者其他及时性较强的服务器在发布新的数据文件时,可以将该数据文件对应的最新特征信息及下载信息等发布给CDN中的各个网元,即节点服务器或者客户端中。由于最新特征信息相对内容较少,故在CDN中不会出现不同步的问题,因此可以作为判断数据文件是否是最新的依据。In a specific implementation, when a distribution server in the CDN or other servers with strong timeliness release a new data file, the latest feature information and download information corresponding to the data file can be released to each network element in the CDN, That is, in the node server or client. Since the latest feature information is relatively small in content, there will be no out-of-sync problems in the CDN, so it can be used as a basis for judging whether the data file is up-to-date.
在实际应用中,CDN可以通过就近性和服务器负载来做判断,可以以一种极为高效的方式为用户提供服务。具体地,CDN通常为用户的客户端就近分配节点服务器,当客户端接收到的分发服务器发送的临近的网元的HTTP下载信息时,就可以根据HTTP下载信息连接对应的节点服务器来快速下载数据文件。In practical applications, CDN can make judgments based on proximity and server load, and can provide services to users in an extremely efficient manner. Specifically, the CDN usually assigns a node server nearby to the user's client. When the client receives the HTTP download information of the adjacent network element sent by the distribution server, it can quickly download the data by connecting to the corresponding node server according to the HTTP download information. document.
作为本发明的具体应用的一种示例中,所述的HTTP下载信息可以为指定节点服务器的地址(URL,统一资源定位符)。分发服务器可以为客户端分发的指定节点服务器的HTTP下载信息,也可以是分发服务器是固定映射的节点服务器,当然,可以是尽可能避开互联网上有可能影响数据传输速度和稳定性的瓶颈和环节,为客户端量身分配的节点服务器,具体可以依据实际需求而定,本发明对此不作限制。As an example of a specific application of the present invention, the HTTP download information may be an address (URL, Uniform Resource Locator) of a specified node server. The distribution server can distribute the HTTP download information of the specified node server for the client, or the distribution server can be a node server with a fixed mapping. Of course, it can avoid as much as possible the bottleneck and The link, the node server that is tailored for the client, can be determined according to actual needs, which is not limited in the present invention.
在本发明的一种优选实施例中,所述子步骤S12,即所述客户端依据所述HTTP下载信息连接对应的节点服务器下载数据文件的步骤可以包括如下子步骤:In a preferred embodiment of the present invention, the sub-step S12, that is, the step in which the client connects to the corresponding node server to download the data file according to the HTTP download information may include the following sub-steps:
子步骤S12-1,所述客户端依据所述HTTP下载信息连接到对应的节点服务器,从所述节点服务器中多个预置的起止位置分段下载所述数据文件;Sub-step S12-1, the client connects to the corresponding node server according to the HTTP download information, and downloads the data file in sections from a plurality of preset start and end positions in the node server;
子步骤S12-2,所述客户端组合所述分段下载获得的数据文件。Sub-step S12-2, the client assembles the data files obtained by the segment download.
在具体实现中,当客户端根据HTTP下载信息连接到对应的节点服务器时,就可以开始从该节点服务器中下载对应的数据文件。由于部分的数据文件较大,为了能够加快下载进度,可以采用一种并发式文件多分段的下载方式,即可以从数据文件不同起止位置分段下载,比如从a文件的第一个字节开始下载,同时还可以从a文件第100个字节下载,当客户端将文件分段下载完后,进行本地拼接,再次组合为一个完整的数据文件。由于采用多分段并发下载的方式,下载文件的速度得到极大的提高。In a specific implementation, when the client connects to the corresponding node server according to the HTTP download information, it can start to download the corresponding data file from the node server. Due to the large size of some data files, in order to speed up the download progress, a concurrent file multi-segment download method can be used, that is, the data files can be downloaded in segments from different start and end positions, for example, from the first byte of file a Start downloading, and you can also download from the 100th byte of file a. After the client downloads the file in sections, it will splice it locally and combine it into a complete data file again. Due to the multi-segment concurrent downloading method, the speed of downloading files is greatly improved.
步骤102,所述客户端依据所述数据文件的最新特征信息,判断所述数据文件是否最新;若否,则执行步骤103;
在本发明的一种优选实施例中,所述步骤102可以包括如下子步骤:In a preferred embodiment of the present invention, the
子步骤S31,所述客户端依据所述数据文件计算当前特征信息;Sub-step S31, the client calculates current feature information according to the data file;
子步骤S32,所述客户端判断所述最新特征信息与当前特征信息是否一致;若是,则执行子步骤S33,若否,则执行子步骤S34;Sub-step S32, the client judges whether the latest feature information is consistent with the current feature information; if yes, execute sub-step S33, if not, execute sub-step S34;
子步骤S33,所述客户端判断所述数据文件为最新;Sub-step S33, the client judges that the data file is the latest;
子步骤S34,所述客户端判断所述数据文件不为最新。In sub-step S34, the client determines that the data file is not the latest.
在本发明的一种优选示例中,所述最新特征信息可以为最新数据文件的数据内容标识,所述当前特征信息可以为当前数据文件的数据内容标识。In a preferred example of the present invention, the latest characteristic information may be the data content identifier of the latest data file, and the current characteristic information may be the data content identifier of the current data file.
在具体实现中,最新特征信息可以是根据数据文件的内容生成的唯一的数据内容标识,例如,可以采用CRC(Cyclic Redundancy Check,循环冗余校验码)来计算。当最新的数据文件发布后,可以同时将最新数据文件的内容标识发布给CDN中的各个网元,由于数据内容标识是根据数据文件的内容生成,如果文件被改写,在客户端计算出的当前数据文件的数据内容标识与最新数据文件的数据内容标识是不一致的,说明当前的数据文件很可能有问题。In a specific implementation, the latest feature information may be a unique data content identifier generated according to the content of the data file, for example, it may be calculated by using CRC (Cyclic Redundancy Check, cyclic redundancy check code). When the latest data file is released, the content identifier of the latest data file can be released to each network element in the CDN at the same time. Since the data content identifier is generated based on the content of the data file, if the file is rewritten, the current The data content ID of the data file is inconsistent with the data content ID of the latest data file, indicating that there may be a problem with the current data file.
优选地,所述最新数据文件的数据内容标识可以为最新数据文件的MD5值;所述当前数据文件的数据内容标识可以为当前数据文件的MD5值。Preferably, the data content identifier of the latest data file may be the MD5 value of the latest data file; the data content identifier of the current data file may be the MD5 value of the current data file.
在本发明实施例中,所述MD5值可以为采用MD5(信息-摘要算法5,Message-Digest Algorithm5)计算出的数据文件唯一标识。具体而言,可以是利用MD5算法根据文件的二进制信息来计算MD5值。In the embodiment of the present invention, the MD5 value may be a unique identifier of a data file calculated by using MD5 (Message-Digest Algorithm 5, Message-Digest Algorithm 5). Specifically, an MD5 algorithm may be used to calculate the MD5 value according to the binary information of the file.
MD5算法是计算机广泛使用的杂凑算法之一,其将数据运算为另一固定长度值,将信息压缩成一种保密的格式。MD5具有碰撞率低的特点,使用MD5算法计算文件的唯一标识,能够有效防止文件的重复和碰撞。例如,假设文件被病毒或木马入侵了,或者文件不是最新的,那么计算到的MD5值将与客户端本地保存的MD5值不一致,就可以很容易发现该文件有问题了。The MD5 algorithm is one of the hash algorithms widely used by computers. It operates data into another fixed-length value and compresses information into a confidential format. MD5 has the characteristics of low collision rate. Using MD5 algorithm to calculate the unique identifier of a file can effectively prevent file duplication and collision. For example, if the file is invaded by a virus or Trojan horse, or the file is not up-to-date, then the calculated MD5 value will be inconsistent with the MD5 value saved locally on the client, and it is easy to find that there is a problem with the file.
当然,在实际应用中,不限于MD5算法,本领域技术人员还可以以低碰撞率为原则,选择其它适当的算法生成文件的唯一标识,本发明对此无需加以限制。Of course, in practical applications, it is not limited to the MD5 algorithm, and those skilled in the art can also choose other appropriate algorithms to generate the unique identifier of the file based on the principle of low collision rate, and the present invention does not need to limit this.
步骤103,所述客户端向所述种子资源查询服务器提交最新的数据文件的查询请求;
步骤104,所述客户端接收所述种子资源查询服务器针对所述请求返回的所述最新的数据文件对应的种子资源信息;
步骤105,所述客户端从所述种子资源信息指示的节点服务器和/或客户端侧下载所述最新的数据文件。
在本发明是实施例中,如果下载的数据文件校验失败,那么可以说明下载到的数据不是最新,此时还可以通过其他方式下载文件,例如P2SP(Peer to Server&Peer,用户对服务器和用户)。In the embodiment of the present invention, if the downloaded data file verification fails, it can be explained that the downloaded data is not up-to-date. At this time, the file can also be downloaded in other ways, such as P2SP (Peer to Server&Peer, user to server and user) .
采用P2SP技术,数据文件可以在CDN上的各个网元中互相传递,有效地把原本孤立的服务器和其镜像资源以及P2P(peer-to-peer,点对点)资源整合到了一起。具体来说,P2SP下载索引信息是一个带有查询种子键值的信息,可以到特定服务器获取相应的资源。Using P2SP technology, data files can be transferred among various network elements on the CDN, effectively integrating the original isolated server and its mirror resources and P2P (peer-to-peer, point-to-point) resources. Specifically, the P2SP download index information is information with a query seed key value, and corresponding resources can be obtained from a specific server.
在具体实现中,客户端可以从种子资源查询服务器查询种子资源信息,获取到带有最新资源(即数据文件)的服务器,或者,带最新资源的客户端的种子资源信息后,客户端就可以去种子资源信息中所指示的服务器或者客户端下载最新的数据文件。In a specific implementation, the client can query the seed resource information from the seed resource query server, obtain the server with the latest resource (ie data file), or, after the client has the seed resource information of the client with the latest resource, the client can go to The server or client indicated in the seed resource information downloads the latest data file.
在本发明的一种优选示例中,客户端向种子资源查询服务器发送的请求中还可以包括根据数据文件计算得到的MD5值,种子资源查询服务器接收后可以与本地保存的种子资源信息中的MD5值进行比对,如果发现同样的MD5值的种子资源信息,说明该种子资源信息对应的网元中的数据文件仍然是旧的,种子资源查询服务器可以选择将其标记,或者直接删除,以避免将同样是该种子资源信息发送给客户端,从而导致客户端再次下载到旧数据。In a preferred example of the present invention, the request sent by the client to the seed resource query server may also include the MD5 value calculated according to the data file, and the seed resource query server may compare it with the MD5 value in the locally stored seed resource information after receiving the request. Values are compared, if the seed resource information with the same MD5 value is found, it means that the data file in the network element corresponding to the seed resource information is still old, and the seed resource query server can choose to mark it or delete it directly to avoid Send the same seed resource information to the client, causing the client to download the old data again.
另外,新的数据文件等资源在CDN发布时,可以将预定要下载该资源的服务器的信息上传到种子资源查询服务器,这样就可以保证部分服务器上保存的一定是新的数据,在不确定某些服务器或客户端中的数据是否是最新时,可以直接给请求种子资源信息的客户端发送该预定服务器的对应的种子资源信息。In addition, when resources such as new data files are released on the CDN, the information of the server that is scheduled to download the resource can be uploaded to the seed resource query server, so that it can be guaranteed that some servers must store new data. When the data in these servers or clients is up-to-date, the corresponding seed resource information of the predetermined server can be directly sent to the client requesting the seed resource information.
在本发明的一种优选实施例中,所述种子资源信息可以包括一条或多条P2SP下载索引信息,在所述客户端从所述种子资源信息指示的节点服务器和/或客户端侧下载所述最新的数据文件的步骤后,所述方法还可以包括如下步骤:In a preferred embodiment of the present invention, the seed resource information may include one or more pieces of P2SP download index information, and the client side downloads all After the step of the latest data file, the method may also include the following steps:
所述客户端上报自身的P2SP下载索引信息至所述种子资源查询服务器。The client reports its own P2SP download index information to the seed resource query server.
在本发明的另一优选实施例中,所述的方法还可以包括如下步骤:In another preferred embodiment of the present invention, described method can also comprise the following steps:
若所述客户端依据所述数据文件的最新特征信息,判断所述数据文件为最新,则上报自身的P2SP下载索引信息至种子资源查询服务器。If the client judges that the data file is the latest according to the latest feature information of the data file, it reports its own P2SP download index information to the seed resource query server.
在本发明实施例中,当客户端下载到最新的数据文件时,还可以将自身IP地址和拥有资源的相关信息,即P2SP下载索引信息上报至种子资源查询服务器,种子资源查询服务器可以将其收录,这样其他客户端就可以和这个客户端进行通讯。具体来说,所述P2SP下载索引信息可以包括文件的存放位置,文件大小,文件所在服务器和/或客户端的地址,和/或文件发布者的地址等等,当然,还可以包括客户端计算的MD5值。In the embodiment of the present invention, when the client downloads the latest data file, it can also report its own IP address and related information of resources, that is, the P2SP download index information to the seed resource query server, and the seed resource query server can send its Included, so that other clients can communicate with this client. Specifically, the P2SP download index information may include the storage location of the file, the file size, the address of the server where the file is located and/or the client, and/or the address of the file publisher, etc. Of course, it may also include the MD5 value.
参照图3,示出了根据本发明一个实施例的一种基于内容分发网络CDN的数据同步方法实施例二的步骤流程图,所述内容分发网络CDN中可以包括分发服务器,与所述分发服务器通信的节点服务器,与所述节点服务器通信的客户端,以及,与所述客户端通信的种子资源查询服务器;所述客户端中可以存储有数据文件的最新特征信息;Referring to FIG. 3 , it shows a flow chart of steps in Embodiment 2 of a data synchronization method based on a content distribution network CDN according to an embodiment of the present invention. The content distribution network CDN may include a distribution server, and the distribution server A communicating node server, a client communicating with the node server, and a seed resource query server communicating with the client; the latest feature information of the data file may be stored in the client;
所述的方法具体可以包括如下步骤:Described method specifically can comprise the steps:
步骤201,所述种子资源查询服务器接收客户端发送的最新的数据文件的查询请求;所述请求为所述客户端依据所述数据文件的最新特征信息,判断所述数据文件不为最新时提交;
步骤202,所述种子资源查询服务器依据所述请求查询所述最新的数据文件的种子资源信息;
步骤203,所述种子资源查询服务器返回所述种子资源信息至所述客户端。
在本发明的一种优选实施例中,所述种子资源信息可以包括一条或多条P2SP下载索引信息,所述方法还可以包括如下步骤:In a preferred embodiment of the present invention, the seed resource information may include one or more pieces of P2SP download index information, and the method may also include the following steps:
所述种子资源查询服务器接收所述客户端上报自身的P2SP下载索引信息。The seed resource query server receives its own P2SP download index information reported by the client.
在实际应用中,可以在CDN中设置种子资源查询服务器,在种子资源查询服务器保存有多个种子资源信息。当客户端检测出数据文件不是最新时,种子资源查询服务器会接收到客户端发送的查询请求,种子资源查询服务器可以为该服务器发送临近的服务器或者客户端的种子资源信息,客户端就可以快速地从种子资源信息中指示的节点服务器,或者客户端下载到最新数据。In practical applications, a torrent resource query server may be set in the CDN, and multiple torrent resource information is stored in the torrent resource query server. When the client detects that the data file is not up-to-date, the torrent resource query server will receive the query request sent by the client, and the torrent resource query server can send the server or the torrent resource information of the client to the server, and the client can quickly Download the latest data from the node server or client indicated in the seed resource information.
为了使本领域技术人员进一步了解本发明实施例,以下采用一个具体的应用示例来进行说明。In order for those skilled in the art to further understand the embodiments of the present invention, a specific application example is used below for description.
在具体实现中,由于安全的原因,部分企业和政府机关的网络都与外部网络隔离,即不能连接互联网。在复杂的企业网络中,任何一个员工的疏漏、漏洞管理疏漏,都可能给企业安全带来威胁。虽然企业和政府机关的网络都与外部网络隔离,但在其内部仍然需要运行新版本的软件或者传递数据,这些问题就变得棘手。In actual implementation, due to security reasons, the networks of some enterprises and government agencies are isolated from external networks, that is, they cannot be connected to the Internet. In a complex enterprise network, any omission of any employee or vulnerability management may pose a threat to the security of the enterprise. Even though the networks of enterprises and government agencies are isolated from the external network, they still need to run new versions of software or transfer data internally, and these problems become difficult.
参照图4所示的本发明的一种基于内容分发网络CDN的数据同步实施结构示意图,在CDN中可以包括分发服务器,与所述分发服务器通信的节点服务器,与所述节点服务器通信的客户端,以及,与所述客户端通信的种子资源查询服务器。其中,该CDN可以是自行建立,当然,也可以是使用第三方的CDN。Referring to the schematic diagram of a data synchronization implementation structure based on the content distribution network CDN of the present invention shown in Figure 4, the CDN may include a distribution server, a node server communicating with the distribution server, and a client communicating with the node server , and, the seed resource in communication with the client queries the server. Wherein, the CDN can be established by itself, of course, a third-party CDN can also be used.
在隔离网中,可以优先采用CDN的普通下载方式下载资源,一般客户端直接可以从临近的节点服务器下载到数据文件。如果客户端下载到的数据文件校验失败,发现不是最新的数据文件的话,那么还可以采用P2SP的下载方式,具体而言,客户端可以在种子资源查询服务器查询并获取种子资源信息,并从种子资源信息中指示的节点服务器快速下载最新的数据文件。In the isolated network, the normal download method of CDN can be used first to download resources, and general clients can directly download data files from adjacent node servers. If the data file downloaded by the client fails to verify and finds that it is not the latest data file, then the P2SP download method can also be used. Specifically, the client can query and obtain the torrent resource information from the torrent resource query server. The node servers indicated in the seed resource information quickly download the latest data files.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the method embodiment, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the embodiment of the present invention is not limited by the described action sequence, because According to the embodiment of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
参照图5,示出了根据本发明一个实施例的一种基于内容分发网络CDN的数据同步客户端实施例的结构框图,其中,所述客户端与节点服务器通信,所述节点服务器与分发服务器通信,所述客户端还与种子资源查询服务器通信,并且,所述客户端中存储有数据文件的最新特征信息;Referring to FIG. 5 , it shows a structural block diagram of an embodiment of a data synchronization client based on a content distribution network CDN according to an embodiment of the present invention, wherein, the client communicates with a node server, and the node server communicates with a distribution server Communication, the client also communicates with the seed resource query server, and the latest feature information of the data file is stored in the client;
所述客户端具体可以包括如下模块:The client may specifically include the following modules:
第一下载模块301,适于从为其分配的节点服务器下载数据文件;The
在本发明的一种优选实施例中,所述第一下载模块301可以包括:In a preferred embodiment of the present invention, the
HTTP下载信息接收子模块,适于客户端接收分发服务器发送的HTTP下载信息;所述HTTP下载信息包括节点服务器的指示信息;The HTTP download information receiving submodule is suitable for the client to receive the HTTP download information sent by the distribution server; the HTTP download information includes the instruction information of the node server;
连接子模块,适于依据所述HTTP下载信息连接对应的节点服务器下载数据文件。The connection sub-module is adapted to connect to the corresponding node server to download the data file according to the HTTP download information.
在本发明的一种优选实施例中,所述连接子模块可以包括:In a preferred embodiment of the present invention, the connection submodule may include:
分段下载单元,适于依据所述HTTP下载信息连接到对应的节点服务器,从所述节点服务器中多个预置的起止位置分段下载所述数据文件;The segment download unit is adapted to connect to the corresponding node server according to the HTTP download information, and download the data file in segments from a plurality of preset start and end positions in the node server;
组合单元,适于组合所述分段下载获得的数据文件。The combining unit is adapted to combine the data files obtained by the segment downloading.
判断模块302,适于依据所述数据文件的最新特征信息,判断所述数据文件是否最新;若否,则执行提交模块;The judging
在本发明的一种优选实施例中,所述判断模块302可以包括:In a preferred embodiment of the present invention, the judging
计算子模块,适于依据所述数据文件计算当前特征信息;A calculation submodule, adapted to calculate current feature information according to the data file;
判断子模块,适于判断所述最新特征信息与当前特征信息是否一致;若是,则调用第一判定子模块,若否,则调用第二判定子模块;The judging submodule is adapted to judge whether the latest feature information is consistent with the current feature information; if so, call the first judging submodule, and if not, call the second judging submodule;
第一判定子模块,适于判断所述数据文件为最新;The first judging submodule is adapted to judge that the data file is the latest;
第二判定子模块,适于判断所述数据文件不为最新。The second determining submodule is adapted to determine that the data file is not up-to-date.
在本发明的一种优选实施例中,所述最新特征信息可以为最新数据文件的数据内容标识,所述当前特征信息可以为当前数据文件的数据内容标识。In a preferred embodiment of the present invention, the latest characteristic information may be the data content identifier of the latest data file, and the current characteristic information may be the data content identifier of the current data file.
在本发明的一种优选实施例中,所述最新数据文件的数据内容标识可以为最新数据文件的MD5值;所述当前数据文件的数据内容标识可以为当前数据文件的MD5值。In a preferred embodiment of the present invention, the data content identifier of the latest data file may be the MD5 value of the latest data file; the data content identifier of the current data file may be the MD5 value of the current data file.
提交模块303,适于向所述种子资源查询服务器提交最新的数据文件的查询请求;A
接收模块,适于接收所述种子资源查询服务器针对所述请求返回的所述最新的数据文件对应的种子资源信息;The receiving module is adapted to receive the seed resource information corresponding to the latest data file returned by the seed resource query server for the request;
第二下载模块,适于从所述种子资源信息指示的节点服务器和/或客户端侧下载所述最新的数据文件。The second downloading module is adapted to download the latest data file from the node server and/or client side indicated by the seed resource information.
在本发明的一种优选实施例中,所述种子资源信息包括一条或多条P2SP下载索引信息,所述装置还可以包括:In a preferred embodiment of the present invention, the seed resource information includes one or more pieces of P2SP download index information, and the device may also include:
第一上报模块,适于上报自身的P2SP下载索引信息至所述种子资源查询服务器。The first reporting module is adapted to report its own P2SP download index information to the seed resource query server.
在本发明的一种优选实施例中,所述的装置还可以包括:In a preferred embodiment of the present invention, the device may also include:
第二上报模块,适于在依据所述数据文件的最新特征信息,判断所述数据文件为最新时,上报自身的P2SP下载索引信息至种子资源查询服务器。The second reporting module is adapted to report its own P2SP download index information to the seed resource query server when judging that the data file is the latest according to the latest characteristic information of the data file.
在本发明的一种优选实施例中,所述HTTP下载信息可以包括统一资源定位符URL;所述P2SP下载索引信息可以包括文件的存放位置,文件大小,文件所在服务器和/或客户端的地址,和/或文件发布者的地址。In a preferred embodiment of the present invention, the HTTP download information may include a Uniform Resource Locator URL; the P2SP download index information may include the storage location of the file, the size of the file, the address of the server where the file is located and/or the client, and/or the address of the publisher of the document.
参照图6,示出了根据本发明一个实施例的一种基于内容分发网络CDN的数据同步种子资源查询服务器实施例的结构框图,Referring to FIG. 6 , it shows a structural block diagram of an embodiment of a data synchronization seed resource query server based on a content distribution network CDN according to an embodiment of the present invention.
其中,所述种子资源查询服务器与客户端通信,所述客户端与节点服务器通信,所述节点服务器与分发服务器通信,其中,所述客户端中存储有数据文件的最新特征信息;Wherein, the seed resource query server communicates with the client, the client communicates with the node server, and the node server communicates with the distribution server, wherein the latest characteristic information of the data file is stored in the client;
所述种子资源查询服务器包括:The seed resource query server includes:
接收模块301,适于接收客户端发送的最新的数据文件的查询请求;所述请求为所述客户端依据所述数据文件的最新特征信息,判断所述数据文件不为最新时提交;The receiving
查询模块302,适于依据所述请求查询所述最新的数据文件的种子资源信息;The
返回模块303,适于返回所述种子资源信息至所述客户端。The returning
在本发明的一种优选实施例中,所述种子资源信息可以包括一条或多条P2SP下载索引信息,所述种子资源查询服务器还可以包括:In a preferred embodiment of the present invention, the seed resource information may include one or more pieces of P2SP download index information, and the seed resource query server may also include:
下载信息接收模块,适于接收所述客户端上报自身的P2SP下载索引信息。The download information receiving module is adapted to receive the P2SP download index information reported by the client.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本发明也不针对任何特定编程语言。应当明白,可以利用各种编程语言实现在此描述的本发明的内容,并且上面对特定语言所做的描述是为了披露本发明的最佳实施方式。The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other device. Various generic systems can also be used with the teachings based on this. The structure required to construct such a system is apparent from the above description. Furthermore, the present invention is not specific to any particular programming language. It should be understood that various programming languages can be used to implement the content of the present invention described herein, and the above description of specific languages is for disclosing the best mode of the present invention.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure the understanding of this description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, in order to streamline this disclosure and to facilitate an understanding of one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or its description. This method of disclosure, however, is not to be interpreted as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the Detailed Description are hereby expressly incorporated into this Detailed Description, with each claim standing on its own as a separate embodiment of this invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art can understand that the modules in the device in the embodiment can be adaptively changed and arranged in one or more devices different from the embodiment. Modules or units or components in the embodiments may be combined into one module or unit or component, and furthermore may be divided into a plurality of sub-modules or sub-units or sub-assemblies. All features disclosed in this specification (including accompanying claims, abstract and drawings), as well as any method or method so disclosed, may be used in any combination, except that at least some of such features and/or processes or units are mutually exclusive. All processes or units of equipment are combined. Each feature disclosed in this specification (including accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。Furthermore, those skilled in the art will understand that although some embodiments described herein include some features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention. and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的基于内容分发网络CDN的数据同步设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) can be used in practice to implement some or all of the components in the data synchronization device based on the content distribution network CDN according to the embodiment of the present invention. Full functionality. The present invention can also be implemented as an apparatus or an apparatus program (for example, a computer program and a computer program product) for performing a part or all of the methods described herein. Such a program for realizing the present invention may be stored on a computer-readable medium, or may be in the form of one or more signals. Such a signal may be downloaded from an Internet site, or provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means can be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words can be interpreted as names.
本发明公开了A1、一种基于内容分发网络CDN的数据同步方法,所述内容分发网络CDN中包括分发服务器,与所述分发服务器通信的节点服务器,与所述节点服务器通信的客户端,以及,与所述客户端通信的种子资源查询服务器;所述客户端中存储有数据文件的最新特征信息;The invention discloses A1, a data synchronization method based on a content distribution network CDN, the content distribution network CDN includes a distribution server, a node server communicating with the distribution server, a client communicating with the node server, and , a seed resource query server communicating with the client; the latest feature information of the data file is stored in the client;
所述方法包括:The methods include:
所述客户端从为其分配的节点服务器下载数据文件;The client downloads the data file from its assigned node server;
所述客户端依据所述数据文件的最新特征信息,判断所述数据文件是否最新;The client determines whether the data file is up-to-date according to the latest characteristic information of the data file;
若否,则所述客户端向所述种子资源查询服务器提交最新的数据文件的查询请求;If not, the client submits a query request for the latest data file to the seed resource query server;
所述客户端接收所述种子资源查询服务器针对所述请求返回的所述最新的数据文件对应的种子资源信息;The client receives the seed resource information corresponding to the latest data file returned by the seed resource query server for the request;
所述客户端从所述种子资源信息指示的节点服务器和/或客户端侧下载所述最新的数据文件。The client downloads the latest data file from the node server and/or client side indicated by the seed resource information.
A2、如权利要求A1所述的方法,其特征在于,所述客户端从为其分配的节点服务器下载数据文件的步骤包括:A2. The method according to claim A1, wherein the step of downloading the data file from the assigned node server for the client comprises:
客户端接收分发服务器发送的HTTP下载信息;所述HTTP下载信息包括节点服务器的指示信息;The client receives the HTTP download information sent by the distribution server; the HTTP download information includes the instruction information of the node server;
所述客户端依据所述HTTP下载信息连接对应的节点服务器下载数据文件。The client connects to the corresponding node server to download the data file according to the HTTP download information.
A3、如权利要求A2所述的方法,其特征在于,所述客户端依据所述HTTP下载信息连接对应的节点服务器下载数据文件的步骤包括:A3, the method as claimed in claim A2, is characterized in that, the step that described client connects corresponding node server to download data file according to described HTTP download information comprises:
所述客户端依据所述HTTP下载信息连接到对应的节点服务器,从所述节点服务器中多个预置的起止位置分段下载所述数据文件;The client is connected to the corresponding node server according to the HTTP download information, and downloads the data file in segments from a plurality of preset start and end positions in the node server;
所述客户端组合所述分段下载获得的数据文件。The client combines the data files obtained by the segment download.
A4、如权利要求A1或A2或A3所述的方法,其特征在于,所述客户端依据所述数据文件的最新特征信息,判断所述数据文件是否最新的步骤包括:A4. The method according to claim A1 or A2 or A3, wherein the step of determining whether the data file is up-to-date according to the latest characteristic information of the data file by the client comprises:
所述客户端依据所述数据文件计算当前特征信息;The client calculates current feature information according to the data file;
所述客户端判断所述最新特征信息与当前特征信息是否一致;The client judges whether the latest characteristic information is consistent with the current characteristic information;
若是,则所述客户端判断所述数据文件为最新;If so, then the client judges that the data file is the latest;
若否,则所述客户端判断所述数据文件不为最新。If not, the client determines that the data file is not the latest.
A5、如权利要求A4所述的方法,其特征在于,所述最新特征信息为最新数据文件的数据内容标识,所述当前特征信息为当前数据文件的数据内容标识。A5. The method according to claim A4, wherein the latest feature information is the data content identifier of the latest data file, and the current feature information is the data content identifier of the current data file.
A6、如权利要求A4所述的方法,其特征在于,所述最新数据文件的数据内容标识为最新数据文件的MD5值;所述当前数据文件的数据内容标识为当前数据文件的MD5值。A6. The method according to claim A4, wherein the data content of the latest data file is identified as the MD5 value of the latest data file; the data content of the current data file is identified as the MD5 value of the current data file.
A7、如权利要求A6所述的方法,其特征在于,所述种子资源信息包括一条或多条P2SP下载索引信息,在所述客户端从所述种子资源信息指示的节点服务器和/或客户端侧下载所述最新的数据文件的步骤后,所述方法还包括:A7. The method according to claim A6, wherein the seed resource information includes one or more pieces of P2SP download index information, and the node server and/or client end indicated by the seed resource information at the client end After the step of side downloading the latest data file, the method further includes:
所述客户端上报自身的P2SP下载索引信息至所述种子资源查询服务器。The client reports its own P2SP download index information to the seed resource query server.
A8、如权利要求A7所述的方法,其特征在于,还包括:A8. The method according to claim A7, further comprising:
若所述客户端依据所述数据文件的最新特征信息,判断所述数据文件为最新,则上报自身的P2SP下载索引信息至种子资源查询服务器。If the client judges that the data file is the latest according to the latest feature information of the data file, it reports its own P2SP download index information to the seed resource query server.
A9、如权利要求A7所述的方法,其特征在于,所述HTTP下载信息包括统一资源定位符URL;所述P2SP下载索引信息包括文件的存放位置,文件大小,文件所在服务器和/或客户端的地址,和/或文件发布者的地址。A9. The method according to claim A7, wherein the HTTP download information includes a Uniform Resource Locator URL; the P2SP download index information includes the storage location of the file, the size of the file, and the location of the server and/or the client where the file is located. address, and/or the address of the publisher of the document.
本发明还公开了B10、一种基于内容分发网络CDN的数据同步方法,所述内容分发网络CDN中包括分发服务器,与所述分发服务器通信的节点服务器,与所述节点服务器通信的客户端,以及,与所述客户端通信的种子资源查询服务器;所述客户端中存储有数据文件的最新特征信息;The present invention also discloses B10, a data synchronization method based on a content distribution network CDN, wherein the content distribution network CDN includes a distribution server, a node server communicating with the distribution server, a client communicating with the node server, And, the seed resource query server communicated with the client; the latest characteristic information of the data file is stored in the client;
所述方法包括:The methods include:
所述种子资源查询服务器接收客户端发送的最新的数据文件的查询请求;所述请求为所述客户端依据所述数据文件的最新特征信息,判断所述数据文件不为最新时提交;The seed resource query server receives a query request for the latest data file sent by the client; the request is submitted when the client judges that the data file is not the latest according to the latest feature information of the data file;
所述种子资源查询服务器依据所述请求查询所述最新的数据文件的种子资源信息;The seed resource query server queries the seed resource information of the latest data file according to the request;
所述种子资源查询服务器返回所述种子资源信息至所述客户端。The torrent resource query server returns the torrent resource information to the client.
B11、如权利要求B10所述的方法,其特征在于,所述种子资源信息包括一条或多条P2SP下载索引信息,所述方法还包括:B11, the method as claimed in claim B10, is characterized in that, described seed resource information comprises one or more P2SP download index information, and described method also comprises:
所述种子资源查询服务器接收所述客户端上报自身的P2SP下载索引信息。The seed resource query server receives its own P2SP download index information reported by the client.
本发明还公开了C12、一种内容分发网络CDN中的客户端,其中,所述客户端与节点服务器通信,所述节点服务器与分发服务器通信,所述客户端还与种子资源查询服务器通信,并且,所述客户端中存储有数据文件的最新特征信息;The present invention also discloses C12, a client in a content distribution network CDN, wherein the client communicates with a node server, the node server communicates with a distribution server, and the client also communicates with a seed resource query server, And, the latest feature information of the data file is stored in the client;
所述客户端包括:The clients include:
第一下载模块,适于从为其分配的节点服务器下载数据文件;a first download module adapted to download data files from a node server assigned thereto;
判断模块,适于依据所述数据文件的最新特征信息,判断所述数据文件是否最新;若否,则执行提交模块;The judging module is adapted to judge whether the data file is up-to-date according to the latest feature information of the data file; if not, execute the submission module;
提交模块,适于向所述种子资源查询服务器提交最新的数据文件的查询请求;A submission module, adapted to submit a query request for the latest data file to the seed resource query server;
接收模块,适于接收所述种子资源查询服务器针对所述请求返回的所述最新的数据文件对应的种子资源信息;The receiving module is adapted to receive the seed resource information corresponding to the latest data file returned by the seed resource query server for the request;
第二下载模块,适于从所述种子资源信息指示的节点服务器和/或客户端侧下载所述最新的数据文件。The second downloading module is adapted to download the latest data file from the node server and/or client side indicated by the seed resource information.
C13、如权利要求C12所述的客户端,其特征在于,所述第一下载模块包括:C13. The client according to claim C12, wherein the first download module comprises:
HTTP下载信息接收子模块,适于客户端接收分发服务器发送的HTTP下载信息;所述HTTP下载信息包括节点服务器的指示信息;The HTTP download information receiving submodule is suitable for the client to receive the HTTP download information sent by the distribution server; the HTTP download information includes the instruction information of the node server;
连接子模块,适于依据所述HTTP下载信息连接对应的节点服务器下载数据文件。The connection sub-module is adapted to connect to the corresponding node server to download the data file according to the HTTP download information.
C14、如权利要求C13所述的客户端,其特征在于,所述连接子模块包括:C14, the client as claimed in claim C13, is characterized in that, described connection submodule comprises:
分段下载单元,适于依据所述HTTP下载信息连接到对应的节点服务器,从所述节点服务器中多个预置的起止位置分段下载所述数据文件;The segment download unit is adapted to connect to the corresponding node server according to the HTTP download information, and download the data file in segments from a plurality of preset start and end positions in the node server;
组合单元,适于组合所述分段下载获得的数据文件。The combining unit is adapted to combine the data files obtained by the segment downloading.
C15、如权利要求C12或C13或C14所述的客户端,其特征在于,所述判断模块包括:C15. The client as claimed in claim C12 or C13 or C14, wherein the judging module comprises:
计算子模块,适于依据所述数据文件计算当前特征信息;A calculation submodule, adapted to calculate current feature information according to the data file;
判断子模块,适于判断所述最新特征信息与当前特征信息是否一致;若是,则调用第一判定子模块,若否,则调用第二判定子模块;The judging submodule is adapted to judge whether the latest feature information is consistent with the current feature information; if so, call the first judging submodule, and if not, call the second judging submodule;
第一判定子模块,适于判断所述数据文件为最新;The first judging submodule is adapted to judge that the data file is the latest;
第二判定子模块,适于判断所述数据文件不为最新。The second determining submodule is adapted to determine that the data file is not up-to-date.
C16、如权利要求C15所述的客户端,其特征在于,所述最新特征信息为最新数据文件的数据内容标识,所述当前特征信息为当前数据文件的数据内容标识。C16. The client according to claim C15, wherein the latest characteristic information is the data content identifier of the latest data file, and the current characteristic information is the data content identifier of the current data file.
C17、如权利要求C16所述的客户端,其特征在于,所述最新特征信息为最新数据文件的MD5值;所述当前特征信息为当前数据文件的MD5值。C17. The client according to claim C16, wherein the latest feature information is the MD5 value of the latest data file; the current feature information is the MD5 value of the current data file.
C18、如权利要求C17所述的客户端,其特征在于,所述种子资源信息包括一条或多条P2SP下载索引信息,所述装置还包括:C18. The client according to claim C17, wherein the seed resource information includes one or more pieces of P2SP download index information, and the device also includes:
第一上报模块,适于上报自身的P2SP下载索引信息至所述种子资源查询服务器。The first reporting module is adapted to report its own P2SP download index information to the seed resource query server.
C19、如权利要求C18所述的客户端,其特征在于,还包括:C19. The client according to claim C18, further comprising:
第二上报模块,适于在依据所述数据文件的最新特征信息,判断所述数据文件为最新时,上报自身的P2SP下载索引信息至种子资源查询服务器。The second reporting module is adapted to report its own P2SP download index information to the seed resource query server when judging that the data file is the latest according to the latest characteristic information of the data file.
C20、如权利要求C18所述的客户端,其特征在于,所述HTTP下载信息包括统一资源定位符URL;所述P2SP下载索引信息包括文件的存放位置,文件大小,文件所在服务器和/或客户端的地址,和/或文件发布者的地址。C20. The client according to claim C18, wherein the HTTP download information includes a Uniform Resource Locator URL; the P2SP download index information includes the storage location of the file, the file size, the server where the file is located and/or the client the address of the client, and/or the address of the file publisher.
本发明还公开了D21、一种基于内容分发网络CDN的数据同步的种子资源查询服务器,其中,所述种子资源查询服务器与客户端通信,所述客户端与节点服务器通信,所述节点服务器与分发服务器通信,其中,所述客户端中存储有数据文件的最新特征信息;The present invention also discloses D21, a seed resource query server based on data synchronization of content distribution network CDN, wherein, the seed resource query server communicates with a client, the client communicates with a node server, and the node server communicates with Distributing server communication, wherein, the latest feature information of the data file is stored in the client;
所述种子资源查询服务器包括:The seed resource query server includes:
接收模块,适于接收客户端发送的最新的数据文件的查询请求;所述请求为所述客户端依据所述数据文件的最新特征信息,判断所述数据文件不为最新时提交;The receiving module is adapted to receive the query request of the latest data file sent by the client; the request is submitted when the client judges that the data file is not the latest according to the latest feature information of the data file;
查询模块,适于依据所述请求查询所述最新的数据文件的种子资源信息;A query module, adapted to query the seed resource information of the latest data file according to the request;
返回模块,适于返回所述种子资源信息至所述客户端。A return module, adapted to return the seed resource information to the client.
D22、如权利要求D21所述的种子资源查询服务器,其特征在于,所述种子资源信息包括一条或多条P2SP下载索引信息,所述种子资源查询服务器还包括:D22. The seed resource query server according to claim D21, wherein the seed resource information includes one or more pieces of P2SP download index information, and the seed resource query server also includes:
下载信息接收模块,适于接收所述客户端上报自身的P2SP下载索引信息。The download information receiving module is adapted to receive the P2SP download index information reported by the client.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310684099.7A CN103634410B (en) | 2013-12-12 | 2013-12-12 | Data synchronization method based on content distribution network (CDN), client end and server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310684099.7A CN103634410B (en) | 2013-12-12 | 2013-12-12 | Data synchronization method based on content distribution network (CDN), client end and server |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103634410A true CN103634410A (en) | 2014-03-12 |
| CN103634410B CN103634410B (en) | 2017-01-11 |
Family
ID=50215026
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310684099.7A Active CN103634410B (en) | 2013-12-12 | 2013-12-12 | Data synchronization method based on content distribution network (CDN), client end and server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103634410B (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106909427A (en) * | 2017-03-23 | 2017-06-30 | 北京奇虎科技有限公司 | A kind of Oftware updating method, device and software update data dissemination method, system |
| CN106919843A (en) * | 2017-01-24 | 2017-07-04 | 北京奇虎科技有限公司 | Leak repair system, method and apparatus |
| CN107493346A (en) * | 2017-09-07 | 2017-12-19 | 广州南翼信息科技有限公司 | Resource file caching dissemination system and method based on multi-medium information spreading system |
| CN111104376A (en) * | 2019-12-19 | 2020-05-05 | 湖南快乐阳光互动娱乐传媒有限公司 | Resource file query method and device |
| CN112436974A (en) * | 2020-07-29 | 2021-03-02 | 上海哔哩哔哩科技有限公司 | CDN data resource consistency detection method and device and computer equipment |
| CN113448601A (en) * | 2021-08-30 | 2021-09-28 | 阿里云计算有限公司 | Software package installation method, device, equipment and system based on content distribution network |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070276823A1 (en) * | 2003-05-22 | 2007-11-29 | Bruce Borden | Data management systems and methods for distributed data storage and management using content signatures |
| US7653640B2 (en) * | 2006-07-31 | 2010-01-26 | Microsoft Corporation | Two-way and multi-master synchronization over web syndications |
| CN101656652A (en) * | 2008-08-21 | 2010-02-24 | 中国移动通信集团公司 | Content synchronization method, equipment and system for dynamic content delivery |
| CN101741569A (en) * | 2009-12-24 | 2010-06-16 | 中兴通讯股份有限公司 | Data synchronization method, data synchronization system, client and server |
| CN101867613A (en) * | 2010-06-08 | 2010-10-20 | 中兴通讯股份有限公司 | Content delivery CDN sub system and data synchronization method |
| CN102541918A (en) * | 2010-12-30 | 2012-07-04 | 阿里巴巴集团控股有限公司 | Method and equipment for identifying repeated information |
-
2013
- 2013-12-12 CN CN201310684099.7A patent/CN103634410B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070276823A1 (en) * | 2003-05-22 | 2007-11-29 | Bruce Borden | Data management systems and methods for distributed data storage and management using content signatures |
| US7653640B2 (en) * | 2006-07-31 | 2010-01-26 | Microsoft Corporation | Two-way and multi-master synchronization over web syndications |
| CN101656652A (en) * | 2008-08-21 | 2010-02-24 | 中国移动通信集团公司 | Content synchronization method, equipment and system for dynamic content delivery |
| CN101741569A (en) * | 2009-12-24 | 2010-06-16 | 中兴通讯股份有限公司 | Data synchronization method, data synchronization system, client and server |
| CN101867613A (en) * | 2010-06-08 | 2010-10-20 | 中兴通讯股份有限公司 | Content delivery CDN sub system and data synchronization method |
| CN102541918A (en) * | 2010-12-30 | 2012-07-04 | 阿里巴巴集团控股有限公司 | Method and equipment for identifying repeated information |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106919843A (en) * | 2017-01-24 | 2017-07-04 | 北京奇虎科技有限公司 | Leak repair system, method and apparatus |
| CN106919843B (en) * | 2017-01-24 | 2020-08-28 | 北京奇虎科技有限公司 | Vulnerability repair system, method and device |
| CN106909427A (en) * | 2017-03-23 | 2017-06-30 | 北京奇虎科技有限公司 | A kind of Oftware updating method, device and software update data dissemination method, system |
| CN107493346A (en) * | 2017-09-07 | 2017-12-19 | 广州南翼信息科技有限公司 | Resource file caching dissemination system and method based on multi-medium information spreading system |
| CN111104376A (en) * | 2019-12-19 | 2020-05-05 | 湖南快乐阳光互动娱乐传媒有限公司 | Resource file query method and device |
| CN111104376B (en) * | 2019-12-19 | 2023-04-07 | 湖南快乐阳光互动娱乐传媒有限公司 | Resource file query method and device |
| CN112436974A (en) * | 2020-07-29 | 2021-03-02 | 上海哔哩哔哩科技有限公司 | CDN data resource consistency detection method and device and computer equipment |
| CN112436974B (en) * | 2020-07-29 | 2021-12-24 | 上海哔哩哔哩科技有限公司 | CDN data resource consistency detection method and device and computer equipment |
| CN113448601A (en) * | 2021-08-30 | 2021-09-28 | 阿里云计算有限公司 | Software package installation method, device, equipment and system based on content distribution network |
| CN113448601B (en) * | 2021-08-30 | 2022-01-11 | 阿里云计算有限公司 | Software package installation method, device, equipment and system based on content distribution network |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103634410B (en) | 2017-01-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103634410B (en) | Data synchronization method based on content distribution network (CDN), client end and server | |
| CN106412137B (en) | A file download system and file download method | |
| CN104468817B (en) | Realization method and device for downloading resources through CDN, server, client | |
| US10491657B2 (en) | Network acceleration method, apparatus and device based on router device | |
| CN103036967B (en) | A download management device, method and data download system | |
| CN103731451B (en) | A kind of method and system that file uploads | |
| CN110572422B (en) | Data downloading method, device, equipment and medium | |
| CN103024052B (en) | Realize the system and method that browser data synchronizes | |
| CN102984278B (en) | Realize the system and method that browser data synchronizes | |
| CN101409706A (en) | Method, system and relevant equipment for distributing data of edge network | |
| WO2017190641A1 (en) | Crawler interception method and device, server terminal and computer readable medium | |
| CN110430274A (en) | A kind of document down loading method and system based on cloud storage | |
| JP2016517551A (en) | Method, computer system and computer program for performing integrity check and selective deduplication based on network parameters | |
| CN109995866A (en) | Distributed document method of calibration, device, computer installation and storage medium | |
| CN104636437B (en) | A kind of processing method and processing device of event notification method, monitor | |
| CN105337961A (en) | Method for communication with client side and server | |
| CN103297447B (en) | A kind of resource share method and its equipment | |
| CN103547339B (en) | File uploading method, client side and server side | |
| CN106453460B (en) | File distribution method, device and system | |
| CN104486291A (en) | Method, device and system for building connection | |
| CN103685511A (en) | Data distributing method, device and system | |
| CN102984277B (en) | Prevent the system and method that malice connects | |
| WO2013143367A1 (en) | Method and system for resource download | |
| CN104580428B (en) | A kind of data routing method, data administrator and distributed memory system | |
| CN108494875A (en) | A kind of method and apparatus of feedback resources file |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C41 | Transfer of patent application or patent right or utility model | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20161212 Address after: 100015 Jiuxianqiao Chaoyang District Beijing Road No. 10, building 15, floor 17, layer 1701-26, 3 Applicant after: BEIJING QIANXIN TECHNOLOGY Co.,Ltd. Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park) Applicant before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Applicant before: Qizhi software (Beijing) Co.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CB03 | Change of inventor or designer information | ||
| CB03 | Change of inventor or designer information |
Inventor after: Cai Dongbin Inventor after: Meng Jun Inventor after: Liu Xuezhong Inventor after: Yang Xiaobo Inventor after: Wang Dongyu Inventor before: Cai Dongbin Inventor before: Yang Xiaobo Inventor before: Wang Dongyu |
|
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: 100032 NO.332, 3rd floor, Building 102, 28 xinjiekouwai street, Xicheng District, Beijing Patentee after: QAX Technology Group Inc. Address before: 100015 15, 17 floor 1701-26, 3 building, 10 Jiuxianqiao Road, Chaoyang District, Beijing. Patentee before: BEIJING QIANXIN TECHNOLOGY Co.,Ltd. |