CN105245567A - Method for processing update request and server system - Google Patents

Method for processing update request and server system Download PDF

Info

Publication number
CN105245567A
CN105245567A CN201510541890.1A CN201510541890A CN105245567A CN 105245567 A CN105245567 A CN 105245567A CN 201510541890 A CN201510541890 A CN 201510541890A CN 105245567 A CN105245567 A CN 105245567A
Authority
CN
China
Prior art keywords
client
server
update request
renewal
upgrade
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
CN201510541890.1A
Other languages
Chinese (zh)
Other versions
CN105245567B (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 JIANSHI CHENGXIN TECHNOLOGIES Co Ltd
Original Assignee
BEIJING JIANSHI CHENGXIN TECHNOLOGIES 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 JIANSHI CHENGXIN TECHNOLOGIES Co Ltd filed Critical BEIJING JIANSHI CHENGXIN TECHNOLOGIES Co Ltd
Priority to CN201510541890.1A priority Critical patent/CN105245567B/en
Publication of CN105245567A publication Critical patent/CN105245567A/en
Application granted granted Critical
Publication of CN105245567B publication Critical patent/CN105245567B/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/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for processing an update request and a server system, and belongs to the filed computer application technology. The method comprises that a server receives the update request from a client, the server implements calculation according to the update request, whether the client can be updated is determined, if yes, the server sends update information to the client, and otherwise, the server sends a notification of update forbiddance to the client. The method can be used to update clients in batch, when an updated software is relatively large, the burden of the server can be alleviated, and the problem of early warning or paralysis of the server caused by network congestion can be avoided.

Description

A kind of method and server system processing update request
Technical field
The present invention relates to a kind of method and the server system that process update request, belong to Computer Applied Technology field.
Background technology
Along with the development of Computer Applied Technology, the quantity of computer software gets more and more, redaction also constantly occurs, when a kind of redaction of software occurs time, just there is the demand of software upgrading in enormous quantities, the object of software upgrading is the effect that the part BUG in reparation lowest version makes it be optimized.In the technology of existing software upgrading, no matter full dose upgrades or the processing mode of incremental update, when software volume increases to a certain degree, or server bandwidth is restricted, all will be faced with the situation of network congestion, and cause server early warning or paralysis, client just cannot upgrade.
Summary of the invention
The object of the invention is the defect in order to overcome prior art, a kind of method and the server system that process update request are provided.
The invention provides a kind of method processing update request, described method comprises:
Steps A 1: server receives the update request from client, reads the effective period upgrading the renewal modulus value in wrapping and modulus value in described server;
Steps A 2: described server judges that described client sends the time of update request whether within the effective period of described modulus value, if so, performs steps A 3; Otherwise, perform steps A 6;
Steps A 3, described server calculates the described renewal modulus value upgraded in bag according to the information in described update request, obtains the first operation result;
Steps A 4: described server calculates the interval that described client sends the time of update request and the issuing time of described renewal bag, carries out calculating acquisition second operation result according to described interval and described renewal modulus value;
Steps A 5: described server compares described first operation result and described second operation result, if equal, performs steps A 6; Otherwise, send the information not allowing to upgrade to described client, terminate;
Steps A 6: described server sends lastest imformation to described client.
Particularly, the described update request from client comprises: the IP address of client.
Particularly, described server carries out calculating according to the information in described update request to the described renewal modulus value upgraded in bag and is specially: described server obtains the IP address of described client from described update request, the integer corresponding according to the IP address of described client, carries out modulo operation to described renewal modulus value.
Particularly, described steps A 4 is specially: described server carries out modulo operation with the interval that described client sends the time of update request and the issuing time of described renewal bag to described renewal modulus value and obtains the second operation result.
Particularly, described server sends after lastest imformation to client, also comprises: described client receives described lastest imformation, and operates according to described lastest imformation.
Particularly, described client operates according to described lastest imformation, is specially: if the lastest imformation that described client receives is not for upgrade, described client does not upgrade; If the lastest imformation that described client receives is for directly upgrading, described client downloads is directly installed after upgrading bag; If the lastest imformation that described client receives is optional renewal, select to judge whether to select to upgrade immediately according to user, if so, described client upgrades immediately; Otherwise described client does not upgrade.
The invention provides a kind of method of server process update request, described method can also comprise:
Step B1: server receives the update request from client;
Step B2: described server obtains area code according to described update request, reads the total quantity of the client that this area does not upgrade according to described area code;
Step B3: whether the total quantity of the client do not upgraded described in described server judges exceedes threshold value, if so, performs step B4; Otherwise described server notifies that described client directly upgrades;
Step B4: described server carries out calculating according to the total quantity of the described client do not upgraded, described threshold value and described update request and obtains result of calculation;
Step B5: described server judges whether described result of calculation is 0, if so, performs step B6; Otherwise, described server send do not allow to upgrade inform described client, terminate;
Step B6: described server sends lastest imformation to described client;
Step B7: described server receives client-side information after the renewal that described client returns, and upgrades described server internal information according to the client-side information after described renewal.
Particularly, described update request comprises: the IP address of client.
Particularly, described threshold value is: described server allows the maximum of the client terminal quantity simultaneously upgraded.
Particularly, described step B4 comprises: the total quantity of client do not upgraded described in described server calculates and the integral multiple of described threshold value, the integer that IP address is corresponding according to the IP address computation of the client in described update request, carries out delivery with the integer that described IP address is corresponding to described integral multiple and calculates result of calculation.
Particularly, described server internal information is: the content of installing in server in scale.
Particularly, described server, to after described client sends lastest imformation, also comprises: described client receives described lastest imformation, and operates according to described lastest imformation.
Particularly, described client operates according to described lastest imformation, comprising: if the lastest imformation that described client receives is not for upgrade, described client does not upgrade; If the lastest imformation that described client receives is for directly upgrading, described client downloads is directly installed after upgrading bag; If the lastest imformation that described client receives is optional renewal, select to judge whether to select to upgrade immediately according to user, if so, described client upgrades immediately; Otherwise described client does not upgrade.
The invention provides a kind of method processing update request, described method can also comprise:
Step C1: server receives the update request from client;
Step C2: described server judges described client whether in described white list according to current white list, if so, performs step C3; Otherwise described server sends the notice not allowing to upgrade to described client, terminate;
Step C3: described server sends lastest imformation to described client;
Step C4: described server receives information that described client returns and by the described information updating returned in described server internal information.
Particularly, described in, the information updating that returns to server internal information is: the content in described server update installation scale, and according to the content update white list in installation scale.
Correspondingly, described server determines current white list according to the client allowing to be updated, and specifically comprises:
Step C11: described server obtains version number and the threshold value of latest edition;
Step C12: described server obtains the quantity not upgrading client according to the version number of described latest edition;
Step C13: whether the quantity not upgrading client described in described server judges exceedes described threshold value, if so, performs step C14; Otherwise all clients are directly upgraded;
Step C14: do not upgrade the quantity of client and the integral multiple of described threshold value described in described server calculates;
Step C15: described server, according to described update request and described integral multiple, calculates described white list.
Correspondingly, described server obtains the quantity not upgrading client according to the version number of described latest edition, be specially: described server determine according to the number being less than the record of the version number of current latest edition in installation scale described in do not upgrade the quantity of client.
Particularly, described threshold value is: described server allows the maximum of the client terminal quantity simultaneously upgraded.
Particularly, described update request comprises: the IP address of client.
Particularly, described server, to after described client sends lastest imformation, also comprises: described client receives described lastest imformation, and operates according to described lastest imformation.
Particularly, describedly to operate according to lastest imformation, comprising: if the lastest imformation that described client receives is not for upgrade, described client does not upgrade; If the lastest imformation that described client receives is for directly upgrading, described client downloads is directly installed after upgrading bag; If the lastest imformation that described client receives is optional renewal, select to judge whether to select to upgrade immediately according to user, if so, described client upgrades immediately; Otherwise described client does not upgrade.
Present invention also offers a kind of server system processing update request, described server system comprises:
Receiver module, for receiving the update request from client, and reads the effective period upgrading the renewal modulus value in wrapping and modulus value in described server;
First judge module, for judging that described client sends the time of update request whether within the effective period of described modulus value;
First computing module, for calculating the described renewal modulus value upgraded in bag from the information in the update request of client according to described;
Second computing module, for calculating the interval between the time of described client transmission update request and the issuing time of described renewal bag, and calculates according to the renewal modulus value in described interval and described renewal bag;
Second judge module, whether the result of calculation for the result of calculation and described second computing module that judge the first computing module is equal;
Sending module, for sending lastest imformation to described client.
Particularly, described first computing module specifically for obtaining the IP address of described client from described update request, the integer that IP address is corresponding according to described IP address acquisition, and with described integer to described upgrade bag in renewal modulus value carry out delivery calculating.
Particularly, described second computing module, specifically for calculating the interval between the time of described client transmission update request and the issuing time of described renewal bag, carries out delivery calculating with described interval to described renewal modulus value.
Particularly, described sending module sends specifically for the result drawn according to the second judge module the lastest imformation upgrading, do not upgrade or select to upgrade to described client.
The invention provides a kind of server system processing update request, described server system can also comprise:
First receiver module, for receiving the update request from client, and obtains area code according to described update request;
First judge module, for judging according to described area code whether the quantity of the client that this area does not upgrade exceedes threshold value;
Computing module, calculates for the total quantity according to the described client do not upgraded, described threshold value and described update request;
Second judge module, for judging whether the result that described computing module calculates is 0;
Sending module, for sending lastest imformation to described client;
Second receiver module, for receiving the information of client after renewal that client returns;
Update module, upgrades for the information of information to described server internal of client after the described renewal that receives according to described receiver module;
The invention provides also a kind of server system processing update request, described server system can also comprise:
First receiver module, for receiving the update request from client;
Computing module, for calculating the white list of client;
Judge module, for according to described update request, judges described client whether in the white list of described client;
Sending module, for the result judged according to described judge module, sends lastest imformation to described client;
Second receiver module, for receiving the information upgrading rear client;
Update module, for the information updating of client after the renewal that receives according to described receiver module in described server internal information.
The beneficial effect of this method is: can effectively alleviate software when redaction is just issued in a period of time, and client concentrates the problem upgrading and cause server stress excessive, and decreases server end resource consumption, enhances client user and experiences.
Accompanying drawing explanation
In order to the clearer explanation embodiment of the present invention or technical scheme of the prior art, simple introduction is done below by the accompanying drawing used required in embodiment or description of the prior art, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
A kind of flow chart of method of server process update request of Fig. 1 for providing in the embodiment of the present invention 1;
A kind of flow chart of method of server process update request of Fig. 2 for providing in the embodiment of the present invention 2;
A kind of flow chart of method of server process update request of Fig. 3 and Fig. 4 for providing in the embodiment of the present invention 3.
A kind of block diagram that process the server system of update request of Fig. 5 for providing in the embodiment of the present invention 4.
The block diagram of server system of another process update request of Fig. 6 for providing in the embodiment of the present invention 5.
The block diagram of server system of another process update request of Fig. 7 for providing in the embodiment of the present invention 6.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, carry out clear, complete description to the technical scheme in the embodiment of the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1
The embodiment of the present invention 1 provides a kind of method of server process update request, and see Fig. 1, described method idiographic flow comprises:
Step 101: server receives from the IP address of client and the current version number of described client;
Wherein, before step 101, client first sends the request of software upgrading to server.
Step 102: described server reads the renewal modulus value of the renewal bag of current preset from database, modulus value comes into force the cycle and upgrade mark;
Particularly, described server comprises management platform and service platform; Described service platform utilizes sql statement, by key plate basis, little version, revisions number and compiling number order carry out down sort, then from database, retrieve the version of up-to-date issue, read the version number of up-to-date released version, renewal indicates, renewal modulus value, modulus value come into force the cycle.
Wherein, described management platform obtains the version information of the renewal bag of keeper's typing, is stored in database by this version information, and described service platform reads the described version information upgrading bag.Described management platform and described service platform complete information sharing by database.
Wherein, the described version information upgrading bag comprises: the version number of redaction compressed package, redaction, the renewal mark of Administrator, renewal bag upgrade modulus value, and modulus value comes into force the cycle.Redaction compressed package can be the compressed package of ZIP form; The version number of redaction is for judging that the client of current accessed is the need of renewal.
Step 103: described server judges described renewal modulus value whether within described modulus value comes into force the cycle, if so, performs step 104; Otherwise, perform step 108;
Wherein, described renewal modulus value and the modulus value cycle of coming into force are two positive integers pre-set, and upgrading modulus value is the constant arranged according to the quantity of the client not downloading redaction; The modulus value cycle of coming into force is the number of days of being separated by of the date issued of current date and redaction; When keeper issues redaction, the renewal modulus value and the modulus value cycle of coming into force that upgrade bag can change.
Step 104: described server obtains the IP address of described client, and the integer corresponding according to the IP address computation IP of described client.
Particularly, the method for the described integer corresponding according to the IP address computation IP of described client is: the 4th field of the 3rd field * 256+ client ip of the IP address of the IP address second field * 256*256+ client of the first field * 256*256*256+ client of the IP address of client.
Such as, the IP address of client is 10.1.0.129, then do following calculating according to the IP address of described client: 10*256*256*256+1*256*256+0*256+129, and the integer obtained is 167837825.
Step 105: the described integer obtained according to the IP address computation of client of described server carries out modulo operation obtain the first operation result to upgrading modulus value in described renewal bag;
Such as, the IP address of client is 10.1.0.129, when the renewal modulus value of renewal bag is 5, the described server IP address of described client calculates: 10*256*256*256+1*256*256+0*256+129, obtain integer 167837852, described server carries out modulo operation with described integer to described renewal modulus value 5 and obtains the first operation result; Particularly, the first operation result is 0.
Step 106: described server carries out modulo operation with the described modulus value cycle of coming into force obtain the second operation result to upgrading modulus value in described renewal bag.
Such as, current date is on April 29th, 2015, and date issued is on April 16th, 2015, the described modulus value cycle of coming into force is 13 days, when the renewal modulus value of renewal bag is 5, then the described server modulus value cycle of coming into force carries out modulo operation to described renewal bag renewal modulus value 5, obtains the second operation result; Particularly, the second operation result is 3.
Step 107: described server judges whether the first operation result equals described second operation result, if so, performs step 108; Otherwise refusal upgrades.
Step 108: described server returns the renewal mark upgrading bag to described client.
Particularly, described server returns renewal mark according to the renewal mark configuration of Administrator to described client;
Wherein, if upgrading mark configuration is do not upgrade, then returns first and preset mark; If upgrading mark configuration is upgrade immediately, then returns second and preset mark; If upgrade mark to be configured to optional renewal, then return the 3rd and preset mark;
When described client receives described renewal mark, also comprise: described client judges that described renewal indicates, if when the renewal returned is masked as the described first default mark, then described client does not upgrade, and flow process terminates; If when renewal is masked as the described second default mark, described client upgrades immediately, concrete, client is directly installed after described server down loading updating bag, after installation, described client returns machine code (client computer unique identification), version number and other environmental information to described server end; If when renewal is masked as described 3rd renewal mark, whether described client is selected to upgrade immediately, and if so, described client upgrades immediately, and returns machine code (client computer unique identification), version number and other environmental information to server; Otherwise flow process terminates.
Wherein, the described first default mark can be 0; Described second default mark can be 1; Described 3rd default mark can be 2.
When described renewal is masked as the first default mark, client does not upgrade; It should be noted that, client can log in voluntarily and upgrade website, downloads.
When described renewal be masked as second preset mark time, during client installation initiating switchup can on send machine code (unique identification) and version number and relevant context information.
Whether, when described renewal is masked as described 3rd renewal mark, client shows in system tray " having new renewal bag to determine to upgrade ", selects, judge whether to upgrade immediately according to user.
Step 109: described server receives the information that described client returns.
Particularly, the information that described client returns comprises: the machine code (unique identification) of client and the current version number of client.
Further also comprise, the information that described server returns according to described client, upgrade client environment record data.
Embodiment 2
The embodiment of the present invention 2 provides a kind of method of server process update request, and see Fig. 2, described method idiographic flow comprises:
Step 201: server receives from the IP address of the described client of client and the current version number of described client.
Step 202: described server reads the latest edition upgrading bag.
Particularly, described server comprises service platform and management platform, and described service platform utilizes sql statement, by key plate basis, little version, revisions number and compiling number order carry out down sort, from database, retrieve the version of up-to-date issue.
Wherein, described management platform obtains the version information of the renewal bag of keeper's typing, is stored in database by this version information, and described service platform reads the described version information upgrading bag.Described management platform and described service platform complete information sharing by database.
Wherein, the described version information upgrading bag comprises: the version number of redaction compressed package, redaction, the renewal mark of Administrator, renewal bag upgrade modulus value, and modulus value comes into force the cycle.Redaction compressed package can be the compressed package of ZIP form; The version number of redaction is for judging that the client of current accessed is the need of renewal.
Step 203: described server according to the IP address acquisition area code of described client, according to area code read this area do not upgrade client sum.
Particularly, the client the do not upgraded sum of the corresponding this area of area code, described server obtains the sum of the client that this area does not upgrade by sql statement according to area code.
Step 204: server judges whether do not upgrade client sum exceedes threshold value, if so, then performs step 205; Otherwise described client directly upgrades.
Wherein, set when described threshold value is keeper's maintenance update bag, namely allow the maximum of the number of users simultaneously downloaded.
Step 205: described server obtains the IP address of described client, and the integer corresponding according to the IP address computation IP of described client.
Particularly, corresponding according to the IP address computation IP of described client integer is specially: the 4th field of the IP address of the 3rd field * 256+ client of the IP address of the second field * 256*256+ client of the IP address of the first field * 256*256*256+ client of the IP address of client.
Such as, the IP address of client is 10.1.0.129, then corresponding according to the IP of the IP address computation of described client integer is the integer that 10*256*256*256+1*256*256+0*256+129 obtains is 167837825.
Step 206: the integral multiple that described server calculates the quantity and threshold value not upgrading client obtains the first integral multiple, the integer corresponding with the IP of the IP address computation gained according to described client asks mould to described first integral multiple.
Such as: not upgrading client terminal quantity is 1000, and threshold value is set to 100, then the first integral multiple is 10; Suppose that the address of client ip is 10.1.0.129, then corresponding according to IP address computation gained IP integer is 167837825, so asks the result of mould to be 5 according to described integer 167837825 to described first integral multiple 10.
Step 207: described server judges that the integer corresponding according to the IP of the IP address computation gained of described client asks the result of mould gained whether to be 0 to described first integral multiple, if so, performs step 208; Otherwise, terminate.
Step 208: described server returns to described client and upgrades mark;
Particularly, when described server returns described renewal mark to client, described client judges that described renewal indicates, is masked as the 4th default mark if upgraded, and client judges whether to select to upgrade immediately; If be the 5th default mark, described client upgrades immediately, and gives described server by latest edition environmental information; Wherein said 4th presets to be masked as and selects for identifying user the mark that whether upgrades; Described 5th presets the mark being masked as and upgrading for identifying pressure;
Particularly, when renewal is masked as the described 5th default mark, also comprise: described client is installed and upgraded bag, and gives described server by latest edition environmental information;
When described client judges whether to select to upgrade, also comprise: when user selects to upgrade immediately, then described client is installed and upgraded bag, and gives described server by latest edition environmental information; Otherwise flow process terminates;
Particularly, whether client shows in system tray " having new renewal bag to determine to upgrade ", selects, judge whether to upgrade immediately according to user.
Particularly, described client is installed to upgrade to wrap and is also comprised: direct installation after client completes from server down loading updating bag.
Step 209: described server receives the information of the client after the renewal that described client returns.
Particularly, described server receives client machine code that described client returns and the current version number of client.
Wherein, described server also comprises after receiving machine code that described client returns and current version number: be stored in the installation scale stored in server by the machine code returned and current version number and other environmental datas; The described installation scale summary table that to be server count according to the version number of the client machine code that client is sent and latest edition; Described installation scale comprises: the information such as the version number field of the machine code of client, area code, version installation record and client current version number.
Step 210: the information of the client after the renewal that described server returns according to described client carries out server internal information updating.
Particularly, after the machine code that server receives client returns and described client current version number, the version number field of the record of version installation in installation scale is changed.
Embodiment 3
The embodiment of the present invention 3 provides a kind of method of server process update request, comprising:
Server calculates IP white list, by judging IP address that client is sent whether in described IP white list, judges whether described client can upgrade.
Wherein, described server calculates described IP white list, specifically comprises as shown in Figure 3:
Step 301: server reads and upgrades bag, obtains the threshold value pre-set.
Wherein, threshold value is the maximum of the client terminal quantity allowing simultaneously to download.
Step 302: described server reads the described version number upgrading latest edition in bag.
Particularly, described server comprises management platform and service platform; Described service platform utilizes sql statement, by key plate basis, little version, revisions number and compiling number order carry out down sequence, from database, then retrieve the version of up-to-date issue, server reading latest edition version number.
Step 303: described server, according to the number being less than the record of the version number of current latest edition in installation scale, judges the quantity not upgrading client.
Particularly, described server contrasts according to the version number of the client in described installation scale and the version number of current latest edition, judges the quantity not being updated to the client of latest edition.
Wherein, the described installation scale summary table that to be server count according to the version number of the client machine code that client is sent and latest edition; Described installation scale comprises: the information such as the version number field of the record of version installation and client current version number in the machine code of client, area code, installation scale.Wherein, machine code is combined by the exclusive identification code of client by CPU, hard disk and network interface card.
Step 304: described server judges whether the quantity not upgrading client exceedes described threshold value, if so, performs step 305; Otherwise all clients directly upgrade, terminate.
Wherein, if client terminal quantity exceedes threshold value, when illustrating that all clients do not upgraded upgrade together, excessive to server build-up of pressure; If do not upgrade client terminal quantity do not exceed threshold value, server can carry all clients and upgrade together.
Step 305: the integral multiple that described server calculates the quantity and described threshold value not upgrading client obtains the second integral multiple.
Step 306: described server, according to the IP address of described client and the second integral multiple, calculates IP white list.
Particularly, last position of the IP address of described client obtains segments divided by described second integral multiple, arrives the foundation of the random number between described segments as decision IP white list with 0;
Wherein, random number between described use 0 to described segments is as the foundation determining IP white list, be specially: the random number between 0 to described segments obtains any one digital x wherein by Math.random function, renewable paragraph is decided by x, then draw a circle to approve the IP that can upgrade according to the beginning numeral of described paragraph with cut-off numeral, described is IP white list by the IP address of drawing a circle to approve.
Wherein, last position of IP address is 255 to the maximum.
Described server also comprises after having calculated IP white list, often spends predetermined time, just returns step 304; In the present embodiment, arrange every five hours, return step 304.
By judging whether the IP address that client is sent meets the rule of IP paragraph, judge whether described client can upgrade, and as shown in Figure 4, specifically comprises:
Step 401: described server receives the IP address of described client.
Step 402: described server filters according to described IP white list, judges that the IP address of described client is whether in IP white list, and if so, described server sends to described client and upgrades mark, then performs step 403; Otherwise flow process terminates.
Wherein, after client has upgraded, also comprise: described user end to server returns the information of the client after renewal.
Step 403: described server receives the information of the client after the renewal that described client returns.
Wherein, the information of the client after described renewal specifically comprises: the machine code of client and the version number of current version.
Step 404: the information updating of the client after the renewal that the described client received returns by described server is in installation scale.
Embodiment 4
The embodiment of the present invention 4 provides a kind of server system processing update request, as shown in Figure 5, comprising:
Receiver module, for receiving the update request from client, and reads the effective period upgrading the renewal modulus value in wrapping and modulus value in described server;
First judge module, for judging that described client sends the time of update request whether within the effective period of modulus value;
First computing module, for calculating the renewal modulus value upgraded in bag from the information in the update request of client according to described;
Particularly, the first computing module is used for the IP address obtaining described client from described update request, the integer corresponding according to described IP address acquisition IP address, and carries out delivery calculating with described integer to the renewal modulus value upgraded in bag.
Second computing module, for calculating the time that client sends update request and the interval upgraded between bag issuing time, and calculates according to described interval and renewal modulus value;
Particularly, sending the time of update request and the interval of described renewal bag issuing time for calculating described client, with described interval, delivery calculating being carried out to described renewal modulus value.
Second judge module, for judging that whether the first computing module result of calculation is equal with the second computing module result of calculation;
Sending module, for sending lastest imformation to described client, particularly, sends according to the result that described second judge module draws the lastest imformation upgrading, do not upgrade or select to upgrade to described client.
Embodiment 5
The present embodiment 5 provides a kind of server system processing update request, as shown in Figure 6, comprising:
First receiver module, for receiving the update request from client;
First judge module, obtains area code for the update request according to described client, judges whether the quantity of the client that this area does not upgrade exceedes threshold value according to described area code;
Computing module, calculates for the quantity according to the client do not upgraded, threshold value and described update request; Particularly, calculate the quantity of client and the integral multiple of threshold value that do not upgrade, the integer that IP address is corresponding according to the IP address computation of the client in described update request, the integer corresponding with described IP address carries out delivery calculating to described integral multiple.
Second judge module, for judging whether the result that described computing module calculates is 0;
Sending module, for sending lastest imformation to described client; Particularly, the result judged according to described second judge module sends the lastest imformation upgrading, do not upgrade or select to upgrade to described client.
Second receiver module, for receiving the information upgrading rear client.
Update module, the information of information to described server internal after the described client for receiving according to described receiver module upgrades upgrades; Particularly, the information after upgrading according to the client received, upgrades the content of installing in scale in described server.
Embodiment 6
The present embodiment 6 provides a kind of server system processing update request, as shown in Figure 7, comprising:
First receiver module, for receiving the update request from client.
Computing module, for according to described update request, judges described client whether in client white list.
Judge module, for according to described update request, judges described client whether in the white list of described client.
Sending module, for the result judged according to described judge module, sends lastest imformation to described client.
Second receiver module, for receiving the information of the client after renewal.
Update module, for the information of the client after the renewal that receives according to receiver module, by the information updating of the client after upgrading in described server internal information; Particularly, the content of update server inside installation scale;
Correspondingly, computing module is specifically for obtaining version number and the threshold value of the latest edition upgrading bag, obtain the quantity of the client do not upgraded, calculate the quantity of client and the integral multiple of described threshold value that do not upgrade, and calculate the white list of the client that can upgrade according to described update request and described integral multiple;
Correspondingly, computing module is also specifically for calculating the quantity of the client do not upgraded according to the number being less than the record of the version number of current latest edition in installation scale.
Above-described embodiment is the present invention's more preferably embodiment, and the usual change that those skilled in the art carries out within the scope of technical solution of the present invention and replacement all should be included in protection scope of the present invention.

Claims (29)

1. process a method for update request, it is characterized in that, described method comprises:
Steps A 1: server receives the update request from client, reads the effective period upgrading the renewal modulus value in wrapping and modulus value in described server;
Steps A 2: described server judges that described client sends the time of update request whether within the effective period of described modulus value, if so, performs steps A 3; Otherwise, perform steps A 6;
Steps A 3: described server calculates the described renewal modulus value upgraded in bag according to the information in described update request, obtains the first operation result;
Steps A 4: described server calculates the interval that described client sends the time of update request and the issuing time of described renewal bag, carries out calculating acquisition second operation result according to described interval and described renewal modulus value;
Steps A 5: described server compares described first operation result and described second operation result, if equal, performs steps A 6; Otherwise, send the information not allowing to upgrade to described client, terminate;
Steps A 6: described server sends lastest imformation to described client.
2. the method for claim 1, is characterized in that, the described update request from client comprises: the IP address of client.
3. method as claimed in claim 2, it is characterized in that, described server carries out calculating according to the information in described update request to the described renewal modulus value upgraded in bag and is specially: described server obtains the IP address of described client from described update request, the integer corresponding according to the IP address of described client, carries out modulo operation to described renewal modulus value.
4. the method for claim 1, it is characterized in that, described steps A 4 is specially: described server carries out modulo operation with the interval that described client sends the time of update request and the issuing time of described renewal bag to described renewal modulus value and obtains the second operation result.
5. the method for claim 1, is characterized in that, described server, to after described client sends lastest imformation, also comprises: described client receives described lastest imformation, and operates according to described lastest imformation.
6. method as claimed in claim 5, it is characterized in that, described client operates according to described lastest imformation, is specially: if the lastest imformation that described client receives is not for upgrade, described client does not upgrade; If the lastest imformation that described client receives is for directly upgrading, described client downloads is directly installed after upgrading bag; If the lastest imformation that described client receives is optional renewal, select to judge whether to select to upgrade immediately according to user, if so, described client upgrades immediately; Otherwise described client does not upgrade.
7. process a method for update request, it is characterized in that, comprising:
Step B1: server receives the update request from client;
Step B2: described server obtains area code according to described update request, reads the total quantity of the client that this area does not upgrade according to described area code;
Step B3: whether the total quantity of the client do not upgraded described in described server judges exceedes threshold value, if so, performs step B4; Otherwise described server notifies that described client directly upgrades;
Step B4: described server carries out calculating according to the total quantity of the described client do not upgraded, described threshold value and described update request and obtains result of calculation;
Step B5: described server judges whether described result of calculation is 0, if so, performs step B6; Otherwise, described server send do not allow to upgrade inform described client, terminate;
Step B6: described server sends lastest imformation to described client;
Step B7: described server receives client-side information after the renewal that described client returns, and upgrades described server internal information according to the client-side information after described renewal.
8. method as claimed in claim 7, it is characterized in that, described update request comprises: the IP address of client.
9. method as claimed in claim 7, it is characterized in that, described threshold value is specially: described server allows the maximum of the client terminal quantity simultaneously upgraded.
10. method as claimed in claim 8, it is characterized in that, described step B4 specifically comprises: the total quantity of client do not upgraded described in described server calculates and the integral multiple of described threshold value, the integer that IP address is corresponding according to the IP address computation of the client in described update request, carries out delivery with the integer that described IP address is corresponding to described integral multiple and calculates result of calculation.
11. methods as claimed in claim 7, it is characterized in that, described server internal information is specially: the content of installing in server in scale.
12. methods as claimed in claim 7, is characterized in that, described server, to after described client sends lastest imformation, also comprises: described client receives described lastest imformation, and operates according to described lastest imformation.
13. methods as claimed in claim 12, it is characterized in that, described client operates according to described lastest imformation, is specially: if the lastest imformation that described client receives is not for upgrade, described client does not upgrade; If the lastest imformation that described client receives is for directly upgrading, described client downloads is directly installed after upgrading bag; If the lastest imformation that described client receives is optional renewal, select to judge whether to select to upgrade immediately according to user, if so, described client upgrades immediately; Otherwise described client does not upgrade.
14. 1 kinds of methods processing update request, is characterized in that, comprising:
Step C1: server receives the update request from client;
Step C2: described server judges described client whether in described white list according to current white list, if so, performs step C3; Otherwise described server sends the notice not allowing to upgrade to described client, terminate;
Step C3: described server sends lastest imformation to described client;
Step C4: described server receives information that described client returns and by the described information updating returned in described server internal information.
15. methods as claimed in claim 14, is characterized in that, describedly the described information updating returned are specially in server internal information: the content in described server update installation scale, and according to the content update in installation scale white list;
Described method also comprises: described server determines current white list according to the client allowing to be updated, and specifically comprises:
Step C11: described server obtains version number and the threshold value of latest edition;
Step C12: described server obtains the quantity not upgrading client according to the version number of described latest edition;
Step C13: whether the quantity not upgrading client described in described server judges exceedes described threshold value, if so, performs step C14; Otherwise all clients are directly upgraded;
Step C14: do not upgrade the quantity of client and the integral multiple of described threshold value described in described server calculates;
Step C15: described server, according to described update request and described integral multiple, calculates described white list;
Described server obtains the quantity not upgrading client according to the version number of described latest edition, be specially: described server determine according to the number being less than the record of the version number of current latest edition in installation scale described in do not upgrade the quantity of client.
16. methods as claimed in claim 15, it is characterized in that, described threshold value is specially: described server allows the maximum of the client terminal quantity simultaneously upgraded.
17. methods as claimed in claim 14, it is characterized in that, described update request comprises: the IP address of client.
18. methods as claimed in claim 14, is characterized in that, described server, to after described client sends lastest imformation, also comprises: described client receives described lastest imformation, and operates according to described lastest imformation.
19. methods as claimed in claim 18, is characterized in that, describedly operate according to described lastest imformation, are specially: if the lastest imformation that described client receives is not for upgrade, described client does not upgrade; If the lastest imformation that described client receives is for directly upgrading, described client downloads is directly installed after upgrading bag; If the lastest imformation that described client receives is optional renewal, select to judge whether to select to upgrade immediately according to user, if so, described client upgrades immediately; Otherwise described client does not upgrade.
20. 1 kinds of server systems processing update request, is characterized in that, comprising:
Receiver module, for receiving the update request from client, and reads the effective period upgrading the renewal modulus value in wrapping and modulus value in described server;
First judge module, for judging that described client sends the time of update request whether within the effective period of described modulus value;
First computing module, for calculating the described renewal modulus value upgraded in bag from the information in the update request of client according to described;
Second computing module, for calculating the interval between the time of described client transmission update request and the issuing time of described renewal bag, and calculates according to the renewal modulus value in the described time interval and described renewal bag;
Second judge module, whether the result of calculation for the result of calculation and described second computing module that judge described first computing module is equal;
Sending module, for sending lastest imformation to described client.
21. server systems as claimed in claim 20, it is characterized in that, described first computing module specifically for obtaining the IP address of described client from described update request, the integer that IP address is corresponding according to described IP address acquisition, and with described integer, delivery calculating is carried out to the described renewal modulus value upgraded in bag.
22. server systems as claimed in claim 20, it is characterized in that, described second computing module specifically for calculating the interval between the time of described client transmission update request and the issuing time of described renewal bag, and carries out delivery calculating with described interval to described renewal modulus value.
23. server systems as claimed in claim 20, is characterized in that, described sending module sends specifically for the result drawn according to described second judge module the lastest imformation upgrading, do not upgrade or select to upgrade to described client.
24. 1 kinds of server systems processing update request, is characterized in that, comprising:
First receiver module, for receiving the update request from client, and obtains area code according to described update request;
First judge module, for judging according to described area code whether the quantity of the client that this area does not upgrade exceedes threshold value;
Computing module, calculates for the total quantity according to the described client do not upgraded, described threshold value and described update request;
Second judge module, for judging whether the result that described computing module calculates is 0;
Sending module, for sending lastest imformation to described client;
Second receiver module, for receiving the information of client after renewal that client returns;
Update module, upgrades for the information of information to described server internal of client after the described renewal that receives according to described receiver module.
25. server systems as claimed in claim 24, it is characterized in that, described computing module is specifically for the total quantity of client that do not upgrade described in calculating and the integral multiple of described threshold value, the integer that IP address is corresponding according to the IP address computation of the client in described update request, the integer corresponding with described IP address carries out delivery calculating to described integral multiple.
26. server systems as claimed in claim 24, is characterized in that, described sending module sends specifically for the result obtained judged according to described second judge module the lastest imformation upgrading, do not upgrade or select to upgrade to described client.
27. server systems as claimed in claim 24, is characterized in that, described update module, specifically for according to client-side information after the renewal received, upgrades the content of installing in scale in described server.
28. 1 kinds of server systems processing update request, is characterized in that, comprising:
First receiver module, for receiving the update request from client;
Computing module, for calculating the white list of client;
Judge module, for according to described update request, judges described client whether in the white list of described client;
Sending module, for the result judged according to described judge module, sends lastest imformation to described client;
Second receiver module, for receiving the information that client returns;
Update module, for the information updating of client after the renewal that receives according to described receiver module in described server internal information.
29. server systems as claimed in claim 28, is characterized in that, described update module is specifically for the content of update server inside installation scale;
Described computing module is specifically for obtaining version number and the threshold value of the latest edition upgrading bag, obtain the quantity not upgrading client, calculate and do not upgrade the quantity of client and the integral multiple of described threshold value, and calculate described white list according to described update request and described integral multiple;
Described computing module does not also upgrade the quantity of client described in calculating according to the number being less than the record of the version number of current latest edition in installation scale.
CN201510541890.1A 2015-08-28 2015-08-28 A kind of processing updates the method and server system of request Active CN105245567B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510541890.1A CN105245567B (en) 2015-08-28 2015-08-28 A kind of processing updates the method and server system of request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510541890.1A CN105245567B (en) 2015-08-28 2015-08-28 A kind of processing updates the method and server system of request

Publications (2)

Publication Number Publication Date
CN105245567A true CN105245567A (en) 2016-01-13
CN105245567B CN105245567B (en) 2019-01-22

Family

ID=55043065

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510541890.1A Active CN105245567B (en) 2015-08-28 2015-08-28 A kind of processing updates the method and server system of request

Country Status (1)

Country Link
CN (1) CN105245567B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059844A (en) * 2016-08-17 2016-10-26 洑云龙 Client hot-update method
CN106412696A (en) * 2016-09-20 2017-02-15 深圳Tcl数字技术有限公司 System upgrading method and device for smart television
CN108696374A (en) * 2017-04-10 2018-10-23 北京京东尚科信息技术有限公司 Update the method and apparatus of client configuration
CN110069505A (en) * 2017-09-21 2019-07-30 张锐 Off-line data processing method and off-line data updating device
CN110730090A (en) * 2019-09-05 2020-01-24 深圳平安通信科技有限公司 Batch updating method, device, medium and electronic equipment for agent terminals in cloud environment
CN111142905A (en) * 2019-12-25 2020-05-12 深圳市亿道信息股份有限公司 OTA (over-the-air) upgrading method, OTA server and OTA upgrading system
CN115914451A (en) * 2022-10-27 2023-04-04 兴业银行股份有限公司 Forced updating method and system for android application version

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009589A (en) * 2006-01-26 2007-08-01 腾讯科技(深圳)有限公司 A method and system for software upgrade
CN102387165A (en) * 2010-08-27 2012-03-21 腾讯科技(深圳)有限公司 System and method for upgrading software
CN103248644A (en) * 2012-02-08 2013-08-14 腾讯科技(深圳)有限公司 Load balancing method and device for upgrade detection tasks of plug-in unit
CN104066077A (en) * 2014-06-24 2014-09-24 青岛海信移动通信技术股份有限公司 OTA downloading and upgrading method and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009589A (en) * 2006-01-26 2007-08-01 腾讯科技(深圳)有限公司 A method and system for software upgrade
CN102387165A (en) * 2010-08-27 2012-03-21 腾讯科技(深圳)有限公司 System and method for upgrading software
CN103248644A (en) * 2012-02-08 2013-08-14 腾讯科技(深圳)有限公司 Load balancing method and device for upgrade detection tasks of plug-in unit
CN104066077A (en) * 2014-06-24 2014-09-24 青岛海信移动通信技术股份有限公司 OTA downloading and upgrading method and device thereof

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106059844A (en) * 2016-08-17 2016-10-26 洑云龙 Client hot-update method
CN106412696A (en) * 2016-09-20 2017-02-15 深圳Tcl数字技术有限公司 System upgrading method and device for smart television
WO2018053963A1 (en) * 2016-09-20 2018-03-29 深圳Tcl数字技术有限公司 Method and apparatus for upgrading system of smart television
CN108696374A (en) * 2017-04-10 2018-10-23 北京京东尚科信息技术有限公司 Update the method and apparatus of client configuration
CN108696374B (en) * 2017-04-10 2021-10-01 北京京东尚科信息技术有限公司 Method and device for updating client configuration
CN110069505A (en) * 2017-09-21 2019-07-30 张锐 Off-line data processing method and off-line data updating device
CN110730090A (en) * 2019-09-05 2020-01-24 深圳平安通信科技有限公司 Batch updating method, device, medium and electronic equipment for agent terminals in cloud environment
CN110730090B (en) * 2019-09-05 2023-02-03 深圳平安通信科技有限公司 Batch updating method, device, medium and electronic equipment for agent terminals in cloud environment
CN111142905A (en) * 2019-12-25 2020-05-12 深圳市亿道信息股份有限公司 OTA (over-the-air) upgrading method, OTA server and OTA upgrading system
CN111142905B (en) * 2019-12-25 2024-05-10 深圳市亿道信息股份有限公司 OTA upgrading method, OTA server and OTA upgrading system
CN115914451A (en) * 2022-10-27 2023-04-04 兴业银行股份有限公司 Forced updating method and system for android application version

Also Published As

Publication number Publication date
CN105245567B (en) 2019-01-22

Similar Documents

Publication Publication Date Title
CN105245567A (en) Method for processing update request and server system
CN103699408A (en) Software updating method and equipment
CN102724308A (en) Software update method and software update system
CN102546675A (en) Software upgrading system and method
CN111158715B (en) Gray release control method and system
CN1886976B (en) Method and apparatus for performing actions on a wireless device using action lists and versioning
CN109617996A (en) File uploads and method for down loading, server and computer readable storage medium
CN103002024A (en) Application program upgrade system and application program upgrade method
CN112506559B (en) Gray release method and device based on gateway, electronic equipment and storage medium
CN111897548A (en) Front-end resource publishing method and device, electronic equipment and computer storage medium
CN110888658A (en) Dynamic method and device for functional module in application program and storage medium
CN104834541A (en) Function module mounting method, mounting system and mounting system updating method
CN104881454A (en) Updating method and system of parameter
CN113961226B (en) Software development kit repairing method, terminal, server and equipment
CN111736876A (en) Client update control method, device, storage medium and server
CN111125170A (en) Cross-service data acquisition method and device of micro-service and micro-service equipment
CN109697117B (en) Terminal control method, terminal control device and computer-readable storage medium
CN112540783A (en) Client upgrading method and device, storage medium and electronic equipment
CN105100117A (en) Method and device for accessing combined services
CN113031997A (en) Upgrade package generation and management method and device, computer equipment and storage medium
JP5533440B2 (en) Arrangement determining program, method and apparatus
CN105653341A (en) Method, device and system for upgrading network invoice client
CN115022171B (en) Method and device for optimizing update interface, electronic equipment and readable storage medium
CN104239108A (en) Software update method, software update server, client and software update system
CN113961220A (en) Automatic program updating method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Xueqing Road No. 9 Ebizal building B building room 205

Applicant after: Beijing Jianshi Chengxin Technologies Co., Ltd.

Address before: 100085 Beijing city Haidian District Xueqing Road No. 9 Ebizal building 17 floor B building

Applicant before: Beijing Jianshi Chengxin Technologies Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant