QoS本体定义及满足用户描述偏好的QoS评价与匹配作者:杨惠荣,付鹏斌唐艳艳,马梦多摘要1.提出并建立了一个Web服务质量本体-QoSOnt_WS。2.定义了动态分层QoS模型及基于统计的QoS分层总体权值分配方案。3.并提出能满足用户不同QoS描述偏好的综合评价及匹配方法,并通过实验进行了验证。1.Web服务质量QoS图1Web服务质量需求栈RobustnessCapacityTrustScalabilityEconomicsStabilityQoSPropertyQoSMetricQoSRelationshipQoSTendencyQoSMandatoryQoSAggregatedQoSWeightQoSLevelQoSRoleQoSisDynamicQoSPriorityAvailabilityAccessibilityIntegrityPerformanceReliabilitySecurityInteroperabilityNetwork_relatedQoSStack2.QoSOnt_WS本体图3QoSOnt_WS本体模型QoSOnt_WS本体中间层QoSTendencyQoSRoleQoSLevelQoSAggregatedQoSWeightQoSMandatoryQoSTypeQoSStatusQoSRelationshipQoSPriorityQoSValueTypeQoSValuehasTendencyhasWeighthasRolehasAggregatedhasLevelhasMetrichasQoSParametershasMandatoryhasPriorityhasTypehasRelationshiphasStatusQoSValueUnitQoSMetricObjectPropertyDataPropertyQoSParameterhasMetricTypehasValuehasMetricUnitQoSNamehasQoSnameQoSProfileQoSTextDescriptionhasTextDes图4QoS参数(QoSParameter)主要属性QoSParameterStabilityMethodStabilityInterfaceStabilityEconomicCostCapacityIntegrityInteroperabilityRobustnessDataIntegrityReliabilityMTBFRecoverableFailoverDisasterConsistencyMessagingAvailabilityMTTRUpTimeLoadBalancingPerformanceResponseTimeThroughputLatencySecurityNon-RepudiationAuditabilityEncryptionAuthenticationMessageDataTransactionTimeAuthorizationConfidentialityTraceabilityScalabilityAccessibilityTrustNetwork_relatedReputationSatisfactionAccountabilityAccuracyExceptionHandling图5QoSOnt_WS中层本体核心QoS参数3动态分层QoS模型:DHQ_Model表1十种经典文献中QoS属性的曝光率统计文献性能价格可靠性可用性容量完整性安全性可访问性鲁棒性可伸缩性声誉精确性互操作性ISO8402[3]ITUE.800有有有有无无无无无无无无无Cardos[5]有有有无无无无无无无无无无DAML-QoS[13]有有有无无无无无无无无无无onQoS[11]有有有有有有有无有有无无无Zeng文献[6]有有无有无无无有无无有无无QoSOntologyLanguage[18]有有有有有有有有无有无有无WSMO-QoS[19]有有有有有有有有无有有有有文献[2]有无有有有有有有有有无有有蒋运承等[7]有有有无无无无无无无无无无WS-QoSOnto[10]有有有有有有有无有无无无有曝光率(%)1009010070505050404040202020对质量模型进行了层次划分,得DHQ_ModelPerformanceCostReliabilityCapacityIntegrityAccessibilityAvailabilitySecurityReputationScalabilityRobustnessAccuracyInteroperabilityLevel_1Level_2Level_3Level_4Satisfaction…...…...…...StabilityQoS图6DHQ_Model质量参考模型结构QoS参数的分级权值统计型分配PerformanceCostReliabilityCapacityIntegrityAccessibilityAvailabilitySecurityReputationScalabilityRobustnessAccuracyInteroperabilityLevel_1本层权值为0.5Level_2本层权值为0.3Satisfaction…...…...…...StabilityQoSWeightLevel_3本层权值为0.15Level_4本层权值为0.05QoSWeight={0.28,0.28,0.22,0.22}QoSWeight={0.25,0.25,0.17,0.17,0.16}QoSWeight={0.20,0.20,0.20,0.20,0.20}QoSWeight={0.28,0.25,0.28,0.19}图7QoSWeight的层级分配与每层QoS参数的对应5Web服务QoS总体描述模型QoS={Qi,Fi},i=1…m。...111121...221222..................12..................12QfffRnQfffRnQoSQfffRinRiiiQfffmnRmmm某一参数的QoS属性总体描述模型F:F={fj}=QValue,QValueType,QValueUnit,QLevel,QWeight,QRTendency,QPriority,QType,QStatus,QRole,QAggregated,QRelationship,QMandatory其中,j=1…n,每一项对应于QoSOnt_WS上层本体中的一个质量概念。例如:请求者R的质量描述为:QoSR=(Cost,30.0,float,”yuan”,1,0.27,...,required)表示Cost属性参数的值为30.0,数据类型为“float”单位是“元(yuan)”,所在的层为1,此参数占总体质量的权值为0.27,Cost参数是必选的。定义4通用Web服务QoS描述模型QoScom如下:QoScom={Performance,Cost,Reliability,Availiablity},F其中,集合F中的QLevel=1,QPriority=high,QMandatory=required,QWeight={0.27,0.27,0.27,0.19}。F中其他属性定义同上定义3。定义5DHQ_Model的描述模型QoSLevel如下:QoSLevel=QLevel_1,F1,W1∪QLevel_2,F2,W2∪QLevel_3,F3,W3∪QLevel_4,F4,W46满足用户QoS描述偏好综合评价匹配EconomicsThroughtoutReliabilityAvailabilityWA19.03000.70.7WA29.45000.850.85WR1CostResponseTimeReliabilityAvailability9.7(0.3)0.3(0.3)0.7(0.2)0.8(0.2)WR29.50.10.90.9WR3=0.85(总体质量)WR4良(总体质量)CostResponseTimeReliabilityAvailabilityWA39.60.30.70.8WA4100.050.950.95表2请求者WR1,WR2,WR3,WR3的QoS异构描述偏好表3发布者A1,A2的QoS描述表4发布者A3,A4的QoS描述6.1QoS参数的语义匹配WR1的QoS参数中,只有ResponseTime与发布者WA1,WA2的参数名称不同,需要进行语义匹配,因此使用本文定义QoSOnt_WS本体进行QoS参数的语义匹配。_QoSsemanticSPerformanceResponseTimeThroughputLatencyTransactionTime图8QoSOnt_WS本体部分概念(WR1,WA1)=(1+1+1+0.6)/4=0.9(WR1,WA1)=0.9(WR2,WA1)=0.9(WR1,WA2)=0.9(WR2,WA2)=0.9(WR1,WA3)=1(WR2,WA3)=1(WR1,WA4)=1(WR2,WA4)=1表5QoS参数的语义相似度6.2QoS参数的数值匹配发布者QoS参数评价矩阵为A:归一化==》请求者QoS参数评价矩阵R:==》9.73000.70.79.55000.850.859.60.30.70.8100.050.950.95A9.70.30.70.89.50.10.90.9R0.9030.60.70.70.90510.850.85'0.9040.970.70.80.9000.9950.950.95A'R0.9030.970.70.80.9050.990.90.9QoS参数数值综合评价及匹配:A’乘以每个参数的权重(0.28,0.25,0.28,0.19),见上节4,得到每个服务发布者的QoS数值综合评价矩阵(,,,)1234QQQQAAAA0.9030.60.70.70.280.90510.850.850.250.9040.970.70.80.280.9000.9950.950.950.190.731840.90290.843620.97385=求者WR1的QoS数值综合评价QR1为0.8619,计算时只需要将权重改为(0.3,0.3,0.2,0.2),相应的A’的要用给定的权值进行计算比较。(,,,)1234QQQQAAAA0.9030.60.70.70.30.90510.850.850.30.9040.970.70.80.20.9000.9950.950.950.20.73090.91150.86220.977=请求者WR1的QoS数值综合评价QR1=(0.903,0.97,0.7,0.8)*=0.8619。0.30.30.20.23.满足用户描述偏好的QoS总体匹配=0.8690(表示请求者WR1和发布者WA1质量的数值匹配度。)==0.5(0.9+0.8690)=0.8345因为请求者WR1和发布者WA1功能相同,可用此QoS匹配度代替服务匹配度。同理可得到,请求者WR1者和其他发布者的匹配度。其中,匹配度最高的为:=0.5(1+0.99973)=0.999865(,)11QoSSimWWRA1()__2SSQoSsemanticQoSnumerical(,)13QoSSimWWRA1,111_()1()RARAQoSnumericalWWQQS表6请求者R1,对给定权值的QoS总体匹配(0.3,0.3,0.2,0.2)发布者QoS数值综合评价请求