Summary of the invention
Embodiments of the invention provide a kind of data processing method, Apparatus and system of content distributing network, and the bandwidth that can solve content distributing network of the prior art exists very large waste, the lower problem of bandwidth availability ratio of content distributing network.
For achieving the above object, the present invention adopts following technical scheme:
First aspect, the embodiment of the present invention provides a kind of data processing method of content distributing network, comprising:
Obtain the version information of data file;
According to the version information of described data file, judge the whether meaningful renewal of described data file;
If the meaningful renewal of described data file, obtains the corresponding data file of described version information from content distributing network server.
Second aspect, the embodiment of the present invention provides a kind of data processing equipment of content distributing network, comprising:
Acquiring unit, for obtaining the version information of data file;
Judging unit, judges the whether meaningful renewal of described data file for the version information of the data file obtained according to described acquiring unit;
Described acquiring unit, if also obtain the meaningful renewal of described data file for described judging unit judgement, obtains the corresponding data file of described version information from content distributing network server.
The third aspect, the embodiment of the present invention provides a kind of data handling system of content distributing network, comprises data processing equipment and the content distributing network server of content distributing network, wherein,
The data processing equipment of described content distributing network, for obtaining the version information of data file, and judge the whether meaningful renewal of described data file according to the version information of described data file, if the meaningful renewal of described data file, obtains the corresponding data file of described version information from content distributing network server;
Described content distributing network server, for sending to the corresponding data file of described version information the data processing equipment of described content distributing network.
The embodiment of the present invention provides data processing method, the Apparatus and system of content distributing network, obtained the version information of data file, and judge the whether meaningful renewal of described data file according to the version information of described data file, if the meaningful renewal of described data file, obtains the corresponding data file of described version information from content distributing network server.And the no matter whether meaningful renewal of data file in prior art all can be obtained described data file frequently, when data file does not have content update, there is very large waste in the bandwidth of content distributing network, and the bandwidth availability ratio of content distributing network is lower.Therefore, the mode of the data processing of content distributing network of the present invention is when the meaningful renewal of data file, obtaining of the data file of upgrading, and when data file does not have content update, repeated obtain data file not, the waste of the bandwidth of content distributing network can be reduced, the bandwidth availability ratio of content distributing network can be promoted.
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 only 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.
For making the advantage of technical solution of the present invention clearer, below in conjunction with drawings and Examples, the present invention is elaborated.
As shown in Figure 1, the data processing method of the content distributing network that the embodiment of the present invention provides, comprising:
101, obtain the version information of data file.
Described data file can comprise static data content, the HTML of number of site (Hypertext Markup Language for example, abbreviation HTML) data content, Cascading Style Sheet (Cascading Style Sheet, abbreviation CSS) data content, webpage pinup picture etc., but be not only confined to this.Described version information can comprise the version number of described data file, and the content of the data file of different editions number is different.The version information of described data file can obtain from Website server, and described Website server is for issuing the data file that described version information is corresponding, and described Website server can store user at the log-on message of this website, as account information etc.
102, according to the version information of described data file, judge the whether meaningful renewal of described data file.
Concrete, can get from Website server the version number of data file, and obtain the city edition this shop of the data file of local cache, described version number and described city edition this shop are compared, if described version number is identical with described city edition this shop, represent that described data file does not have content update, follow-up by the data file of this version number of repeated obtain not; If described version number is not identical with described city edition this shop, represent the meaningful renewal of described data file.
If the meaningful renewal of 103 described data file, obtains the corresponding data file of described version information from content distributing network server.
Concrete, if the meaningful renewal of described data file, Website server generally can be published to each content distributing network (Content Delivery Network by the data file after upgrading, be called for short CDN) server place, can obtain the corresponding data file of described version information from described content distributing network server.
What deserves to be explained is, the executive agent of the embodiment of the present invention can be a kind of data processing equipment of content distributing network, can be arranged in the program that need to obtain data file, and such as web browser, application program etc., but be not only confined to this.
The data processing method of the content distributing network that the embodiment of the present invention provides, obtained the version information of data file, and judge the whether meaningful renewal of described data file according to the version information of described data file, if the meaningful renewal of described data file, obtains the corresponding data file of described version information from content distributing network server.And the no matter whether meaningful renewal of data file in prior art all can be obtained described data file frequently, when data file does not have content update, there is very large waste in the bandwidth of content distributing network, and the bandwidth availability ratio of content distributing network is lower.Therefore, the mode of the data processing of content distributing network of the present invention is when the meaningful renewal of data file, obtaining of the data file of upgrading, and when data file does not have content update, repeated obtain data file not, the waste of the bandwidth of content distributing network can be reduced, the bandwidth availability ratio of content distributing network can be promoted.
As shown in Figure 2, the data processing method of the content distributing network that further embodiment of this invention provides, comprising:
201, obtain the version information of the data file of Website server issue.
Described data file can comprise static data content, such as the hypertext markup language data content of number of site, Cascading Style Sheet data content, webpage pinup picture etc., but is not only confined to this.Described version information can comprise the version number of described data file, and the content of the data file of different editions number is different.Described Website server is for issuing the data file that described version information is corresponding, and described Website server can store user at the log-on message of this website, as account information etc.If the meaningful renewal of data file, for example the version number of a data file is V1.0 before upgrading, and after upgrading, is V1.1, and Website server can be published to the data file of this V1.1 version content distributing network server place everywhere.
In the time of specifically can need to obtaining the program of data file by unlatching, such as web browser, application program etc., triggers step 201.For example, may there is renewal in the webpage pinup picture that carries out web game, web game by web browser, therefore, when opening web game, can trigger step 201, to carry out the renewal of the static data content of web game.
202, obtain the city edition this shop of the data file of terminal local cache.
Described in buffer memory, the terminal of data file can be desktop computer, notebook computer, smart mobile phone, panel computer etc., but is not only confined to this.
203, judge that whether the version number of data file of city edition this shop and Website server issue of data file of terminal local cache is identical.If described city edition this shop is not identical with the version number of the data file of described Website server issue, execution step 204.If described city edition this shop is identical with the version number of the data file of described Website server issue, execution step 205.
204, determine the meaningful renewal of described data file.Afterwards, continue execution step 206.
205, determine that described data file does not have content update.Afterwards, continue execution step 207.
206, from content distributing network server, obtain the corresponding data file of described version information.Afterwards, continue execution step 208.
If the meaningful renewal of described data file, Website server generally can be published to each content distributing network server place by the data file after upgrading, and can obtain the corresponding data file of described version information from described content distributing network server.
207, the data file that adds mounted terminal local cache.
If described data file does not have content update, can continue to apply the data file of local cache, and without the data file that repeats again to obtain identical version number from content distributing network server, avoid the bandwidth waste of content distributing network.
208, delete the data file of described terminal local cache.
For fear of terminal this locality, store too much data file, especially the system storage resource of the data file occupied terminal of legacy version, from content distributing network server gets the data file of redaction, can delete the data file of the legacy version of terminal local cache.
209, store the corresponding data file of described version information, and load the corresponding data file of described version information.
The corresponding data file of the described version information of described storage, it can be the one default period of storage, the described default time can arrange one longer period, the time of this longer generally need to be greater than the update time of data file, for example be 1 month the update time of data file, the time of this longer can be set to 1 year or 5 years etc., but is not only confined to this.Can guarantee like this after getting the data file of a version, within this default time, by the data file of this version of repeated obtain more not, the data file of same version has only been obtained once on content distributing network server.
What deserves to be explained is, the executive agent of the embodiment of the present invention can be a kind of data processing equipment of content distributing network, can be arranged in the program that need to obtain data file, and such as web browser, application program etc., but be not only confined to this.
The data processing method of the content distributing network providing for the further embodiment of this invention shown in Fig. 2, enumerates a kind of concrete enforcement scene below.For example, the data processing equipment of content distributing network is arranged in web browser, and now web browser need to move web game, terminal this locality buffer memory the data file of this web game, the version number of this data file is V1.0.Web browser is to the version number of the current data file of Website server acquisition request, the version number of Website server return data file, and the version number of new data file is V1.1.Web browser learns the data file of redaction, obtains the data file of V1.1 version from content distributing network server.Web browser loads the data file of V1.1 version, moves described web game, and as upgraded webpage pinup picture in data file, pinup picture during operation web game also can change.In addition, web browser also can be employed program and replace, and above-mentioned web game can be moved by application program.
The data processing method of the content distributing network that further embodiment of this invention provides, obtained the version information of data file, and judge the whether meaningful renewal of described data file according to the version information of described data file, if the meaningful renewal of described data file, obtains the corresponding data file of described version information from content distributing network server.And the no matter whether meaningful renewal of data file in prior art all can be obtained described data file frequently, when data file does not have content update, there is very large waste in the bandwidth of content distributing network, and the bandwidth availability ratio of content distributing network is lower.Therefore, the mode of the data processing of content distributing network of the present invention is when the meaningful renewal of data file, obtaining of the data file of upgrading, and when data file does not have content update, repeated obtain data file not, the waste of the bandwidth of content distributing network can be reduced, the bandwidth availability ratio of content distributing network can be promoted.
The data processing equipment of the content distributing network that the embodiment of the present invention provides, as shown in Figure 3, the data processing equipment of described content distributing network, comprising:
Acquiring unit 31, for obtaining the version information of data file.
Judging unit 32, judges the whether meaningful renewal of described data file for the version information of the data file obtained according to described acquiring unit 31.
Described acquiring unit 31, if also obtain the meaningful renewal of described data file for described judging unit 32 judgements, obtains the corresponding data file of described version information from content distributing network server.
Further, as shown in Figure 4, described acquiring unit 31 for:
Obtain the version information of the data file of Website server issue.
Concrete, the version information of described data file comprises the version number of described data file.
Concrete, as shown in Figure 4, described judging unit 32, comprising:
Whether judge module 321 is identical for judging the version number of the data file that the city edition this shop of the data file of terminal local cache issues with Website server.
Determination module 322, if not identical with the version number of the data file of described Website server issue for described city edition this shop, determines the meaningful renewal of described data file.
Further, as shown in Figure 4, described device, also comprises:
Delete cells 33, for deleting the data file of described terminal local cache.
Further, as shown in Figure 4, described device, also comprises:
Memory cell 34, the corresponding data file of described version information of obtaining for storing described acquiring unit 31.
What deserves to be explained is, the specific implementation of the data processing equipment of the content distributing network that the embodiment of the present invention provides can, referring to the specific implementation of Fig. 2, repeat no more herein.
The data processing equipment of the content distributing network that the embodiment of the present invention provides, obtained the version information of data file, and judge the whether meaningful renewal of described data file according to the version information of described data file, if the meaningful renewal of described data file, obtains the corresponding data file of described version information from content distributing network server.And the no matter whether meaningful renewal of data file in prior art all can be obtained described data file frequently, when data file does not have content update, there is very large waste in the bandwidth of content distributing network, and the bandwidth availability ratio of content distributing network is lower.Therefore, the mode of the data processing of content distributing network of the present invention is when the meaningful renewal of data file, obtaining of the data file of upgrading, and when data file does not have content update, repeated obtain data file not, the waste of the bandwidth of content distributing network can be reduced, the bandwidth availability ratio of content distributing network can be promoted.
As shown in Figure 5, the data handling system of the content distributing network that the embodiment of the present invention provides, comprises data processing equipment 41 and the content distributing network server 42 of content distributing network, wherein,
The data processing equipment 41 of described content distributing network, for obtaining the version information of data file, and judge the whether meaningful renewal of described data file according to the version information of described data file, if the meaningful renewal of described data file, obtains the corresponding data file of described version information from content distributing network server 42.
Described content distributing network server 42, for sending to the corresponding data file of described version information the data processing equipment 41 of described content distributing network.
What deserves to be explained is, the specific implementation of the data handling system of the content distributing network that the embodiment of the present invention provides can, referring to the embodiment of Fig. 2, repeat no more herein.
The data handling system of the content distributing network that the embodiment of the present invention provides, the data processing equipment of content distributing network has obtained the version information of data file, and judge the whether meaningful renewal of described data file according to the version information of described data file, if the meaningful renewal of described data file, obtains the corresponding data file of described version information from content distributing network server.And the no matter whether meaningful renewal of data file in prior art all can be obtained described data file frequently, when data file does not have content update, there is very large waste in the bandwidth of content distributing network, and the bandwidth availability ratio of content distributing network is lower.Therefore, the mode of the data processing of content distributing network of the present invention is when the meaningful renewal of data file, obtaining of the data file of upgrading, and when data file does not have content update, repeated obtain data file not, the waste of the bandwidth of content distributing network can be reduced, the bandwidth availability ratio of content distributing network can be promoted.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential common hardware by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium can read, as the floppy disk of computer, hard disk or CD etc., comprise some instructions with so that computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by the described protection range with claim.