CN102739469B - Web service response time predicting method based on time sequence - Google Patents

Web service response time predicting method based on time sequence Download PDF

Info

Publication number
CN102739469B
CN102739469B CN201210168757.2A CN201210168757A CN102739469B CN 102739469 B CN102739469 B CN 102739469B CN 201210168757 A CN201210168757 A CN 201210168757A CN 102739469 B CN102739469 B CN 102739469B
Authority
CN
China
Prior art keywords
response time
average increment
increment
time average
class
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.)
Expired - Fee Related
Application number
CN201210168757.2A
Other languages
Chinese (zh)
Other versions
CN102739469A (en
Inventor
夏云霓
陈鹏
罗辛
吴磊
朱庆生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CHENGDU GKHB INFORMATION TECHNOLOGY Co Ltd
Original Assignee
CHENGDU GUOKE HAIBO COMPUTER SYSTEMS Co Ltd
Chongqing University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CHENGDU GUOKE HAIBO COMPUTER SYSTEMS Co Ltd, Chongqing University filed Critical CHENGDU GUOKE HAIBO COMPUTER SYSTEMS Co Ltd
Priority to CN201210168757.2A priority Critical patent/CN102739469B/en
Publication of CN102739469A publication Critical patent/CN102739469A/en
Application granted granted Critical
Publication of CN102739469B publication Critical patent/CN102739469B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a web service response time predicting method based on increment steady-state analysis, belonging to the field of software performance prediction. The method comprises the following steps: obtaining a sequence of a series of measurement values of network service response time according to a fixed unit time interval; subsequently defining and calculating observation window response time increment types; calculating a transition probability matrix among the types; then calculating a steady-state distribution probability of the response time increment based on the transition probability matrix; and finally adding a calculated increment expected value to a response time measurement value at the t moment so as to obtain the prediction value of the response time at the t+1 moment. With the adoption of the method, the defects that traditional Web prediction mold and method depend too much on SLA (Service-Level-Agreement) specifications and hypothesis parameters are constant and unchanged are avoided; and mold support and analysis means are provided for WEB service credibility research.

Description

A kind of based on seasonal effect in time series Web service response time Forecasting Methodology
Technical field
The invention belongs to the field of software performance prediction, especially relate to a kind of based on seasonal effect in time series Web service response time Forecasting Methodology.
Background technology
Web service plays more and more important role as a kind of novel distributed component object model in the field such as ecommerce, Enterprise information integration, it is considered to one of technology most crucial in service-oriented computing framework (SOA), by Web service combination technology, single Web service combination is got up to become complete application.But Web service operates in the network environment of dynamic change, its response time value is also in frequent variations, the network environment of this dynamic change will affect the run time behaviour of Web service, and then cause the change of whole Web service combination performance, therefore, carrying out to web services the key technology that performance prediction is the application system quality ensured based on service, is also Optimized Service combination important method.In Web service performance, most important two indices is response time and throughput, and the former system completes the time needed for Given task, and the latter represents that system completes the number of times of Given task within the unit interval.
Although academia and industrial quarters propose a series of model for analysis and prediction Web service performance and method, but most of method is mainly with based on SLA(Service-level-agreement, service-level agreement) static analysis be Main Means, service-level agreement is about a contract between Internet service provider and client, there is defined COS, the term such as service quality and customer payment, the Smallest connection bandwidth of the serviced component that it constrains service provider to provide in quantity, maximum packet loss, linkage fault rate equals performance-relevant parameter, based on the Static Performance Analysis of SLA, the limit value of the direct exactly above-mentioned parameter retrained with service-level agreement is for mode input, and suppose that performance parameter constant is constant, the actual performance of analysis and prediction Web service assembly, there is very large defect in the method for this static analysis: due to the network that relies on when Web service runs and system environments fast changing, the various parameter amount affecting performance is as bandwidth, packet loss, linkage fault rate, message field length etc., can not maintain invariable, there is great deviation in the invariable hypothesis of this and performance parameter, because the parameter provided in service-level agreement is upper and lower bound value, value corresponding when Web service runs higher or lower than limit value, thus may cause the performance prediction method based on service-level agreement to be over-evaluated or underestimates actual performance.
In order to make up the deficiency of said method, take into full account the dynamic of Web service performance under true environment, the present invention, in further investigation performance test value time series data, analyzes on the basis of its Long-term change trend, proposes a kind of based on seasonal effect in time series Web service response time Forecasting Methodology.
Summary of the invention
Because the above-mentioned defect of prior art, technical problem to be solved by this invention is to provide one Web service more accurately response time Forecasting Methodology.
For achieving the above object, the invention provides a kind of based on seasonal effect in time series Web service response time Forecasting Methodology, perform according to the following steps:
Step one: the response time data sequence obtaining web services according to fixing unit interval;
Setting response time data sequence has the surveying record of t response time, and described response time data sequence is r t(i), { r t(i) | 1≤i≤t, 1≤t < ∞ }; The response time data sequence of described acquisition web services is obtained by the url address test of SOAP UI test platform to web services;
Step 2: the average increment calculating the continuous response time;
Being compiled k continuous print response time is one group, and k is positive integer, and whole response time sequence is divided into individual group, every group is considered as one and investigates window; An xth y response time investigated in window is r t((x-1) × k+y); A setting xth response time average increment investigated in window is AINC(x);
AINC ( x ) = &Sigma; s = 1 k - 1 r t ( ( x - 1 ) &times; k + s + 1 ) - r t ( ( x - 1 ) &times; k + s ) k ,
Step 3: definition response time average increment class transition probability between calculated response time average increment class;
the value of response time average increment minimum in individual response time average increment is MIN,
the value of response time average increment maximum in individual response time average increment is MAX,
The interval of MIN to MX is divided into p class, p is positive integer; The response time average increment that setting xth is investigated in window is map (x) to the mapping function that l is classified, 1≤l≤p; And if only if MIN + MAX - MIN p &times; ( l - 1 ) &le; AINC ( i ) < MIN + MAX - MIN p &times; l Time, map (x)=l;
The matrix of transition probabilities in the interval of setting MIN to MAX between m class and the n-th class is TRAN(m, n), m, n are positive integer;
ICOUNT ( m , l ) = 1 ifmap ( l ) = m 0 else ;
IJCOUNT ( m , n , l ) = 1 ifmap ( l + 1 ) = nandmap ( l ) = m 0 else ;
Step 4: under computing system balance, response time average increment is in the probability of each response time average increment class;
π is under system balancing, and response time average increment is in the probability vector of h response time average increment class; H the component of π is π (h), 1≤h≤p; π (h)=π (h) × TRAN(m, n);
Step 5: the response time in prediction t+1 moment;
The desired value of the response time average increment in setting poised state situation is EAINC;
EAINC = &Sigma; h = 1 p &pi; ( h ) &times; ( MIN + ( MAX - MIN ) &times; ( h - 1 ) p + MAX - MIN 2 p ) ; The response time predicted value in setting t+1 moment is PRT; Calculate EAINC = &Sigma; w = 1 k - 2 r t ( t + 1 - w ) - r t ( t - w ) + ( PRT - r t ( t ) ) k , Obtain the response time value that PRT just can obtain needing prediction accurately.
The invention has the beneficial effects as follows: the present invention is in further investigation performance test value time series data, the basis analyzing its Long-term change trend realizes, avoid in traditional web performance prediction model and method and too rely on SLA specification and suppose the deficiency that performance parameter constant is constant, can support and analysis means for the research of web services credibility supplies a model, predictablity rate and precision can greatly be improved.
Accompanying drawing explanation
Fig. 1 is schematic flow sheet of the present invention.
Fig. 2 is response time measured data schematic diagram.
Fig. 3 be response time predicted value with actual value compare schematic diagram.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described:
As shown in Figure 1, a kind of based on seasonal effect in time series Web service response time Forecasting Methodology, perform according to the following steps:
Step one: the response time data sequence obtaining web services according to fixing unit interval;
Setting response time data sequence has the surveying record of t response time, and described response time data sequence is r t(i), { r t(i) | 1≤i≤t, 1≤t < ∞ }, the response time data sequence of described acquisition web services is obtained by the url address test of SOAP UI test platform to web services.
Step 2: the average increment calculating the continuous response time;
Being compiled k continuous print response time is one group, and k is positive integer, and whole response time sequence is divided into individual group, every group is considered as one and investigates window; An xth y response time investigated in window is r t((x-1) × k+y); A setting xth response time average increment investigated in window is AINC(x); AINC ( x ) = &Sigma; s = 1 k - 1 r t ( ( x - 1 ) &times; k + s + 1 ) - r t ( ( x - 1 ) &times; k + s ) k ,
Step 3: definition response time average increment class transition probability between calculated response time average increment class;
the value of response time average increment minimum in individual response time average increment is MIN,
the value of response time average increment maximum in individual response time average increment is MAX,
The interval of MIN to MAX is divided into p class, p is positive integer; The response time average increment that setting xth is investigated in window is map (x) to the mapping function that l is classified, 1≤l≤p; And if only if MIN + MAX - MIN p &times; ( l - 1 ) &le; AINC ( i ) < MIN + MAX - MIN p &times; l Time, map (x)=l;
The matrix of transition probabilities in the interval of setting MIN to MAX between m class and the n-th class is TRAN(m, n), m, n are positive integer;
ICOUNT ( m , l ) = 1 ifmap ( l ) = m 0 else ;
IJCOUNT ( m , n , l ) = 1 ifmap ( l + 1 ) = nandmap ( l ) = m 0 else .
Step 4: under computing system balance, response time average increment is in the probability of each response time average increment class;
π is under system balancing, and response time average increment is in the probability vector of h response time average increment class; H the component of π is π (h), 1≤h≤p; π (h)=π (h) × TRAN(m, n), concrete
&pi; ( 1 ) = &pi; ( 1 ) &times; TRAN ( 1,1 ) TRAN ( 1,2 ) . . . . TRAN ( p , 1 ) TRAN ( 2 , 1 ) TRAN ( 2,2 ) . . . . TRAN ( p , 2 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; TRAN ( p - 1 , p - 1 ) &CenterDot; TRAN ( p , 1 ) TRAN ( p , 2 ) . . . . TRAN ( p , p ) ,
&pi; ( 2 ) = &pi; ( 2 ) &times; TRAN ( 1,1 ) TRAN ( 1,2 ) . . . . TRAN ( p , 1 ) TRAN ( 2 , 1 ) TRAN ( 2,2 ) . . . . TRAN ( p , 2 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; TRAN ( p - 1 , p - 1 ) &CenterDot; TRAN ( p , 1 ) TRAN ( p , 2 ) . . . . TRAN ( p , p ) , . . . . . . ,
&pi; ( p ) = &pi; ( p ) &times; TRAN ( 1,1 ) TRAN ( 1,2 ) . . . . TRAN ( p , 1 ) TRAN ( 2 , 1 ) TRAN ( 2,2 ) . . . . TRAN ( p , 2 ) &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; &CenterDot; TRAN ( p - 1 , p - 1 ) &CenterDot; TRAN ( p , 1 ) TRAN ( p , 2 ) . . . . TRAN ( p , p ) .
Step 5: the response time in prediction t+1 moment;
The desired value of the response time average increment in setting poised state situation is EAINC;
EAINC = &Sigma; h = 1 p &pi; ( h ) &times; ( MIN + ( MAX - MIN ) &times; ( h - 1 ) p + MAX - MIN 2 p ) ; The response time predicted value in setting t+1 moment is PRT; EAINC = &Sigma; w = 1 k - 2 r t ( t + 1 - w ) - r t ( t - w ) + ( PRT - r t ( t ) ) k , Can by calculating
&Sigma; i = 1 p &pi; ( i ) &times; ( MIN + ( MAX - MIN ) &times; ( i - 1 ) p + MAX - MIN 2 p ) = &Sigma; w = 1 k - 2 r t ( t + 1 - w ) - r t ( t - w ) + ( PRT - r t ( t ) ) k
Draw and obtain PRT, extrapolate the response time predicted value in t+1 moment thus.
As Fig. 1, shown in Fig. 2, in order to verify the correctness of method and accuracy, be configured to the INTEL i5-760 processor of 2.8G, the PC inside saving as 4G runs and adopts SOAPUI test platform to provide the example of the Web service of Weather information to test to one, the URL address of described web services example is http://www.webservicex.net/globalweather.asmx WSDL, the time started of test is 10: 30: 0 morning of on October 17th, 2011, test interval is 250 milliseconds, continuous acquisition 128 response time test values, wherein front 100 data are used for model foundation, remaining 28 response time test values recorded from 10: 30: 25 morning of on October 17th, 2011 are for modelling verification.
Optimum configurations in model is: k=5, classification quantity p=8, according to the method that the present invention provides, 10: 30: 25 morning of on October 17th, 2011, later response time predicted value was shown in figure 3 with the result of other three model predication values, in Fig. 3, lines 1 are the time series forecasting value adopting method of the present invention to obtain, lines 2 are the time series forecasting value adopting ARMA time series models to obtain, lines 3 are the time series forecasting value adopting the ARMA-O model eliminating outlier to obtain, lines 4 are the time series forecasting value adopting two quantitative prediction model DQ to obtain, lines 5 are actual value, the time series forecasting value that the inventive method obtains and actual value average error rate are 24.4%, the time series forecasting value adopting ARMA time series models to obtain and actual value average error rate are 30.1%, the time series forecasting value adopting the ARMA-O model eliminating outlier to obtain and actual value mean error are 33.6%, the time series forecasting value adopting two quantitative prediction model DQ to obtain and the error of actual value are 42.8%, visible, adopt the method that the present invention proposes, Web service performance prediction achieves better precision.
More than describe preferred embodiment of the present invention in detail.Should be appreciated that those of ordinary skill in the art just design according to the present invention can make many modifications and variations without the need to creative work.Therefore, all technical staff in the art, all should by the determined protection range of claims under this invention's idea on the basis of existing technology by the available technical scheme of logical analysis, reasoning, or a limited experiment.

Claims (2)

1., based on a seasonal effect in time series Web service response time Forecasting Methodology, it is characterized in that performing according to the following steps:
Step one: the response time data sequence obtaining web services according to fixing unit interval;
Setting response time data sequence has the surveying record of t response time, and described response time data sequence is r t(i); { r t(i) | 1≤i≤t, 1≤t < ∞ };
Step 2: the average increment calculating the continuous response time;
Being compiled k continuous print response time is one group, and k is positive integer, and whole response time sequence is divided into individual group, every group is considered as one and investigates window; An xth y response time investigated in window is r t((x-1) × k+y); A setting xth response time average increment investigated in window is AINC (x);
Step 3: definition response time average increment class transition probability between calculated response time average increment class;
the value of response time average increment minimum in individual response time average increment is MIN,
the value of response time average increment maximum in individual response time average increment is MAX,
The interval of MIN to MAX is divided into p class, p is positive integer; Response time average increment in setting xth investigation window is to the lthe mapping function of individual classification is map (x), 1≤ l≤ p; And if only if time, map (x)= l;
The matrix of transition probabilities in the interval of setting MIN to MAX between m class and the n-th class is TRAN (m, n), m, n is positive integer;
Step 4: under computing system balance, response time average increment is in the probability of each response time average increment class;
π is under system balancing, and response time average increment is in the probability vector of h response time average increment class; H the component of π is π (h), 1≤h≤p; π (h)=π (h) × TRAN (m, n);
Step 5: the response time in prediction t+1 moment;
The desired value of the response time average increment in setting poised state situation is EAINC;
the response time predicted value in setting t+1 moment is PRT; calculate obtain PRT.
2. as claimed in claim 1 a kind of based on seasonal effect in time series Web service response time Forecasting Methodology, it is characterized in that: the response time data sequence of described acquisition web services is obtained by the url address test of SOAP UI test platform to web services.
CN201210168757.2A 2012-05-28 2012-05-28 Web service response time predicting method based on time sequence Expired - Fee Related CN102739469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210168757.2A CN102739469B (en) 2012-05-28 2012-05-28 Web service response time predicting method based on time sequence

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210168757.2A CN102739469B (en) 2012-05-28 2012-05-28 Web service response time predicting method based on time sequence

Publications (2)

Publication Number Publication Date
CN102739469A CN102739469A (en) 2012-10-17
CN102739469B true CN102739469B (en) 2015-01-07

Family

ID=46994298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210168757.2A Expired - Fee Related CN102739469B (en) 2012-05-28 2012-05-28 Web service response time predicting method based on time sequence

Country Status (1)

Country Link
CN (1) CN102739469B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888300B (en) * 2014-04-09 2017-02-15 中国人民解放军63818部队 Network failure analysis system and method in Web service system
CN105991719B (en) * 2015-02-13 2020-01-24 中国移动通信集团重庆有限公司 Method and device for predicting successful execution rate of internet service
CN108319501B (en) * 2017-12-26 2022-01-14 中山大学 Elastic resource supply method and system based on micro-service gateway
CN108536604B (en) * 2018-04-19 2021-05-25 北京奇安信科技有限公司 Method and terminal for testing response time of WEB page
CN110113180B (en) * 2019-03-11 2021-11-26 中国科学院重庆绿色智能技术研究院 Cloud service response time prediction method and device based on bias tensor decomposition

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800755A (en) * 2010-03-30 2010-08-11 东南大学 Method for realizing credible and controllable network protocol
CN102231869A (en) * 2011-06-27 2011-11-02 北京邮电大学 Realization method for refinement operation system architecture of valued-added service

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800755A (en) * 2010-03-30 2010-08-11 东南大学 Method for realizing credible and controllable network protocol
CN102231869A (en) * 2011-06-27 2011-11-02 北京邮电大学 Realization method for refinement operation system architecture of valued-added service

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种模拟驱动的WS-CDL服务组合可靠性预测方法;刘毅等;《计算机工程与应用》;20110430(第11期);全文 *

Also Published As

Publication number Publication date
CN102739469A (en) 2012-10-17

Similar Documents

Publication Publication Date Title
Yazdanie et al. Advancing urban energy system planning and modeling approaches: Gaps and solutions in perspective
Perla et al. Equilibrium imitation and growth
Lindman et al. Wind power learning rates: A conceptual review and meta-analysis
CN102739469B (en) Web service response time predicting method based on time sequence
Gaudard et al. Climate change impacts on hydropower management
Flötteröd et al. Behavioral calibration and analysis of a large-scale travel microsimulation
Chaudhury A review of the key issues in operational risk capital modeling
CA2766650C (en) Demand side portfolio manager system for recommending and processing energy rebates
Finner et al. Program for catenary–pantograph analysis, PrOSA statement of methods and validation according EN 50318
Bruno et al. A microforecasting module for energy management in residential and tertiary buildings
CA3017229A1 (en) Power consumption analyzing server and power consumption analyzing method thereof
US20130297242A1 (en) Methods and systems for measurement and verification weighting with temperature distribution
US20180248370A1 (en) Methods and systems for energy use normalization and forecasting
JP2014220971A (en) Power demand prediction device, power demand prediction method, and power demand prediction program
Valentini et al. Demand response impact evaluation: A review of methods for estimating the customer baseline load
Contreras et al. Advances in the definition of needs and specifications for a climate service tool aimed at small hydropower plants’ operation and management
Jacqué et al. The influence of frequency containment reserve on the operational data and the state of health of the hybrid stationary large-scale storage system
Kato et al. A study on benefit estimation that considers the values of travel time and travel time reliability in road networks
KR101860457B1 (en) Method for analyzing weather affect and apparatus for executing the method
Amado et al. Capacity value from wind and solar sources in systems with variable dispatchable capacity—An application in the Brazilian hydrothermal system
Fonteijn et al. Baselining flexibility from pv on the dso-aggregator interface
CN102801581B (en) Method for predicting WEB service connection success rate
Bielefeld Online performance anomaly detection for large-scale software systems
Constantinescu et al. Unit commitment with wind power generation: integrating wind forecast uncertainty and stochastic programming.
CN102930346B (en) A kind of SOA service MTBF Forecasting Methodology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Chen Peng

Inventor after: Wu Lei

Inventor after: Liu Jie

Inventor before: Xia Yunni

Inventor before: Chen Peng

Inventor before: Luo Xin

Inventor before: Wu Lei

Inventor before: Zhu Qingsheng

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170206

Address after: 610041 Sichuan city of Chengdu province high tech Zone Kyrgyzstan Road No. 666, building 1 years Fu Fantasia 1 unit 28 floor of No. 2801

Patentee after: CHENGDU GKHB INFORMATION TECHNOLOGY CO., LTD.

Address before: 400045 Shapingba District, Sha Sha Street, No. 174, Chongqing

Patentee before: Chongqing University

Patentee before: Chengdu Guoke Haibo Computer Systems Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150107

Termination date: 20190528