CN107786611A - Adaptive strategy method is downloaded in a kind of TMS applications - Google Patents
Adaptive strategy method is downloaded in a kind of TMS applications Download PDFInfo
- Publication number
- CN107786611A CN107786611A CN201610778254.5A CN201610778254A CN107786611A CN 107786611 A CN107786611 A CN 107786611A CN 201610778254 A CN201610778254 A CN 201610778254A CN 107786611 A CN107786611 A CN 107786611A
- Authority
- CN
- China
- Prior art keywords
- download
- pos
- tms
- time point
- downloaded
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
- H04L67/1078—Resource delivery mechanisms
- H04L67/1085—Resource delivery mechanisms involving dynamic management of active down- or uploading connections
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to the adaptive strategy method that a kind of TMS applications are downloaded, this method comprises the following steps:TMS systems are passively dispersed the request time point of download to the previously given POS of download request of each POS terminal;The TMS systems judge whether each POS terminal in given request time point completes download, if having completed to download, terminate;Downloaded if not completing, when receiving the POS terminal POS Active dispersion download requests for not completing and downloading, give the request time point that POS is passively dispersed download again.The present invention is passively dispersed download request using POS and POS Active dispersion download request two ways is combined, the purpose that POS is passively dispersed download is the generation for avoiding asking congestion in theory, and the purpose that POS Active dispersions are downloaded is that ought occur abnormal conditions in practice, when result in congestion situation generation, active dodge and control are carried out to congestion, finally realize adaptive progress Congestion Avoidance and control.
Description
Technical field
The present invention relates to the strategy process that application is downloaded, more particularly to a kind of TMS (Terminal Management
System, terminal management system) using the adaptive strategy method downloaded.
Background technology
, may be remote by TMS applications when POS terminal is newly installed and necessary renewal be present using initialization or some applications
The mode that journey is downloaded is locally downloading by the application required for it.Load and performance due to TMS systems are limited, if together
When a large amount of POS applications download requests be present, a large amount of queuings may be produced, lead to not timely processing.
On the other hand, when a large amount of requests arrive simultaneously, TMS servers need prolonged heavy-duty service, with processing
These application requests.And may be very idle in other period TMS servers.Load it is fluctuated, fluctuation it is very big, this to service
Device performance causes larger negative effect.
It is general not use effective method at present in TMS application downloading fields, measure is even taken, is used
Big multimode or tactful relatively simpleization, do not solve problem above well.Such as:Only consider that TMS servers are simple
The download request for POS carry out time slicing, do not account for POS terminal and miss given time point because abnormal, concentration start shooting into
The abnormal conditions such as row download request.In addition, single concurrency policies are used only, not taking into account will to the ageing of TMS download requests
Seek very strict application scenarios;Further, because tactful key element is a lot, configuration is numerous and diverse, and no empirical value is made reference, it is necessary to use
Person has higher practical experience and corresponding technical ability, otherwise easily cause strategy itself set unreasonable and strategy between rush
Prominent situation occurs;Finally, it is impossible to according to the scene of application, a variety of strategies are flexibly set, method is stiff.
The content of the invention
In view of the above problems, it is proposed that the present invention, so as to provide one kind overcome above mentioned problem or at least in part solve on
State the adaptive strategy method that a kind of TMS applications of problem are downloaded.
A kind of adaptive strategy method that TMS applications are downloaded, this method comprise the following steps:
TMS systems are passively dispersed the request time point of download to the previously given POS of download request of each POS terminal;
The TMS systems judge whether each POS terminal in given request time point completes download, if having completed
Download, then terminate;Downloaded if not completing, when receiving the POS terminal POS Active dispersion download requests for not completing and downloading, again
Given POS is passively dispersed the request time point of download.
Further, methods described also comprises the following steps:Download request in the TMS systems to each POS terminal
Previously given POS is passively dispersed before the request time point of download, and the timeslice that application or application renewal are downloaded to POS terminal is carried out
Discretization.
Further, the download request includes the download to application program or the download of program is updated to application.
Further, according to the situation about being utilized of TMS systems, the request time point that the POS is passively dispersed download can
To be the download at once of permission POS terminal or allow POS terminal to be downloaded at the time point specified later.
Further, whether the POS terminal in given request time point completes download, refers to that POS terminal refers in TMS
Whether fixed time point downloads automatically is completed, or whether the time point specified in POS is actively downloaded.
Further, the step of TMS generations POS is passively dispersed the request time point of download specifically includes:
Tactful key element is initialized;
According to formula DCRV=((PN × ST)/(TCN × MCL])], calculate download period experience value DCRV;According to
Formula T=(Close Date-Start Date+1) × (end time-time started), calculate time range T;Wherein, PN is pre-terminated
The POS terminal quantity entered, ST are the duration of estimating of single download, and TCN is TMS system maximum number of concurrent, and MCL is that Policy model is concurrent
Degree, (] omit representation for " not giving up only to enter " of numerical value;
Judge whether DCRV and the time range T drafted match, if DCRV≤T, then it represents that matching, DCRV meet expection;
If DCRV > T, miscue is provided, and carries out adaptive adjustment DCRV processes;
In the case of expected from meeting in DCRV, download request time point is calculated.
Further, it is described that the initialization of tactful key element is specifically included:Parameter PN, ST and TCN are drafted in input, set MCL
Default value, MCL default values can according to circumstances update adjustment setting.
Further, the MCL default values are 70%.
Further, the process of the adaptive adjustment DCRV specifically includes:According to application scenarios, Reasonable adjustment strategy will
Element:PN, ST, TCN, MCL, beginning and end date, start and end time;Perform to calculate DCRV and T and compare both and sentence
It is disconnected, until DCRV≤T, meets expection.
Further, the POS Active dispersions download request mode specifically includes:When POS terminal actively initiates download request
Result in request queue and it is overtime when, then directly return, by POS terminal according to policy control factor HC, actively calculate next time
The time point of request is initiated to TMS systems, download request, acquisition are initiated when POS terminal is until the time point arrives, then to TMS
The POS that TMS systems are sent again is passively dispersed download request time point.
According to strategy process of the present invention, all POS terminals can be made in defined download period, orderly, scattered completion
The download renewal of application.The present invention is passively dispersed download request using POS and mutually tied with POS Active dispersion download request two ways
Close, the purpose that POS is passively dispersed download is the generation for avoiding asking congestion in theory, and the purpose that POS Active dispersions are downloaded
It is ought occur abnormal conditions in practice, when result in congestion situation generation, active dodge and control is carried out to congestion, thus, most
Adaptive progress Congestion Avoidance and control are realized eventually.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment
Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill of field, without having to pay creative labor, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the schematic flow sheet for the adaptive strategy method that a kind of TMS applications of the embodiment of the present invention are downloaded.
Fig. 2 is the schematic flow sheet for the adaptive strategy method that a kind of TMS applications of another embodiment of the present invention are downloaded.
The POS terminal quantity PN for the pre-access that Fig. 3 provides for the present invention and the setting of other tactful key elements are to system loading shadow
Loud schematic diagram.
Fig. 4 is the schematic flow sheet that a kind of TMS of another embodiment of the present invention calculates the method at download request time point.
Fig. 5 is the download period DC and the schematic diagram of system load relation that the present invention provides.
Fig. 6 is the schematic flow sheet for the adaptive strategy method that a kind of TMS applications of another embodiment of the present invention are downloaded.
Embodiment
For ease of the understanding to the embodiment of the present invention, make further by taking several specific embodiments as an example below in conjunction with accompanying drawing
Explanation, and each embodiment does not form the restriction to the embodiment of the present invention.
For the strategy process of the clearer explanation present invention, first the tactful key element used in strategy process of the present invention is done
One describes in detail.In the strategy process of the present invention, there is following key element strategy:Strategy number (Policy SN, PSN), strategy names
Title, from date and Close Date, time started and end time, the POS terminal quantity (Pos Number, PN) of pre-access, list
Secondary download estimate duration (Signal Time, ST), TMS service maximum number of concurrent (Tms Concurrency Number,
TCN), Policy model concurrency (Model Concurrency Level, MCL), download period experience value (Download
Cycle Reference Value, DCRV), download period (Download Cycle, DC), the congestion control factor (Hold
Control, HC) etc..
The strategy process of the present invention, using tactful key element as parameter, is divided into and drafts parameter and Automatic parameter two types.Draft
Parameter, refer to according to tactful application scenarios, the initial value of setting, can be taking human as progress dynamic adjustment.Such as:For MCL, if
It is not desired to be set as default value 70%, can also sets other values, such as 20%.For DC, default value is equal to experience value DCRV, with
The situation about going against accepted conventions very much for avoiding being manually set, it also can artificially adjust certainly and increase the value.Automatic parameter, refer to system according to certain
Rule drafts the value that the setting of parameter is drawn, is that automatic calculate generates.Specifically:
Strategy number, it is Automatic parameter, unique mark some the tactful identification code automatically generated by system.
Policy name, it is to draft parameter, sets manually the Chinese or brief description of strategy.
From date and Close Date, it is to draft parameter, the execution date scope of the tactful task set manually.
Time started and end time, it is to draft parameter, in the execution date scope of the tactful task set manually
Specific time range.
The POS terminal quantity PN of pre-access, is to draft parameter, the POS terminal of the plan access of the tactful task set manually
Has quantity.
Single download estimates duration ST, is to draft parameter, and in the tactful task set manually, connection is completed per station terminal
What machine was downloaded estimates duration.
TMS system maximum number of concurrent TCN, are to draft parameter, the TMS server systems of the implementation strategy set manually can
The maximum number of concurrent of carrying.
Policy model concurrency MCL, it is that Automatic parameter is also to draft parameter, refers to TMS services shared in strategy most
Big number of concurrent TCN percentage.There is a default value, such as 70%, the default value can also manually change setting again.MCL's
Use and set, be unlikely to make the load of system too high again while systematic function can be played to greatest extent.In addition, for some
POS terminal misses original time point because of abnormal conditions and downloads the random download request of backward TMS initiations, and MCL can prevent analogue
The increased load of TMS systems is caused to be difficult to hold affected, also reserve surplus for Congestion Avoidance.
Download period experience value DCRV, is Automatic parameter, by system according to correlation draft parameter calculate automatically to
The experience value gone out.DCRV is calculated with TCN × MCL.The value is bigger, represents that download period is longer, system loading
It is smaller.Conversely, representing that download period is shorter, system loading is higher.When MCL is equal to 100%, DCRV is theoretically minimum,
Simultaneity factor is in maximum concurrent TCN oepration at full load states.According to a large amount of demonstrations, MCL is typically set in 50%~70%, than
It is more reasonable.
Download period DC, it is that Automatic parameter is also to draft parameter, refers to the download period really applied in strategy.There is one
Default value, i.e. its acquiescence are equal to download period experience value, can also manually change setting again;
Congestion control factor HC, it is that Automatic parameter is also to draft parameter, refers in POS terminal active mode, calculates POS terminal
The time point NT (Next Time, NT) asked next time.HC default value is 1, can also manually change setting again.HC is got over
Greatly, the NT offsets of generation will be bigger, therefore the probability of congestion can be smaller next time, so as to which larger probability avoids congestion.Generation
Valency is that its download update cycle is elongated, may exceed DC.Therefore it is not the bigger the better, appropriateness is all right.
As shown in figure 1, according to an aspect of the present invention, there is provided a kind of adaptive strategy method that TMS applications are downloaded, should
Method specifically comprises the following steps:
Step S110, TMS system is passively dispersed the request of download to the previously given POS of download request of each POS terminal
Time point.Specifically, TMS services establishment strategy model, application is downloaded to POS terminal or is carried out using the timeslice updated discrete
Change, its rational request time point is provided in advance to the download request of each POS terminal, so as to avoid request congestion in theory
Generation.It is passive equivalent to POS terminal, therefore referred to as POS is passively dispersed down because the time point is provided by TMS systems
Carry request method.Download request includes the download to application program or the download of program is updated to application.According to TMS systems
Situation about being utilized, the request time point that the POS is passively dispersed download can be allow POS terminal download at once or
POS terminal is allowed to be downloaded at the time point specified later.The download of POS terminal can be POS terminal in the case where the time point that TMS is specified is automatic
(POS is passively dispersed downloading mode, the time point for timeslice be calculated after discretization by TMS) is carried to complete, Huo Zhe
Time point active (the POS Active dispersion downloading modes, when this is actively calculated according to actual congestion situation by POS that POS is specified
Between point) be downloaded.
The step of TMS generations POS is passively dispersed the request time point of download specifically includes:
(1) tactful key element is initialized.Parameter PN, ST and TCN are drafted in input, set MCL default values, for example default value is
70%, MCL default value can according to circumstances update adjustment setting.Tactful key element acquiescence is fixed and dynamic adjustment is combined, and increases
The flexibility of configuration, the applicabilities of more scenes.Such as:MCL acquiescences are equal to 70%, DC acquiescences and are equal to DCRV, it is of course possible to root
According to practical application, change again is carried out to these tactful key elements and set.
(2) according to formula DCRV=((PN × ST)/(TCN × MCL])], calculate DCRV;According to formula T=(closing days
Phase-Start Date+1) × (end time-time started), calculate time range T.In the present invention, [) represent numerical value " only
House does not enter " (i.e. " truncate method ") representation, such as:[0.6)=0, [1.8)=1, [it is 2.3)=2, such, it is hereafter identical.(]:
Represent that " not the giving up only to enter " of numerical value omits representation, such as:(0.6]=1, (1.8]=2, (2.3]=3, such, hereafter phase
Together.
(3) judge whether DCRV and the time range T drafted match, if DCRV≤T, then it represents that matching, DCRV meets pre-
Phase;If DCRV > T, miscue is provided, and carries out adaptive adjustment DCRV processes.If DCRV≤T, in representation theory
All download request tasks can be completed in the time range drafted;If DCRV>T, represent the time model drafted at this
All download request tasks can not be completed in enclosing, it is necessary to increase time range or the other policing parameters of adjustment, this kind of situation, plan
Summary can not come into force, and system must provide corresponding miscue to adjust.Adaptive adjustment DCRV process specifically includes:Root
According to application scenarios, Reasonable adjustment strategy key element:PN, ST, TCN, MCL, beginning and end date, start and end time;Perform
DCRV and T is calculated and to both multilevel iudges, until DCRV≤T, meets expection.
(4) in the case of expected from meeting in DCRV, download request time point is calculated.
This method is using download period experience value DCRV as reference, and the empirical value is by system according to tactful key element
PN, ST, TCN and MCL are drawn according to algorithm adaptive polo placement.Whether the artificial DCRV that investigates is in the range of expected imagination.If
DCRV is not in desired extent, then connected applications scene can adjust the parameters such as PN, ST, MCL repeatedly, until DCRV falls in expected model
In enclosing.The irrational situation of tactful key element that DCRV adaptivitys adjustment process can avoid artificially setting occurs, and facilitating makes
User.
Step S120, TMS system judges whether each POS terminal in given request time point completes download, if
Complete to download, then terminated;Downloaded if not completing, receiving the unfinished POS terminal POS Active dispersion download requests downloaded
When, the request time point that POS is passively dispersed download is given again.In passive mode, TMS systems are only to provide POS terminal download
The reference time point of TMS applications, and can not really control the time point.When a large amount of POS terminals are because of certain reason, miss original and draft
Download time point, and almost simultaneously to TMS systems initiate download request, may result in congestion.In order to solve this problem, side
POS Active dispersion download request modes are combined in method.POS Active dispersion download request modes specifically include:When POS terminal active
Initiate download request result in request queue and it is overtime when, then directly return, by POS terminal according to policy control factor HC, lead
The time point of request is initiated in dynamic calculating to TMS systems next time, when POS terminal is until the time point arrives, then under TMS initiations
Request is carried, the POS that TMS systems are sent again is obtained and is passively dispersed download request time point.
According to this embodiment of the invention, TMS service establishment strategy model, to POS download application time piece carry out from
Dispersion, its rational request time point (POS is passively dispersed download request) is provided in advance to each POS download request, from
And the generation of request congestion is avoided in theory, make all POS terminals in defined download period, orderly, scattered completion
The download or renewal of application.When there are abnormal conditions, congestion is result in, the side of POS Active dispersion download requests can also be taken
Formula, evade as far as possible and control network congestion when TMS applications are downloaded, avoid largely asking concentration to be waited in line, carry out
Congestion Avoidance and control, so as to farthest avoid congestion and smooth server load, avoid the larger ripple of server load
It is dynamic.
It is corresponding with above-described embodiment, according to another aspect of the present invention, as shown in Fig. 2 also providing a kind of TMS applications
The adaptive strategy method of download, this method specifically comprise the following steps:
Step S210, POS terminal obtain the request time point that the POS specified that TMS systems are sent is passively dispersed download.Download
Request includes downloading application program or more new application.The request time point that POS is passively dispersed download is the discrete time
Point.According to the situation about being utilized of TMS systems, the request time point that the POS is passively dispersed download can allow POS terminal
At once download (the instant downloading modes of POS) or allow POS terminal to be downloaded at the time point specified later.The POS terminal
Download can be that POS terminal downloads that (POS is passively dispersed downloading mode, and timeslice is entered by TMS at the TMS time points specified automatically
The time point being calculated after row discretization) complete, or time point active (the POS Active dispersions download mould specified in POS
Formula, the time point is actively calculated according to actual congestion situation by POS) it is downloaded.
Step S220, judges POS terminal initiates download request whether the request time point specified services to TMS, if so,
Then terminate;If POS terminal does not service to TMS in the request time point specified and initiates download request, downloaded immediately or main
It is dynamic to download, directly returned if time-out is met, and POS Active dispersion download request time points are generated according to the congestion control factor, with
Calculate request time point next time.Download request is initiated after POS terminal waits the time point to arrive, then to TMS.Further,
POS terminal newly install initialization when or POS terminal for the first time with TMS is online report for work when, by the congestion control factor in tactful key element
Bound with discrete time point and the POS terminal.POS terminal may because of abnormal conditions, miss the time point specified cause should
Do not initiated with request, then initiate download request immediately.
POS Active dispersion download request time points are generated, are comprised the following steps:According to formula NT=TN+[1,(HC×
DC)/ST] × ST, calculate and initiate the time point NT using download request to TMS next time.Wherein, [x, y]:Represent section x to y
Random positive integer;TNFor former download request time point, HC is the congestion control factor (Hold control, HC), is defaulted as 1.
HC is bigger, represents that the NT offsets of generation may be bigger, the probability of congestion can be smaller next time.So as to which larger probability avoids gathering around
Plug, cost is that the update cycle is elongated, may exceed the former DC specified.Which is performed by POS terminal.It is wrong due to abnormal conditions
Having spent the time point specified causes application request not initiated, then initiates request immediately, whenever request timed out, then directly returns, so
Afterwards, POS Active dispersion download requests time point NT is calculated.When POS terminal wait the time point arrive after, then to TMS initiate under
Carry request.
According to this embodiment of the invention, two kinds of download request and POS Active dispersions download request are passively dispersed using POS
Mode is combined, and POS Active dispersions are downloaded is divided into automatic immediate downloading mode and Active dispersion downloading mode again.POS passively divides
It is the generation for avoiding asking congestion in theory to dissipate the purpose downloaded;The purpose that automatic immediate is downloaded is when POS terminal detects it
Passive download time point can initiate download request to TMS automatically, immediately after having failed, so as to efficiently solve because POS or TMS are different
Often miss the problem of downloading timeliness point;The purpose that POS Active dispersions are downloaded is that ought occur abnormal conditions in practice, result in and gathers around
When plug situation occurs, active dodge and control are carried out to congestion.
As shown in figure 3, MPN=TCN × MCL, represents number of concurrent of the TMS systems in the processing request of single timeslice.
WhenWhen, system can reach saturated process without complications;
WhenWhen, system can reach saturated process in complications;
Therefore, policing type can be divided into two kinds:Minimum concurrent stripping strategy and high concurrent stripping strategy.
WhenWhen, system triggers minimum concurrent stripping strategy, system underrun automatically;
WhenWhen, system triggers high concurrent stripping strategy automatically, heavy-duty service in system;
WhenEvenWhen, system is close at full capacity or overload operation.May
A large number of services queuing persistently be present.MPN is bigger closer to TPN, the load of system.
Preferably, MPN is limited to the 70% of TPN.It is unlikely to make system again while playing systematic function to greatest extent
Load it is too high.In addition, preventing some POSs from missing the download request after original time point downloads, to arrive at random, kept away for congestion
Exempt to reserve surplus.If the MPN set is not met by application demand, it is contemplated that increase the circulation of download already close to TCN
Cycle DT, or reduce POS quantity PN, or even system concurrency TCN is improved to increase MPN to solve problem.
Therefore, according to another aspect of the present invention, as shown in figure 4, also providing a kind of TMS calculates download request time point
Method, methods described include:
Step S410, calculate PN whether be less than or equal to (DC/ST].If it is, under being calculated by minimum concurrent fragmentation schema
Carry request time point;Otherwise, carry out in next step.Minimum concurrent slicing algorithm, refer to TMS systems without concurrent or minimum concurrent
The request that each POS downloads application is completed in mode, as soon as possible processing.The algorithm is the derivative of high concurrent slicing algorithm.Work as TCN
During × MCL=1, belong to such a situation.It is applicable scene:Has quantity not to the time-bounded less demanding, POS of TMS application renewals
In the case that more, TMS service ends do not support that high concurrent or systematic function are relatively low, the Auto-matching pattern.
Minimum concurrent fragmentation schema calculates download request time point, and its step specifically includes:
According to formula TN=TS+(n‐1)×DC/ST,n:[1, PN], calculate TN;By n and corresponding TNIt is stored in MAP data
In structure.
Wherein, TNThe time point distributed when being accessed for TMS n-ths POS;TSFor TMS some cycle period CT starting
Time point;N is positive integer, refers to the counting sequence of the POS download requests at TMS ends, is started counting up from 1, whenever need access once,
Then perform a n+1.
Step S420, calculate PN whether be less than or equal to (TCN × MCL × DC/ST].If it is, press high concurrent collapsible mould
Formula calculates download request time point;Otherwise, carry out in next step.High concurrent fragmentation schema algorithm, refer to TMS systems with high concurrent
Mode, which is handled, completes the request that each POS downloads application.It is applicable scene:To TMS application renewal time-bounded requirement it is higher,
In the case of POS tool quantity is more, TMS servers support that high concurrent or systematic function are preferable, the Auto-matching pattern.
High concurrent fragmentation schema calculates download request time point, and its specific steps includes:
According to formula X=((PN × ST)/DC], calculate the number of concurrent X of processing business in single business hours piece;According to formula
TN=TS+[(n‐1)/X)×DC/ST,n:[1, PN], result of calculation TN;By n and corresponding TNIt is stored in MAP data structures.
Wherein, TNThe time point distributed when being accessed for TMS n-ths POS;TSFor TMS some cycle period CT starting
Time point;N is positive integer, refers to the counting sequence of the POS download requests at TMS ends, is started counting up from 1, whenever need access once,
Then perform a n+1.
Further, when DC is equal to DCRV, X is equal to TCN × MCL.DC is bigger, and X is smaller, represents in single business hours piece
The number of concurrent of processing business is fewer, and system loading is with regard to smaller;Otherwise the number of concurrent of processing business is more in single business hours piece, is
Load of uniting is higher.
Step S430, system will be forced adjustment DC to be equal to DCRV, divided by high concurrent close at full capacity or excess load off status
Tablet mode calculates download request time point.
As the further improvement of above-described embodiment, if necessary, DC can be manually adjusted, preferably entered to the DC directions increased
Row adjustment.As shown in figure 5, SL represents system load (System Load, SL), DCRV is calculated by default value such as 70% of MCL
Out, represent that DC acquiescences are equal to DCRV.It can also be manually adjusted, preferably be adjusted to big direction.DC is bigger, represents
Download period is longer, and system loading is smaller.Conversely, representing that download period is shorter, system loading is higher.When MCL is equal to 100%
When, DCRV is theoretically minimum (being designated as MinDCRV), and simultaneity factor is in maximum concurrent TCN oepration at full load states.
During DC is adjusted, there are following points for attention:DC acquiescences are equal to DCRV.And DCRV be system according to PN, ST,
The warp of the download period drawn on the premise of the tactful key elements such as TCN, MCL, beginning and end date, start and end time are certain
Test reference value.Represent within the DCRV cycles and delimit time range in, with MCL concurrency can handled it is all under
Carry request.It in practical application scene, can suitably increase DC values as needed, make system actual (small with less concurrency
In MCL) and system loading all download requests have been handled within the DC cycles.When adjusting DC, typically adjusted to the direction of increase.Such as
Fruit is general not have to adjust the DC values without special requirement.DC is determined, is from most in conjunction with the other key element can matchings of strategy
Few fragmentation schema, or high concurrent pattern.
The present invention is combined using high concurrent burst and minimum concurrent two kinds of algorithms of burst, and according to tactful key element, from
It is dynamic to adapt to optimal algorithm, the smooth to greatest extent load of server.
According to another aspect of the present invention, the various embodiments described above can be combined, as shown in fig. 6, also providing a kind of TMS
Using the adaptive strategy method of download, this method specifically comprises the following steps:
Step S610, TMS generation POS is passively dispersed the request time point of download and distributes to each POS terminal.Specific bag
Include:Tactful key element is initialized.Parameter PN, ST and TCN are drafted in input, set MCL default values, for example default value is 70%, MCL
Default value can according to circumstances update adjustment setting.DCRV is calculated, and judges whether DCRV meets to be expected, if being unsatisfactory for being expected,
Then adaptively adjust DCRV.Calculate DCRV and judge whether it meets expected method, done in the above-described embodiments in detail
Explanation, will not be repeated here.
Step S620, calculate PN whether be less than or equal to (DC/ST].If it is, under being calculated by minimum concurrent fragmentation schema
Carry request time point;Otherwise, carry out in next step.
Step S630, calculate PN whether be less than or equal to (TCN × MCL × DC/ST].If it is, press high concurrent collapsible mould
Formula calculates download request time point;Otherwise, carry out in next step.
Step S640, system will be forced adjustment DC to be equal to DCRV, divided by high concurrent close at full capacity or excess load off status
Tablet mode calculates download request time point.
Because the computational methods of minimum concurrent fragmentation schema and high concurrent fragmentation schema have been done in detail in the above-described embodiments
Thin elaboration, is no longer excessively repeated herein.
As the further improvement of above-described embodiment, DC can be manually adjusted as needed, preferably entered to the DC directions increased
Row adjustment.Its adjustment process has elaborated in the above-described embodiments, will not be repeated here.
Using strategy process of the present invention, make all POSs in defined download period, orderly, scattered completion should
Updated with downloading.The strategy process has following purpose and advantage:
(1) download request and Active dispersion download request two ways are passively dispersed using POS, adaptive discrete TMS
Using download request, evade as far as possible and control TMS to avoid a large amount of requests from concentrating queuing etc. using network congestion when downloading
Treat;
(2) load of smooth server to greatest extent, the larger fluctuation of server load is avoided;
(3) adaptively selected high concurrent stripping strategy and minimum concurrent stripping strategy, reasonably using server resource;
(4) adaptive polo placement download period, and empirical value is provided as reference, convenient use person's more reasonably dynamic optimization
Tactful key element, to avoid artificially adjusting the blindness of tactful key element;
(5) system can be respectively created according to the difference of the actual practical scene such as the type, size, time for downloading application
A variety of strategies, to meet flexible application demand.
One of ordinary skill in the art will appreciate that:Accompanying drawing is the schematic diagram of one embodiment, the module stream in accompanying drawing
Journey is not necessarily implemented necessary to the present invention.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for system or
For system embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method
The part explanation of embodiment.System and system embodiment described above is only schematical, wherein the conduct
The unit that separating component illustrates can be or may not be it is physically separate, can be as the part that unit is shown or
Person may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can root
Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill
Personnel are without creative efforts, you can to understand and implement.
The foregoing is only a preferred embodiment of the present invention, but protection scope of the present invention be not limited thereto,
Any one skilled in the art the invention discloses technical scope in, the change or replacement that can readily occur in,
It should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with scope of the claims
It is defined.
Claims (10)
1. a kind of adaptive strategy method that TMS applications are downloaded, this method comprise the following steps:
TMS systems are passively dispersed the request time point of download to the previously given POS of download request of each POS terminal;
The TMS systems judge whether each POS terminal in given request time point completes download, if completing down
Carry, then terminate;Download if not completing, when receiving the POS terminal POS Active dispersion download requests for not completing and downloading, give again
Determine the request time point that POS is passively dispersed download.
2. the adaptive strategy method that a kind of TMS applications according to claim 1 are downloaded, it is characterised in that methods described
Also comprise the following steps:Download is passively dispersed to the previously given POS of download request of each POS terminal in the TMS systems
Before request time point, the timeslice that application or application renewal are downloaded to POS terminal carries out discretization.
3. the adaptive strategy method that a kind of TMS applications according to claim 1 are downloaded, it is characterised in that:The download
Request includes the download of correspondence program or the download of program is updated to application.
4. the adaptive strategy method that a kind of TMS applications according to claim 1 are downloaded, it is characterised in that:According to TMS systems
The situation about being utilized of system, the request time point that the POS is passively dispersed download can be the downloads at once for allowing POS terminal,
Can allow POS terminal to be downloaded at the time point specified later.
5. the adaptive strategy method that a kind of TMS applications according to claim 1 are downloaded, it is characterised in that:The POS terminal
Whether in given request time point download is completed, refer to whether POS terminal has been downloaded automatically at the TMS time points specified
Into, or the time point specified in POS whether actively downloaded.
6. the adaptive strategy method that a kind of TMS applications according to claim 1 are downloaded, it is characterised in that:The TMS lifes
The step of request time point of download is passively dispersed into POS specifically includes:
Tactful key element is initialized;
According to formula DCRV=((PN × ST)/(TCN × MCL])], calculate download period experience value DCRV;According to formula T
=(Close Date-Start Date+1) × (end time-time started), calculate time range T;Wherein, PN is pre-access
POS terminal quantity, ST estimate duration for single download, and TCN is TMS system maximum number of concurrent, and MCL is Policy model concurrency,
(] omits representation for " not giving up only to enter " of numerical value;
Judge whether DCRV and the time range T drafted match, if DCRV≤T, then it represents that matching, DCRV meet expection;If
DCRV > T, then miscue is provided, and carry out adaptive adjustment DCRV processes;
In the case of expected from meeting in DCRV, download request time point is calculated.
7. the adaptive strategy method that a kind of TMS applications according to claim 5 are downloaded, it is characterised in that:The countermeasure
Slightly key element initialization specifically includes:Parameter PN, ST and TCN are drafted in input, set MCL default values, MCL default values can be according to feelings
Condition renewal adjustment setting.
8. the adaptive strategy method that a kind of TMS applications according to claim 5 are downloaded, it is characterised in that:The MCL writes from memory
Value is recognized for 70%.
9. the adaptive strategy method that a kind of TMS applications according to claim 5 are downloaded, it is characterised in that:It is described adaptive
The process that DCRV should be adjusted specifically includes:According to application scenarios, Reasonable adjustment strategy key element:PN, ST, TCN, MCL, beginning and knot
Beam date, start and end time;Perform and calculate DCRV and T and to both multilevel iudges, until DCRV≤T, meets expection.
10. the adaptive strategy method that a kind of TMS applications according to claim 1 are downloaded, it is characterised in that:The POS
Active dispersion download request mode specifically includes:When POS terminal actively initiate download request result in request queue and it is overtime when,
Then directly return, the time point of request initiated to TMS systems according to policy control factor HC, actively calculating next time by POS terminal,
Download request is initiated when POS terminal is until the time point arrives, then to TMS, the POS that TMS systems are sent again is obtained and passively divides
Dissipate download request time point.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610778254.5A CN107786611A (en) | 2016-08-30 | 2016-08-30 | Adaptive strategy method is downloaded in a kind of TMS applications |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610778254.5A CN107786611A (en) | 2016-08-30 | 2016-08-30 | Adaptive strategy method is downloaded in a kind of TMS applications |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107786611A true CN107786611A (en) | 2018-03-09 |
Family
ID=61451055
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610778254.5A Pending CN107786611A (en) | 2016-08-30 | 2016-08-30 | Adaptive strategy method is downloaded in a kind of TMS applications |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107786611A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101141475A (en) * | 2007-10-15 | 2008-03-12 | 中兴通讯股份有限公司 | Wireless network data booking download system and method |
CN101212447A (en) * | 2006-12-25 | 2008-07-02 | 上海千首网络技术有限公司 | Information content presentation method in communication terminal |
CN102025714A (en) * | 2009-09-17 | 2011-04-20 | ***通信集团公司 | Implementation method, device and system for multimedia broadcast multicast service (MBMS) |
CN102708008A (en) * | 2012-04-12 | 2012-10-03 | 福建联迪商用设备有限公司 | Implementation method of linking download strategy |
CN103116505A (en) * | 2012-11-16 | 2013-05-22 | 福建联迪商用设备有限公司 | Downloading method capable of automatic matching |
CN103905491A (en) * | 2012-12-27 | 2014-07-02 | ***股份有限公司 | POS access system-based terminal remote download method and system thereof |
US20140279107A1 (en) * | 2013-03-14 | 2014-09-18 | William P. Vasquez | Systems and methods for integrated, secure point-of-sale transactions |
CN104679528A (en) * | 2013-11-26 | 2015-06-03 | ***股份有限公司 | Method and device for remotely updating application program |
-
2016
- 2016-08-30 CN CN201610778254.5A patent/CN107786611A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212447A (en) * | 2006-12-25 | 2008-07-02 | 上海千首网络技术有限公司 | Information content presentation method in communication terminal |
CN101141475A (en) * | 2007-10-15 | 2008-03-12 | 中兴通讯股份有限公司 | Wireless network data booking download system and method |
CN102025714A (en) * | 2009-09-17 | 2011-04-20 | ***通信集团公司 | Implementation method, device and system for multimedia broadcast multicast service (MBMS) |
CN102708008A (en) * | 2012-04-12 | 2012-10-03 | 福建联迪商用设备有限公司 | Implementation method of linking download strategy |
CN103116505A (en) * | 2012-11-16 | 2013-05-22 | 福建联迪商用设备有限公司 | Downloading method capable of automatic matching |
CN103905491A (en) * | 2012-12-27 | 2014-07-02 | ***股份有限公司 | POS access system-based terminal remote download method and system thereof |
US20140279107A1 (en) * | 2013-03-14 | 2014-09-18 | William P. Vasquez | Systems and methods for integrated, secure point-of-sale transactions |
CN104679528A (en) * | 2013-11-26 | 2015-06-03 | ***股份有限公司 | Method and device for remotely updating application program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100556038C (en) | A kind of content distribution method based on outer condition trigger node action | |
CN105357296A (en) | Elastic caching system based on Docker cloud platform | |
CN104092756A (en) | Cloud storage system resource dynamic allocation method based on DHT mechanism | |
CN104052677B (en) | The soft load-balancing method and device of data mapping | |
CN108681481A (en) | The processing method and processing device of service request | |
CN114064229A (en) | Cluster node processing method, system, device and medium | |
CN101022397A (en) | Distributing traffic information storage file system | |
CN109947081B (en) | Internet vehicle control method and device | |
CN107104956B (en) | A kind of remote sensing distribution method and system based on user's priority | |
CN112416542A (en) | Distributed task system, management method and device and computer equipment | |
CN107786608A (en) | Adaptive strategy method is downloaded in a kind of TMS applications | |
CN107786614A (en) | Adaptive strategy method is downloaded in a kind of TMS applications | |
CN107786611A (en) | Adaptive strategy method is downloaded in a kind of TMS applications | |
CN110650206B (en) | IO flow control method and device in distributed storage system and storage medium | |
CN107786615A (en) | Adaptive strategy method is downloaded in a kind of TMS applications | |
CN107341377A (en) | Time synchronization control method in one kind authentication | |
CN110442455A (en) | A kind of data processing method and device | |
CN106980545B (en) | Remote calling method and device | |
CN112631671B (en) | Method and device for initializing operating system | |
CN114390005A (en) | Method and device for processing communication link blockage, electronic equipment and storage medium | |
CN113645324A (en) | IP distribution method and system based on queue | |
CN113852508B (en) | Communication method and device in equipment batch deployment scene | |
CN110636104A (en) | Resource request method, electronic device and storage medium | |
CN109697126A (en) | A kind of data processing method and device for server | |
CN114290937B (en) | Electric automobile charging processing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180309 |