CN107786608A - 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
- CN107786608A CN107786608A CN201610772272.2A CN201610772272A CN107786608A CN 107786608 A CN107786608 A CN 107786608A CN 201610772272 A CN201610772272 A CN 201610772272A CN 107786608 A CN107786608 A CN 107786608A
- Authority
- CN
- China
- Prior art keywords
- tms
- download
- time point
- pos
- 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]
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07G—REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
- G07G1/00—Cash registers
- G07G1/12—Cash registers electronically operated
- G07G1/14—Systems including one or more distant stations co-operating with a central processing unit
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to the adaptive strategy method that a kind of TMS applications are downloaded, comprise the following steps:POS terminal obtains the request time point that the POS specified that TMS systems are sent is passively dispersed download;Judge the POS terminal initiates download request whether the request time point specified services to TMS, if so, then terminating;If the POS terminal does not service to TMS in the request time point specified and initiates download request, then carry out automatic, download immediately, directly returned if time-out is met, and POS Active dispersion download request time points are generated according to the congestion control factor, to calculate request time point next time, after request time point arrives next time described in being waited when the POS terminal, then to TMS initiation download requests, obtain the POS that TMS systems are sent again and be passively dispersed download request time point.According to the present invention, POS is passively dispersed the generation downloaded and avoid asking congestion;Immediately downloading can efficiently solve the problems, such as to miss download timeliness point because POS or TMS is abnormal;Active dispersion is downloaded carries out active dodge and control to congestion.
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:
POS terminal obtains the request time point that the POS specified that TMS systems are sent is passively dispersed download;
Judge the POS terminal initiates download request whether the request time point specified services to TMS, if so, then terminating;
If request time point that the POS terminal is not specified at this services to TMS is initiated download request, downloaded immediately or active under
Carry, directly returned if time-out is met, and POS Active dispersion download request time points are generated according to the congestion control factor, to calculate
Request time point next time, download request is initiated after request time point arrives next time described in POS terminal wait, then to TMS,
Obtain the POS that TMS systems are sent again and be passively dispersed download request time point.
Further, methods described also comprises the following steps:The request time point that the POS is passively dispersed download is discrete
Time point.
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 instant downloading modes of POS 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, methods described also includes:POS terminal newly install initialization when or POS terminal for the first time and the online reports of TMS
Then, the congestion control factor in tactful key element and discrete time point are bound with the POS terminal.
Further, 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, and DC is download period, and ST is
Single download estimates duration.
Further, the congestion control factor HC default values are 1.
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 (8)
1. a kind of adaptive strategy method that TMS applications are downloaded, this method comprise the following steps:
POS terminal obtains the request time point that the POS specified that TMS systems are sent is passively dispersed download;
Judge the POS terminal initiates download request whether the request time point specified services to TMS, if so, then terminating;If should
POS terminal does not service to TMS in the request time point specified and initiates download request, then is downloaded or actively downloaded immediately, if
Meet time-out then directly to return, and POS Active dispersion download request time points are generated according to the congestion control factor, to calculate next time
Request time point, download request is initiated after request time point arrives next time described in POS terminal wait, then to TMS, is obtained
The POS that TMS systems are sent again is passively dispersed download request time point.
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:The request time point that the POS is passively dispersed download is discrete time point.
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 that the POS for allowing POS terminal is downloaded immediately
Pattern or permission POS terminal are 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 methods described
Also include: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 in tactful key element
The factor processed and discrete time point bind with the POS terminal.
7. the adaptive strategy method that a kind of TMS applications according to claim 1 are downloaded, it is characterised in that:Generate POS master
At dynamic scattered download request time point, comprise the following steps:According to formula NT=TN+ [1, (HC × DC)/ST] × ST, calculate next
The secondary time point NT initiated to TMS using download request, wherein, [x, y]:Represent section x to y random positive integer;TNFor original
Download request time point, HC are the congestion control factor, and DC is download period, and ST estimates duration for single download.
8. the adaptive strategy method that a kind of TMS applications according to claim 1 are downloaded, it is characterised in that:The congestion
Controlling elements HC default values are 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610772272.2A CN107786608A (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 |
---|---|---|---|
CN201610772272.2A CN107786608A (en) | 2016-08-30 | 2016-08-30 | Adaptive strategy method is downloaded in a kind of TMS applications |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107786608A true CN107786608A (en) | 2018-03-09 |
Family
ID=61450827
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610772272.2A Pending CN107786608A (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) | CN107786608A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109039929A (en) * | 2018-07-06 | 2018-12-18 | 华为技术有限公司 | Business scheduling method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708008A (en) * | 2012-04-12 | 2012-10-03 | 福建联迪商用设备有限公司 | Implementation method of linking download strategy |
CN103905491A (en) * | 2012-12-27 | 2014-07-02 | ***股份有限公司 | POS access system-based terminal remote download method and system thereof |
CN103916910A (en) * | 2013-01-04 | 2014-07-09 | 广达电脑股份有限公司 | Remote upgrading server and applicable load balancing method thereof |
US20140279116A1 (en) * | 2013-03-14 | 2014-09-18 | William P. Vasquez | Systems and methods for integrated, secure point-of-sale transactions |
CN105610939A (en) * | 2015-12-28 | 2016-05-25 | 北京致远协创软件有限公司 | Client and server file downloading control method, device and system |
-
2016
- 2016-08-30 CN CN201610772272.2A patent/CN107786608A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708008A (en) * | 2012-04-12 | 2012-10-03 | 福建联迪商用设备有限公司 | Implementation method of linking download strategy |
CN103905491A (en) * | 2012-12-27 | 2014-07-02 | ***股份有限公司 | POS access system-based terminal remote download method and system thereof |
CN103916910A (en) * | 2013-01-04 | 2014-07-09 | 广达电脑股份有限公司 | Remote upgrading server and applicable load balancing method thereof |
US20140279116A1 (en) * | 2013-03-14 | 2014-09-18 | William P. Vasquez | Systems and methods for integrated, secure point-of-sale transactions |
CN105610939A (en) * | 2015-12-28 | 2016-05-25 | 北京致远协创软件有限公司 | Client and server file downloading control method, device and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109039929A (en) * | 2018-07-06 | 2018-12-18 | 华为技术有限公司 | Business scheduling method and device |
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 | |
CN104322011A (en) | Connectivity service orchestrator | |
JP2002324047A (en) | Method and system for automated session resources cleanup in distributed client/server environment | |
US20160262031A1 (en) | Method, Device and System for Maintaining Wireless Network | |
CN104052677B (en) | The soft load-balancing method and device of data mapping | |
CN108681481A (en) | The processing method and processing device of service request | |
CN111343275B (en) | Resource scheduling method and system | |
CN100518132C (en) | Distributing traffic information storage file system | |
CN109947081B (en) | Internet vehicle control method and device | |
CN112416542A (en) | Distributed task system, management method and device and computer equipment | |
CN104038358B (en) | A kind of content scheduling method and content scheduling device | |
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 | |
CN107786615A (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 | |
CN115334010B (en) | Query information processing method and device, storage medium and electronic device | |
CN106980545B (en) | Remote calling method and device | |
CN113645324A (en) | IP distribution method and system based on queue | |
CN109697126A (en) | A kind of data processing method and device for server | |
CN110636104A (en) | Resource request method, electronic device and storage medium | |
CN113852508B (en) | Communication method and device in equipment batch deployment scene | |
CN114290937B (en) | Electric automobile charging processing method and device and electronic equipment | |
CN113872871B (en) | Network acceleration method, system, device, storage medium and computer program product | |
CN114598706B (en) | Storage system elastic expansion method based on Serverless function |
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 |