CN106412128A - Method, device, file packing server and client of patch downloading - Google Patents

Method, device, file packing server and client of patch downloading Download PDF

Info

Publication number
CN106412128A
CN106412128A CN201611116188.1A CN201611116188A CN106412128A CN 106412128 A CN106412128 A CN 106412128A CN 201611116188 A CN201611116188 A CN 201611116188A CN 106412128 A CN106412128 A CN 106412128A
Authority
CN
China
Prior art keywords
key
download information
patch
tarkey
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611116188.1A
Other languages
Chinese (zh)
Other versions
CN106412128B (en
Inventor
李金国
娄光兴
魏自立
陈雄
赵建锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qizhi Business Consulting Co ltd
Beijing Qihoo Technology Co Ltd
360 Digital Security Technology Group Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201611116188.1A priority Critical patent/CN106412128B/en
Publication of CN106412128A publication Critical patent/CN106412128A/en
Application granted granted Critical
Publication of CN106412128B publication Critical patent/CN106412128B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method, device, file packing server and client of patch downloading. The method comprises that the client sends an information downloading request message to a patch updating server; a patch update server receives the information downloading request message sent by the client, determines a corresponding tarKey according to the at least one key included in the information downloading request message, searches download information corresponding to the tarKey, and returns the searched download information to the client; according to the download information, the client downloads a zip file which includes a diff file corresponding to the at least one key from a CDN server, and the file packing server packs the diff file corresponding to each of the at least one key into a package, and uploads the package to the CDN server.

Description

Method, device, file packaged service device and client that patch is downloaded
Technical field
The present invention relates to field of computer technology, specifically, the present invention relates to a kind of patch download method, device, File packaged service device and client.
Background technology
There are some problems in use in large software system, if these problems are sent out by hacker or viral design person Existing, according to the problems referred to above, user equipment will be attacked or by design virus, user equipment be attacked, and lead to use Family equipment is impaired or user profile is revealed, and therefore user needs to download some patches, changes in above-mentioned large software system Problem, it is to avoid the software systems in computer attacked impaired, therefore how to realize patch download become a major issue.
At present, a kind of method that patch is downloaded, when patch updates server, to receive carrying of client transmission multiple close Key (English full name:Key patch request message), patch updates server and needs to search the corresponding lower information carrying of each key respectively Breath, and corresponding for each key download information is back to client, and then client is according to the corresponding download information of each key, Successively from content distributing network (English full name:Content Delivery Network, english abbreviation:CDN under) in server Carry patch.
However, when patch is downloaded from CDN server by said method, if client needs to download multiple key pairs The patch answered, then patch update server need to search the corresponding download information of each key successively and need according to each key pair The download address answered repeatedly accesses CDN server, and downloads patch from this CDN server, due to needing to search successively each The corresponding download information of key, and repeatedly download patch file, thus leading to the time downloading patch file longer, and need Repeatedly access CDN server, download the corresponding patch file of each key, so lead to the visit capacity to CDN server larger, Larger to the demand of user bandwidth.
Content of the invention
For overcoming above-mentioned technical problem or solving above-mentioned technical problem at least in part, special proposition technical scheme below:
The embodiment provides a kind of what patch was downloaded method, including:
Patch updates server and receives the download information request message that client sends, in described download information request message Carry at least one key Key, described download information request message is used for asking the described corresponding lower information carrying of at least one Key Breath;
Determine described at least one Key corresponding compression key tarKey, and search described tarkey pair from database The download information answered;
If finding the corresponding download information of described tarKey, corresponding for described tarKey download information is back to institute State client, so that described client is according to download information, download corresponding compressed package from described CDN server, described Compressed package includes at least one key described, and corresponding download command compares text diff file respectively.
Alternatively, after the described step searching the corresponding download information of described tarkey from database, also include:
If not finding the corresponding download information of described tarKey, search each Key pair from described database successively The download information answered, and corresponding for each Key download information is back to described client, so that described client is according to institute State the corresponding download information of each Key, download diff file from described CDN server.
Alternatively, described corresponding for each key download information is back to described client after, also include:
At least one Key described is sent to file packaged service device, so that described file packaged service device obtains institute State each key corresponding diff file at least one key, and corresponding for all key diff file is packaged into compressed package, and It is uploaded to described CDN server.
Specifically, the described step determining described at least one Key corresponding compression key tarKey, including:
At least one key described is spliced, is obtained spliced key;
Described spliced key is spliced with preset keyword, is obtained at least one Key described corresponding tarKey.
Embodiments provide the method that another kind of patch is downloaded, including:
Client updates server to patch and sends download information request message, carries in described download information request message At least one key Key, described download information request message is used for asking the described corresponding download information of at least one Key;
Receive described patch and update the corresponding download information of tarKey that server sends, described tarKey by described at least One Key compression obtains;
According to the corresponding download information of the tarKey receiving, download corresponding compressed package, described pressure from CDN server Contracting includes at least one key described, and corresponding download command compares text diff file respectively.
Alternatively, if receiving the corresponding download information of each key at least one key described, according to basis successively The corresponding download information of each key, downloads corresponding diff file from described CDN server.
Alternatively, if other client needs to download the diff file of download in this client, institute from described CDN State client by the diff file of described download by point-to-point, send to request sender's client.
The method embodiments providing the download of another patch, including:
File packaged service device receives patch and updates at least one key described that server sends;
From locally middle acquisition each key corresponding diff file, and corresponding for all key diff file is packaged into compression Bag;
Described compressed package is uploaded to CDN server.
Alternatively, described described compressed package is uploaded to the step of CDN server after, also include:
Receive the corresponding download information of described compressed package that described CDN server returns, and by described download information with And the corresponding relation write into Databasce of tarKey, described tarKey is the compressed package of this at least one key.
Embodiments provide the device that a kind of patch is downloaded, update server positioned at patch, this device includes:
Receiver module, for receiving the download information request message of client transmission, in described download information request message Carry at least one key Key, described download information request message is used for asking the described corresponding lower information carrying of at least one Key Breath;
Determining module, for determining described at least one Key corresponding compression key tarKey;
Searching modul, for searching the corresponding download information of described tarkey from database;
Return module, for when finding the corresponding download information of described tarKey, under corresponding for described tarKey Information carrying breath is back to described client, so that described client is according to download information, downloads and correspond to from described CDN server Compressed package, described compressed package includes at least one key described, and corresponding download command compares text diff file respectively.
Alternatively, described searching modul, is additionally operable to when not finding the corresponding download information of described tarKey, from described The corresponding download information of each Key is searched successively in database;
Described return module, is additionally operable to for corresponding for each Key download information to be back to described client, so that described Client, according to the corresponding download information of each Key described, downloads diff file from described CDN server.
Alternatively, described device also includes:Sending module;
Described sending module, at least one Key described is sent to file packaged service device, so that described file Packaged service device obtains each key corresponding diff file at least one key described, and corresponding for all key diff is civilian Part is packaged into compressed package, and is uploaded to described CDN server.
Specifically, described determining module, specifically for being spliced at least one key described, obtains spliced key;
Described determining module, is specifically additionally operable to be spliced described spliced key with preset keyword, obtains described The corresponding tarKey of at least one Key.
Embodiments provide the client that a kind of patch is downloaded, including:
Sending module, sends download information request message for updating server to patch, described download information request disappears At least one key Key is carried, described download information request message is used for asking the described corresponding download of at least one Key in breath Information;
Receiver module, updates, for receiving described patch, the corresponding download information of tarKey that server sends, described TarKey is compressed by least one Key described and obtains;
Download module, for according to the corresponding download information of tarKey receiving, downloading corresponding from CDN server Compressed package, described compressed package includes at least one key described, and corresponding download command compares text diff file respectively.
Alternatively, described download module, is additionally operable to when the corresponding download of each key at least one key described in receiving During information, successively according to the corresponding download information of each key, download corresponding diff file from described CDN server.
Alternatively, described sending module, is additionally operable to need to download in this client from described CDN when other clients During the diff file downloaded, the diff file of described download is passed through point-to-point, send to request sender's client.
Embodiments provide the file packaged service device that a kind of patch is downloaded, including:
Receiver module, updates at least one key described in server transmission for receiving patch;
Acquisition module, for from locally middle acquisition each key corresponding diff file;
Packetization module, for being packaged into compressed package by corresponding for all key diff file;
Upper transmission module, for being uploaded to CDN server by described compressed package.
Alternatively, described file packaged service device also includes:Writing module;
Described receiver module, is additionally operable to receive the corresponding download information of described compressed package that described CDN server returns;
Said write module, for by the corresponding relation write into Databasce of described download information and tarKey, described TarKey is the compressed package of this at least one key.
The invention provides method, device, packaged service device and client that a kind of patch is downloaded, with prior art phase In the present invention, client updates server transmission download information request message to patch to ratio, and then patch updates server and receives Client send download information request message, and determined according at least one key carrying in download information request message right The tarKey answering, and search the corresponding download information of this tarKey, and the download information finding is back to client, then Client download package pressure containing above-mentioned at least one key corresponding diff file of difference from CDN server according to download information Contracting is wrapped, and that is, patch updates server and only needs to access a database according to tarKey, searches download information, and only needs root Accessing a CDN server according to download information, downloading the compressed package of the corresponding diff file of above-mentioned all key, thus reducing visit Ask the number of times of CDN server, reduce the duration downloading patch file, and because client only needs to access a CDN server, And then the visit capacity to CDN server can be reduced, reduce the demand to user bandwidth.
File packaged service device of the present invention is by being packaged into pressure by each key corresponding diff file at least one key Contracting bag, and is uploaded to CDN server, enable to client access CDN server can download above-mentioned at least one Each key corresponding diff file in key, such that it is able to reduce the number of times accessing CDN server, reduces and downloads patch file Duration, and then the visit capacity to CDN server can be reduced, reduce the demand to user bandwidth.
The aspect that the present invention adds and advantage will be set forth in part in the description, and these will become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description
The above-mentioned and/or additional aspect of the present invention and advantage will become from the following description of the accompanying drawings of embodiments Substantially and easy to understand, wherein:
Fig. 1 is the system schematic of the download patch of the embodiment of the present invention;
Fig. 2 is a kind of embodiment of the method for patch download of the embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram of patch download of the embodiment of the present invention;
Fig. 4 is the structural representation of the client of patch download of the embodiment of the present invention;
Fig. 5 is the file packaged service device of the patch download of the embodiment of the present invention.
Specific embodiment
Embodiments of the invention are described below in detail, the example of described embodiment is shown in the drawings, wherein from start to finish The element that same or similar label represents same or similar element or has same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " " used herein, " Individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that arranging used in the specification of the present invention Diction " inclusion " refers to there is described feature, integer, step, operation, element and/or assembly, but it is not excluded that existing or adding Other features one or more, integer, step, operation, element, assembly and/or their group.It should be understood that when we claim unit Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist Intermediary element.Additionally, " connection " used herein or " coupling " can include wirelessly connecting or wirelessly coupling.Used herein arrange Diction "and/or" includes one or more associated list the whole of item or any cell and combines with whole.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (include technology art Language and scientific terminology), there is the general understanding identical meaning with the those of ordinary skill in art of the present invention.Also should Be understood by, those terms defined in such as general dictionary it should be understood that have with the context of prior art in The consistent meaning of meaning, and unless by specific definitions as here, otherwise will not use idealization or excessively formal implication To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " had both included wireless communication The equipment of number receiver, it only possesses the equipment of the wireless signal receiver of non-emissive ability, includes receiving and transmitting hardware again Equipment, its have the reception that two-way communication on bidirectional communication link, can be carried out and transmitting hardware equipment.This equipment Can include:Honeycomb or other communication equipments, it has single line display or multi-line display or does not have multi-line to show The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), it can With combine voice, data processing, fax and/or its communication ability;PDA (PersonalDigital Assistant, personal Digital assistants), it can include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day Go through and/or GPS (Global PositioningSystem, global positioning system) receiver;Conventional laptop and/or hand held Computer or other equipment, its have and/or include the conventional laptop of radio frequency receiver and/or palmtop computer or other Equipment." terminal " used herein above, " terminal device " can be portable, can transport, be arranged on the vehicles (aviation, sea Fortune and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on Network termination, music/video playback terminal, for example, can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or there is mobile phone or the equipment such as intelligent television, Set Top Box of music/video playing function.
The embodiment of the present invention provides a kind of method that patch is downloaded, and is applied to download the system of patch, as shown in figure 1, should System includes client, patch updates server, Windows server update service (English full name:Windows Server Update Services, english abbreviation:Wsus) file server, file packaged service device, CDN server and download information Database, wherein, client and patch update server and carry out information exchange, patch renewal server and wsus server, literary composition Part packaged service device and unloading information data storehouse carry out information exchange, file packaged service device, wsus file server respectively Carry out information exchange with CDN server, file packaged service device and unloading information data storehouse carry out information exchange.
Embodiment one
Embodiments provide a kind of method that patch is downloaded, as shown in Fig. 2 the method comprises the steps:
Step 201, client update server to patch and send download information request message.
Wherein, carry at least one key Key in download information request message, download information request message is used for request extremely The corresponding download information of a few Key.
For the embodiment of the present invention, download information can include:Download seed and check value.
Step 202, patch update server and receive the download information request message that client sends.
Step 203, patch update server and determine at least one Key corresponding compression key tarKey.
For the embodiment of the present invention, patch updates server by least one Key above-mentioned, is obtained by TarKey algorithm TarKey.Wherein, this at least one Key can be 3 Key.
For example, at least one key above-mentioned is spliced, then splices with keyword " keyofkeys " again, obtain a key, Then splice with KEYOFKEYS again, obtain TarKey.
Step 204, patch update server and search the corresponding download information of tarkey from database.
For the embodiment of the present invention, the difference that patch renewal server finds above-mentioned 3 key from database is corresponding Download information.
For example, the download information finding can be:The corresponding download address of first key, the 2nd key are corresponding to download ground Location and the corresponding download address of the 3rd key.
For the embodiment of the present invention, using database, all of key can classified, then every class key is being carried out point Then every class key is defined as the specific pattern repelled each other insertion database by class.For example, the beginning in a key is spliced KEYOFKEYS, when bulk lookup download information it is only necessary to notification database processes the key meeting corresponding modes.
For example, when needing to delete the corresponding download information of all compressed packages in database it is only necessary to search above-mentioned lattice The corresponding download information of formula key is simultaneously deleted it is not necessary to find the download information of compressed package each key corresponding successively, from And the time searching download information can be reduced, reduce the number of times accessing data.
If step 205 finds the corresponding download information of tarKey, under patch renewal server will be corresponding for tarKey Information carrying breath is back to client, so that client is according to download information, downloads corresponding compressed package from CDN server.
Wherein, compressed package includes at least one key corresponding download command compares text diff file respectively.
For the embodiment of the present invention, the corresponding download information of tarKey is the corresponding diff file of each key above-mentioned in CDN Corresponding download information on server.The corresponding diff of above-mentioned all key, can be equivalent to a benefit in embodiments of the present invention Fourth file.
Step 206, client receive patch and update the corresponding download information of tarKey that server sends.
Wherein, tarKey is compressed by least one Key and obtains.
Step 207, client, according to the corresponding download information of the tarKey receiving, are downloaded from CDN server and are corresponded to Compressed package.
Wherein, compressed package includes at least one key corresponding download command compares text diff file respectively.
For the embodiment of the present invention, the system of this download patch includes wsus file server, and wherein, wsus file takes Business device, when finding new patch, downloads new patch, and this new patch is generated multiple diff files, and will generate Diff files passe is to CDN server, and the download information of generation is sent to patch renewal server, and therefore client needs Download diff file, obtain patch file.
Embodiments provide a kind of method that patch is downloaded, compared with prior art, visitor in the embodiment of the present invention Family end updates server to patch and sends download information request message, and then patch updates server and receives under client transmission Carry information request message, and corresponding tarKey is determined according at least one key carrying in download information request message, and look into Look for the corresponding download information of this tarKey, and the download information finding is back to client, then client is according to download Information download package from CDN server contains the compressed package of above-mentioned at least one key corresponding diff file of difference, and that is, patch updates Server only needs to access a database according to tarKey, searches download information, and only needs to be accessed according to download information CDN server, downloads the compressed package of the corresponding diff file of above-mentioned all key, thus reduce accessing the secondary of CDN server Number, reduces the duration downloading patch file, and because client only needs to access a CDN server, and then can reduce right The visit capacity of CDN server, reduces the demand to user bandwidth;
Embodiment of the present invention file packaged service device is by playing each key corresponding diff file at least one key Be bundled into compressed package, and be uploaded to CDN server, enable to client access CDN server can download above-mentioned extremely Each key corresponding diff file in a few key, such that it is able to reduce the number of times accessing CDN server, reduces and downloads patch The duration of file, and then the visit capacity to CDN server can be reduced, reduce the demand to user bandwidth.
Embodiment two
The alternatively possible implementation of the embodiment of the present invention, on the basis of as shown in Figure 2, step 204, patch are more The corresponding download information of tarkey searched from database by new demand servicing device, also includes step 305- shown in embodiment two afterwards 307, step 207, client, according to the corresponding download information of the tarKey receiving, download corresponding pressure from CDN server Contracting bag, also includes the step 311 shown in embodiment two, the wherein operation performed by step 301-304,308-310 and step afterwards Rapid operation performed by 201-208 is similar, will not be described here.
If step 305 does not find the corresponding download information of tarKey, patch updates server from database successively Search the corresponding download information of each Key.
For the embodiment of the present invention, if not finding the corresponding download information of tarkey in database, characterizing will not be upper State at least one key to be spliced according to tarKey algorithm, store to database.Therefore, patch update server need according to The corresponding download information of each key in secondary lookup at least one key above-mentioned.
For the embodiment of the present invention, patch updates server and does not find the corresponding download information of tarKey in database It is likely due to there has been no the corresponding diff file of at least one key above-mentioned of client request.In embodiments of the present invention Do not limit.
Step 306, patch update server and corresponding for each Key download information are back to client, so that client Diff file, according to the corresponding download information of each Key, is downloaded from CDN server in end.
For the embodiment of the present invention, patch updates server and searches successively in database at least one key above-mentioned often The corresponding download information of individual key, and the download information finding is back to client.
For example, at least one key above-mentioned includes three key, the respectively the first key, the 2nd key and the 3rd key, its In, patch updates server and finds the corresponding download information of a key, the corresponding download information of the 2nd key and the respectively The corresponding download information of three key, and corresponding for key download information, the 2nd key are corresponded to download information and the 3rd key Corresponding download information is back to client.
If step 307 receives the corresponding download information of each key at least one key, client is according to root successively According to the corresponding download information of each key, download corresponding diff file from CDN server.
For the embodiment of the present invention, because client is sequentially received under at least one key above-mentioned, each key is corresponding Information carrying ceases, and therefore client needs according to the corresponding download information of each key, downloads corresponding successively from CDN server Diff file.
For the embodiment of the present invention, when not finding the corresponding download information of tarKey, patch updates server to be passed through Search the corresponding download information of each key at least one key above-mentioned successively, be obtained in that the corresponding download information of each key, According to the corresponding download information of each key, to find each key corresponding diff file, to obtain patch file, thus can To avoid when not finding the corresponding download information of tarKey in database it is impossible to obtain the situation of diff file.
If step 311 other client needs to download the diff file of download in this client, client from CDN The diff file of download by point-to-point, is sent to request sender's client by end.
For the embodiment of the present invention, if the first client downloads a key, the 2nd key and from CDN server Corresponding diff file or above three key compress the tarKey corresponding diff file obtaining to three key respectively, and second Client is also required to obtain a key, the 2nd key and the 3rd key corresponding diff file or above three key pressure respectively Contract the tarKey corresponding diff file obtaining, then the first client can be by point-to-point mode, by the diff of download File sends to the second client.
For the embodiment of the present invention, client is sent the diff file of download to other clients by point-to-point, It can be avoided that other clients are passed through to access the CDN server corresponding diff file of download, such that it is able to reduce client to CDN The visit capacity of server, and then the access pressure of CDN server can be reduced, reduce the bandwidth demand to client.
Embodiment three
The alternatively possible implementation of the embodiment of the present invention, on the basis of shown in embodiment two, step 303, benefit Fourth updates server and determines at least one Key corresponding compression key tarKey, including the step 403 shown in example IV, its In, the operation performed by 401-402,404-411 is similar to the operation performed by step 301-302,304-311, and here is no longer Repeat.
Step 403, patch update server and are spliced at least one key, obtain spliced key, and will splice Key afterwards and preset keyword are spliced, and obtain the corresponding tarKey of at least one Key.
For the embodiment of the present invention, preset keyword can be keyofkeys and KEYOFKEYS.Implement in the present invention In example, patch updates server and can be spliced at least one key above-mentioned, and key and keyofkeys after splicing, and obtains To a key, then again a key and KEYOFKEYS is spliced, obtained tarKey.
Example IV
The alternatively possible implementation of the embodiment of the present invention, on the basis of embodiment three, step 406, patch are more Corresponding for each Key download information is back to client by new demand servicing device, so that client is according to the corresponding download of each Key Information, after downloading diff file from CDN server, step 507-510 that also includes embodiment three, wherein step 501- 506th, the operation performed by 511-515 is similar to the operation performed by step 401-411, will not be described here.
Step 507, patch update server and send at least one Key to file packaged service device, so that file is beaten Packet server obtains each key corresponding diff file at least one key, and corresponding for all key diff file is packed Become compressed package, and be uploaded to CDN server.
For the embodiment of the present invention, do not find above-mentioned at least one key pair in database when patch updates server During the corresponding download information of tarKey answered, each key above-mentioned is sent to file packaged service device, so that file packing clothes Business device is from the corresponding diff file of locally-downloaded above-mentioned each key, and by corresponding for all key diff file, is compressed into compression Bag, and it is uploaded to CDN server.For the embodiment of the present invention, above-mentioned patch updates server and does not find in database When stating the corresponding download information of the corresponding tarKey of at least one key, it is understood that there may be situations below:
1st, this at least one key corresponding diff file is downloaded in request to client for the first time;
2nd, delete the corresponding download information of this tarKey in database, and in CDN service
This at least one key corresponding diff compressed package is deleted in device.
Step 508, file packaged service device receive patch and update at least one key that server sends.
Step 509, file packaged service device from locally middle acquisition each key corresponding diff file, and by all key pairs The diff file answered is packaged into compressed package.
For example, file packaged service device is corresponding from the locally middle acquisition corresponding diff file of the first key, the 2nd key Diff file, the corresponding diff file of the 3rd key, and corresponding diff file carries out being packaged into pressure respectively by above three key Contracting bag.
Compressed package is uploaded to CDN server by step 510, file packaged service device.
For the embodiment of the present invention, file packaged service device passes through will be corresponding for each key at least one key above-mentioned Diff file is packaged into compressed package together, and is uploaded to CDN server, enable to when the same request of subsequent client above-mentioned many During the corresponding diff file of individual identical key, a CDN server can be accessed, obtain comprise every at least one key above-mentioned The compressed package of the corresponding diff file of individual key, obtains each key corresponding diff file to avoid accessing CDN server successively, Such that it is able to reduce the number of times accessing CDN server, and then the pressure of CDN server can be reduced.
Embodiment five
The alternatively possible implementation of the embodiment of the present invention, on the basis of shown in example IV, step 510, literary composition Compressed package is uploaded to CDN server by part packaged service device, the step 611 also including embodiment five afterwards, wherein, step 601- 610th, the operation performed by 612-616 is similar to the operation performed by step 501-515, will not be described here.
Step 611, file packaged service device receive the corresponding download information of compressed package of CDN server return, and will The corresponding relation write into Databasce of download information and tarKey.
Wherein, tarKey is the compressed package of this at least one key.
For the embodiment of the present invention, after above-mentioned compressed package is uploaded to CDN server by file packaged service device, file Packaged service device will receive the corresponding download information of this compressed package, by this download information according to the mode of tarKey algorithm, write Enter database.
For the embodiment of the present invention, file packaged service device passes through the diff file pair of key all at least one key Download information in CDN server for the compressed package answered, according to the form write into Databasce of tarkey, enables to patch and updates Server finds corresponding download information according to tarkey, it is to avoid it is corresponding that multiple access database searches each key successively Download information, such that it is able to reduce the number of times accessing database, and then can reduce the lookup corresponding download information of multiple key Time.
Embodiments provide the method that another kind of patch is downloaded, when not finding the corresponding download information of tarKey When, patch updates server to be passed through to search the corresponding download information of each key at least one key above-mentioned successively, is obtained in that The corresponding download information of each key, according to the corresponding download information of each key, to find each key corresponding diff literary composition Part, has obtained patch file, such that it is able to avoiding when not finding the corresponding download information of tarKey in database it is impossible to Obtain the situation of diff file;Client is sent the diff file of download to other clients by point-to-point, can keep away Exempt from other clients to pass through to access the CDN server corresponding diff file of download, such that it is able to reduce client to CDN server Visit capacity, and then the access pressure of CDN server can be reduced, reduce the bandwidth demand to client;File packaged service Device passes through for each key corresponding diff file at least one key above-mentioned to be packaged into compressed package together, and is uploaded to CDN clothes Business device, enables to, when subsequent client equally asks the corresponding diff file of above-mentioned multiple identical key, to access one Secondary CDN server, obtains the compressed package comprising each key corresponding diff file at least one key above-mentioned, to avoid successively Access CDN server and obtain each key corresponding diff file, such that it is able to reduce the number of times accessing CDN server, Jin Erke To reduce the pressure of CDN server;File packaged service device passes through to correspond to the diff file of key all at least one key Download information in CDN server for the compressed package according to the form write into Databasce of tarkey, enable to patch and update clothes Business device finds corresponding download information according to tarkey, it is to avoid repeatedly access database search successively each key corresponding under Information carrying cease, such that it is able to reduce access database number of times, and then can reduce search the corresponding download information of multiple key when Between.
Embodiments provide the device that a kind of patch is downloaded, update server positioned at patch, as shown in figure 3, should Device includes:Receiver module 31, determining module 32, searching modul 33, return module 34.
Receiver module 31, for receiving the download information request message of client transmission.
Wherein, carry at least one key Key in download information request message, download information request message is used for request extremely The corresponding download information of a few Key.
Determining module 32, for determining at least one Key corresponding compression key tarKey.
Searching modul 33, for searching the corresponding download information of tarkey from database.
Return module 34, for when finding the corresponding download information of tarKey, by corresponding for tarKey download information It is back to client, so that client is according to download information, download corresponding compressed package from CDN server.
Wherein, compressed package includes at least one key corresponding download command compares text diff file respectively.
Searching modul 33, is additionally operable to, when not finding the corresponding download information of tarKey, search successively from database The corresponding download information of each Key.
Return module 34, be additionally operable to for corresponding for each Key download information to be back to client so that client according to The corresponding download information of each Key, downloads diff file from CDN server.
Further, as shown in figure 3, this device also includes:Sending module 35.
Sending module 35, at least one Key is sent to file packaged service device, so that file packaged service device Obtain each key corresponding diff file at least one key, and corresponding for all key diff file be packaged into compressed package, And it is uploaded to CDN server.
Determining module 32, specifically for being spliced at least one key, obtains spliced key.
Determining module 32, is specifically additionally operable to be spliced spliced key with preset keyword, obtains at least one The corresponding tarKey of Key.
Embodiments provide the device that a kind of patch is downloaded, compared with prior art, visitor in the embodiment of the present invention Family end updates server to patch and sends download information request message, and then patch updates server and receives under client transmission Carry information request message, and corresponding tarKey is determined according at least one key carrying in download information request message, and look into Look for the corresponding download information of this tarKey, and the download information finding is back to client, then client is according to download Information download package from CDN server contains the compressed package of above-mentioned at least one key corresponding diff file of difference, and that is, patch updates Server only needs to access a database according to tarKey, searches download information, and only needs to be accessed according to download information CDN server, the compressed package of the corresponding diff file of now above-mentioned all key, thus reduce access CDN server time Number, reduces the duration downloading patch file, and because client only needs to access a CDN server, and then can reduce Visit capacity to CDN server, reduces the demand to user bandwidth.
Embodiments provide the device that another kind of patch is downloaded, when not finding the corresponding download information of tarKey When, patch updates server to be passed through to search the corresponding download information of each key at least one key above-mentioned successively, is obtained in that The corresponding download information of each key, according to the corresponding download information of each key, to find each key corresponding diff literary composition Part, has obtained patch file, such that it is able to avoiding when not finding the corresponding download information of tarKey in database it is impossible to Obtain the situation of diff file.
Embodiments provide the client that a kind of patch is downloaded, as shown in figure 4, this client includes:Send mould Block 41, receiver module 42, download module 43.
Sending module 41, sends download information request message for updating server to patch.
Wherein, carry at least one key Key in download information request message, download information request message is used for request extremely The corresponding download information of a few Key.
Receiver module 42, updates, for receiving patch, the corresponding download information of tarKey that server sends.
Wherein, tarKey is compressed by least one Key and obtains;
Download module 43, for according to the corresponding download information of tarKey receiving, downloading and corresponding to from CDN server Compressed package.
Wherein, compressed package includes at least one key corresponding download command compares text diff file respectively.
Download module 43, is additionally operable to when receiving the corresponding download information of each key at least one key, root successively According to the corresponding download information of each key, download corresponding diff file from CDN server.
Sending module 41, is additionally operable to need to download the diff literary composition of download in this client from CDN when other clients During part, the diff file of download is passed through point-to-point, send to request sender's client.
Embodiments provide a kind of client, compared with prior art, in the embodiment of the present invention, client is to benefit Fourth updates server and sends download information request message, and the download information that then patch renewal server reception client sends please Seek message, and corresponding tarKey is determined according at least one key carrying in download information request message, and search this The corresponding download information of tarKey, and the download information finding is back to client, then client is according to download information From CDN server, download package contains the compressed package of above-mentioned at least one key corresponding diff file of difference, i.e. patch more new demand servicing Device only needs to access a database according to tarKey, searches download information, and only needs to be accessed once according to download information CDN server, the compressed package of the corresponding diff file of now above-mentioned all key, thus reducing the number of times accessing CDN server, Reduce the duration downloading patch file, and because client only needs to access a CDN server, and then can reduce right The visit capacity of CDN server, reduces the demand to user bandwidth.
Embodiments provide another kind of client, client is sent by the point-to-point diff file by download To other clients, it can be avoided that other clients are passed through to access the CDN server corresponding diff file of download, such that it is able to subtract Few visit capacity to CDN server for the client, and then the access pressure of CDN server can be reduced, reduce the band to client Wide demand.
Embodiments provide the file packaged service device that a kind of patch is downloaded, as shown in figure 5, including:Receive mould Block 51, acquisition module 52, packetization module 53, upper transmission module 54.
Receiver module 51, updates, for receiving patch, at least one key that server sends.
Acquisition module 52, for from locally middle acquisition each key corresponding diff file.
Packetization module 53, for being packaged into compressed package by corresponding for all key diff file.
Upper transmission module 54, for being uploaded to CDN server by compressed package.
Receiver module 51, is additionally operable to receive the corresponding download information of compressed package of CDN server return.
Further, this document packaged service device also includes:Writing module 55.
Writing module 55, for by the corresponding relation write into Databasce of download information and tarKey.
Wherein, tarKey is the compressed package of this at least one key.
Embodiment of the present invention file packaged service device is by playing each key corresponding diff file at least one key Be bundled into compressed package, and be uploaded to CDN server, enable to client access CDN server can download above-mentioned extremely Each key corresponding diff file in a few key, such that it is able to reduce the number of times accessing CDN server, reduces and downloads patch The duration of file, and then the visit capacity to CDN server can be reduced, reduce the demand to user bandwidth.
Embodiments provide another kind of file packaged service device, file packaged service device passes through above-mentioned at least one In individual key, each key corresponding diff file is packaged into compressed package together, and is uploaded to CDN server, enables to when follow-up When client equally asks above-mentioned multiple identical key corresponding diff file, a CDN server can be accessed, obtain bag Compressed package containing each key corresponding diff file at least one key above-mentioned, to avoid accessing CDN server acquisition successively Each key corresponding diff file, such that it is able to reduce the number of times accessing CDN server, and then can reduce CDN server Pressure;File packaged service device passes through the corresponding compressed package of diff file of key all at least one key in CDN service Download information on device, according to the form write into Databasce of tarkey, enables to patch and updates server according to tarkey lookup To corresponding download information, it is to avoid repeatedly access database and search the corresponding download information of each key successively, such that it is able to reduce Access the number of times of database, and then the time searching the corresponding download information of multiple key can be reduced.
Device, file packaged service device and the client that patch provided in an embodiment of the present invention is downloaded can be realized above-mentioned The embodiment of the method providing, concrete function is realized referring to the explanation in embodiment of the method, will not be described here.The present invention is implemented Method, device, file packaged service device and client that the patch that example provides is downloaded go for downloading from CDN server The corresponding diff file of multiple key, but it is not limited only to this.
Those skilled in the art of the present technique are appreciated that the present invention includes relating to execute in operation described herein One or more of equipment.These equipment can specially design for required purpose and manufacture, or can also include general Known device in computer.These equipment have and are stored in its interior computer program, and these computer programs are optionally Activation or reconstruct.Such computer program can be stored in equipment (for example, computer) computer-readable recording medium or be stored in Be suitable to store e-command being coupled to respectively in any kind of medium of bus, described computer-readable medium include but not Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only Read memory), RAM (Random Access Memory, memory immediately), EPROM (Erasable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable ProgrammableRead-Only Memory, EEPROM), flash memory, magnetic card or light card. It is, computer-readable recording medium include being stored in the form of can reading by equipment (for example, computer) or transmission information any medium.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or Each frame in block diagram and/or flow graph and the combination of the frame in these structure charts and/or block diagram and/or flow graph.This technology is led Field technique personnel be appreciated that can by these computer program instructions be supplied to all-purpose computer, special purpose computer or other The processor of programmable data processing method is realizing, thus the process by computer or other programmable data processing methods Device is executing the scheme specified in the frame of structure chart disclosed by the invention and/or block diagram and/or flow graph or multiple frame.
Those skilled in the art of the present technique be appreciated that the various operations having discussed in the present invention, method, in flow process Step, measure, scheme can be replaced, changed, combined or deleted.Further, there is discussed in the present invention each Kind of operation, method, other steps in flow process, measure, scheme can also be replaced, changed, reset, decomposed, combined or deleted. Further, of the prior art have and the step in the various operations disclosed in the present invention, method, flow process, measure, scheme Can also be replaced, changed, reset, decomposed, combined or deleted.
The above is only some embodiments of the present invention it is noted that ordinary skill people for the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

1. a kind of method that patch is downloaded is it is characterised in that methods described includes:
Patch updates server and receives the download information request message that client sends, and carries in described download information request message At least one key Key, described download information request message is used for asking the described corresponding download information of at least one Key;
Determine described at least one Key corresponding compression key tarKey, and it is corresponding to search described tarkey from database Download information;
If finding the corresponding download information of described tarKey, corresponding for described tarKey download information is back to described visitor Family end, so that described client is according to download information, downloads corresponding compressed package, described compression from described CDN server Bag includes at least one key described, and corresponding download command compares text diff file respectively.
2. patch according to claim 1 is downloaded method it is characterised in that described search from database described After the step of the corresponding download information of tarkey, also include:
If not finding the corresponding download information of described tarKey, search each Key from described database successively corresponding Download information, and corresponding for each Key download information is back to described client, so that described client is according to described every The corresponding download information of individual Key, downloads diff file from described CDN server.
3. patch according to claim 2 is downloaded method it is characterised in that described by corresponding for each key lower information carrying After breath is back to described client, also include:
At least one Key described is sent to file packaged service device, so that described in the acquisition of described file packaged service device extremely Each key corresponding diff file in a few key, and corresponding for all key diff file is packaged into compressed package, and upload To described CDN server.
4. patch according to any one of claim 1-3 is downloaded method is it is characterised in that at least one described in described determination The step of individual Key corresponding compression key tarKey, including:
At least one key described is spliced, is obtained spliced key;
Described spliced key is spliced with preset keyword, is obtained the described corresponding tarKey of at least one Key.
5. a kind of method that patch is downloaded is it is characterised in that methods described includes:
Client updates server to patch and sends download information request message, carries at least in described download information request message One key Key, described download information request message is used for asking the described corresponding download information of at least one Key;
Receive described patch and update the corresponding download information of tarKey that server sends, described tarKey by described at least one Key compression obtains;
According to the corresponding download information of the tarKey receiving, download corresponding compressed package, described compressed package from CDN server Corresponding download command compares text diff file respectively to include at least one key described.
6. the method that patch according to claim 5 is downloaded is it is characterised in that methods described also includes:
If receiving the corresponding download information of each key at least one key described, according to successively according to each key correspondence Download information, download corresponding diff file from described CDN server.
7. a kind of method that patch is downloaded is it is characterised in that methods described includes:
File packaged service device receives patch and updates at least one key described that server sends;
From locally middle acquisition each key corresponding diff file, and corresponding for all key diff file is packaged into compressed package;
Described compressed package is uploaded to CDN server.
8. the device that a kind of patch is downloaded, updates server it is characterised in that described device includes positioned at patch:
Receiver module, for receiving the download information request message of client transmission, carries in described download information request message At least one key Key, described download information request message is used for asking the described corresponding download information of at least one Key;
Determining module, for determining described at least one Key corresponding compression key tarKey;
Searching modul, for searching the corresponding download information of described tarkey from database;
Return module, for when finding the corresponding download information of described tarKey, by corresponding for described tarKey lower information carrying Breath is back to described client, so that described client is according to download information, downloads corresponding pressure from described CDN server Contracting bag, described compressed package includes at least one key described, and corresponding download command compares text diff file respectively.
9. the client that a kind of patch is downloaded is it is characterised in that described client includes:
Sending module, sends download information request message for updating server to patch, in described download information request message Carry at least one key Key, described download information request message is used for asking the described corresponding lower information carrying of at least one Key Breath;
Receiver module, updates the corresponding download information of tarKey that server sends, described tarKey for receiving described patch Compressed by least one Key described and obtain;
Download module, for according to the corresponding download information of tarKey receiving, downloading corresponding compression from CDN server Bag, described compressed package includes at least one key described, and corresponding download command compares text diff file respectively.
10. the file packaged service device that a kind of patch is downloaded is it is characterised in that include:
Receiver module, updates at least one key described in server transmission for receiving patch;
Acquisition module, for from locally middle acquisition each key corresponding diff file;
Packetization module, for being packaged into compressed package by corresponding for all key diff file;
Upper transmission module, for being uploaded to CDN server by described compressed package.
CN201611116188.1A 2016-12-07 2016-12-07 Method, apparatus, file packaged service device and the client of patch downloading Active CN106412128B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611116188.1A CN106412128B (en) 2016-12-07 2016-12-07 Method, apparatus, file packaged service device and the client of patch downloading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611116188.1A CN106412128B (en) 2016-12-07 2016-12-07 Method, apparatus, file packaged service device and the client of patch downloading

Publications (2)

Publication Number Publication Date
CN106412128A true CN106412128A (en) 2017-02-15
CN106412128B CN106412128B (en) 2019-06-04

Family

ID=58083762

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611116188.1A Active CN106412128B (en) 2016-12-07 2016-12-07 Method, apparatus, file packaged service device and the client of patch downloading

Country Status (1)

Country Link
CN (1) CN106412128B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040107349A1 (en) * 2002-12-03 2004-06-03 Marco Sasselli Method for securing software updates
CN101931944A (en) * 2010-07-23 2010-12-29 华为终端有限公司 Method, device and system for updating terminal patches on line
CN102402438A (en) * 2010-09-16 2012-04-04 金蝶软件(中国)有限公司 Method and device for automatically merging patch files and communication terminal
CN103810006A (en) * 2011-02-21 2014-05-21 北京奇虎科技有限公司 Installation method and device for service packs
CN104539676A (en) * 2014-12-18 2015-04-22 深圳市腾讯计算机系统有限公司 Method, device and system for providing and obtaining application installation packets
CN105404653A (en) * 2015-10-30 2016-03-16 无锡清华信息科学与技术国家实验室物联网技术中心 Realization method of fully distributed file index and cooperative editing mechanism

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040107349A1 (en) * 2002-12-03 2004-06-03 Marco Sasselli Method for securing software updates
CN101931944A (en) * 2010-07-23 2010-12-29 华为终端有限公司 Method, device and system for updating terminal patches on line
CN102402438A (en) * 2010-09-16 2012-04-04 金蝶软件(中国)有限公司 Method and device for automatically merging patch files and communication terminal
CN103810006A (en) * 2011-02-21 2014-05-21 北京奇虎科技有限公司 Installation method and device for service packs
CN104539676A (en) * 2014-12-18 2015-04-22 深圳市腾讯计算机系统有限公司 Method, device and system for providing and obtaining application installation packets
CN105404653A (en) * 2015-10-30 2016-03-16 无锡清华信息科学与技术国家实验室物联网技术中心 Realization method of fully distributed file index and cooperative editing mechanism

Also Published As

Publication number Publication date
CN106412128B (en) 2019-06-04

Similar Documents

Publication Publication Date Title
US9197702B2 (en) System for and method for media upload multithreading for large file uploads
CN100480948C (en) Mobile terminal, resource access control system of mobile terminal, and resource access control method of mobile terminal
US20020046232A1 (en) Organizing content on a distributed file-sharing network
US20030105847A1 (en) System and method for server managed modification of operating system data stored within a network device
US20070260647A1 (en) Framework for content representation and delivery
US20060089954A1 (en) Scalable common access back-up architecture
AU2010201955B2 (en) Methods and systems for uploading media files to media hosts
CN106021023A (en) Application recovery method and device, and terminal
CN104506643A (en) Server of distributed storage system and data synchronizing method between servers
US7900004B2 (en) Converting backup copies of objects created using a first backup program to backup copies created using a second backup program
CN106844489A (en) A kind of file operation method, device and system
CN105491132A (en) File server, terminal and file subpackage transmission method
US20060149760A1 (en) LDAP bulk append
CN104834534A (en) Application program function extension method, device and system
CN101420324B (en) Network management system and version renovating method for proxy software
CN113821488A (en) Container mirror image migration compression method, device, equipment and medium
US8438351B2 (en) Binary level update of compressed read-only file systems
CN106250455B (en) Mobile terminal file management method and system
CN109640123A (en) Method for pushing, device, computer equipment and the storage medium of live stream
CN106412128A (en) Method, device, file packing server and client of patch downloading
CN116743785A (en) Cloud network data storage method, device, equipment and medium based on fog calculation
CN104217021A (en) Reading server, terminal equipment and method for displaying reading contents
CN111090530B (en) Distributed inter-process communication bus system
CN106413063A (en) Method and device for sharing multi-system Wi-Fi
JP2002318716A (en) System and method for delivery, server computer and client computer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee after: Beijing Qizhi Business Consulting Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20220330

Address after: 100016 1773, 15 / F, 17 / F, building 3, No.10, Jiuxianqiao Road, Chaoyang District, Beijing

Patentee after: Sanliu0 Digital Security Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Beijing Qizhi Business Consulting Co.,Ltd.

TR01 Transfer of patent right