CN103354506B - A kind of internet of things service framework and combinations of services method - Google Patents

A kind of internet of things service framework and combinations of services method Download PDF

Info

Publication number
CN103354506B
CN103354506B CN201310278572.1A CN201310278572A CN103354506B CN 103354506 B CN103354506 B CN 103354506B CN 201310278572 A CN201310278572 A CN 201310278572A CN 103354506 B CN103354506 B CN 103354506B
Authority
CN
China
Prior art keywords
business
service
value
path
qos
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
CN201310278572.1A
Other languages
Chinese (zh)
Other versions
CN103354506A (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.)
Southeast University
Nanjing Post and Telecommunication University
Original Assignee
Southeast University
Nanjing Post and Telecommunication 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 Southeast University, Nanjing Post and Telecommunication University filed Critical Southeast University
Priority to CN201310278572.1A priority Critical patent/CN103354506B/en
Publication of CN103354506A publication Critical patent/CN103354506A/en
Application granted granted Critical
Publication of CN103354506B publication Critical patent/CN103354506B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of internet of things service framework and combinations of services method, Internet of Things is divided into five layers based on business by the method, is equipment Access Layer respectively, data communication layer, equipment control layer, SML, service application layer.Under this framework, dynamic service combined method based on ant group algorithm is given on the basis of Qos, the Qos attribute of business and the parameter in ant group algorithm will make rationally mapping under this framework, involved service is selected for the purpose of meeting user's request and the highest Qos attribute, this combined method can meet user's request well and ensure the service quality of composite services, taking full advantage of the equipment in network and existing atom business, therefore the present invention has certain actually used value and economic worth.

Description

A kind of internet of things service framework and combinations of services method
Technical field
The present invention relates to applied software development and integrated technology field, particularly relate to internet of things service framework method and industry Business combined method.
Background technology
In recent years, people put into increasing for the research of Internet of Things, it is desirable to obtain important breakthrough at this Disciplinary Frontiers.Thing Networking technology is that the Ashton professor at Massachusetts Institute of Technology Auto-ID center in 1999 is proposed when studying RFID technique, He imagines based on the Internet, in conjunction with REID, wireless data communication technology etc., constructs one and realizes whole world article The imagination of the Internet in kind of information Real-Time Sharing, the concept of Internet of Things is the most formally born.In Internet of Things, article will become Autonomous participant in society, information, business activity.They can each other independent communication with link up since technology of Internet of things Since proposition, this is placed high hopes by people always, generally believes that this is the another technological revolution of areas of information technology, is up till now Only it has been directed to society's every field, including science and techniques of defence, intelligent transportation, logistics management, Smart Home, security monitoring, environment Protection, global location, resource management etc., therefore Internet of Things has wide research and application prospect.
Along with Internet of Things scope constantly develops expansion, the equipment in network has been based on the business that these equipment are developed Quantity is also constantly increasing, but Internet of Things does not also have a kind of unified architecture standard at present, and this makes setting in Internet of Things Standby and operational control brings certain difficulty, and how the equipment in Internet of Things accesses, and how to allow whole network know after access The new equipment accessed and function, how new business is issued out for user after occurring, how combining atom business (should The atom business at place refers to can not be split the business only with simple function) with avoid the waste of resource and each atom business it Between combination and these problems of correctness and reliability of guaranteeing composite service etc. be never well solved, because of This business device management framework being necessary to provide an applicable environment of internet of things, and suitably can ensure that combination between business Correctness and the method for reliability.And the present invention can solve problem above well.
Summary of the invention
Present invention aim at providing calculating based on ant colony under the business structure under a kind of environment of internet of things, and this framework The combinations of services method of method, makes mapping by the Qos property value of business with each parameter in ant group algorithm under this framework so that group The business closed out can be met customer need to greatest extent and have higher service quality.
The technical solution adopted for the present invention to solve the technical problems is: first whole Internet of Things be divide into five by the present invention Layer, is equipment Access Layer, data communication layer, equipment control layer, SML and service application layer respectively.
Equipment Access Layer: equipment Access Layer is the bottom in whole Internet of Things framework, mainly towards various Equipment.
Data communication layer: whole data communication layer includes the communication network with the Internet as representative, and physics is set Standby can be with the middleware of these transmitted data on network or gateway.
Equipment control layer: the major function of this layer is to manage, by data communication layer, the equipment accessed in Internet of Things, its Include facility registration module, device management module and monitoring of tools module.
SML: the major function of this layer is to manage based on accessing the business that in Internet of Things, equipment is developed, including Service log-on module, operational control module, combinations of services module, business monitoring module.
Service application layer: this layer main, and this layer can be the processing platform of certain enterprise in the face of all types of users, or Use the individual pc of Internet of Things, miscellaneous service or combination present in Internet of Things can be used to make by various platforms By each atom business.
Comprehensive above five layers division, when having equipment or business is added in Internet of Things, first, equipment is connected into Internet of Things Equipment Access Layer in net, now carries out information registering in equipment control layer to the equipment being newly added, and monitoring of tools module is led to Cross data communication layer and send detection information to this equipment, in device management module, generate this equipment according to the information that equipment returns State and confirm registration effectively.Now can carry out according to the facility information provided in equipment control layer at SML Business development, after business development completes, can register business newly developed at SML, business monitoring mould simultaneously Block can detect whether this business can be used, if detecting successfully, then confirms that service log-on is effective, and this business will provide for making to user With.When business during user uses Internet of Things, monitoring of tools module and business monitoring module can detect required for user successively The business called, if detecting unsuccessfully, then recommends other alternative business of user, with this guarantee use business can By property and success rate.
Along with the continuous growth of internet of things service, in order to avoid the overlapping development of business causes the waste to resource, business Combination is increasingly becoming research emphasis.
According to framework mentioned above, when user is when carrying out combinations of services, the most according to demand combination is divided into fixing Step, the corresponding set of service of each step, user selects optimal clothes from this set when each step selects Business participates in combination, utilizes dynamic composition method based on ant group algorithm to select the tool in each set of service in the present invention Body services, and the most dynamically refers to that the combination of each step is all the Qos information obtaining in real time and participating in composite service, and according to Parameter in ant group algorithm is made mapping by Qos information, and due to the change of network environment, Qos property value is also dynamically to vary , so the combination selection made according to ant group algorithm is also as environmental change and varies, so well adapt to Business uses the change of environment, in addition to considering Qos, also contemplates user's expectation in the algorithm, and user is before composite services The expected value of an attribute each to composite services Qos can be given, in the present invention, utilize actual property value and the expectation of Qos The difference of property value, as the important parameter in ant group algorithm, so can be expected with the user that meets of amplitude peak, and.
Beneficial effect:
The invention provides a kind of internet of things service framework and service dynamic combined method based on ant group algorithm, first by User to determining combination step according to demand, the corresponding collection of services of each combination step, the business in these collection of services Corresponding Qos information can be obtained in the business structure proposed.When dynamic combined, by the phase of the Qos attribute of business Pass information and each parameter in ant group algorithm make rationally mapping.The composite service generated by the method can be good at meeting User's request so that composite service has higher service quality and higher reliability, therefore, has certain use value And economic worth.
Accompanying drawing explanation
Fig. 1 is the hierarchical chart of the present invention.
Fig. 2 is service selection block diagram based on ant group algorithm.
Fig. 3 is that combinations of services selects schematic diagram.
Detailed description of the invention
Below in conjunction with Figure of description, the invention is described in further detail.
The present invention proposes a kind of internet of things service framework and combinations of services method, first by internet of things service architecture environment It is divided into five layers, is respectively as follows: equipment Access Layer, data communication layer, equipment control layer, SML, service application layer.
Equipment Access Layer: first step is exactly that oneself is deployed in the Access Layer of Internet of Things, in order to make oneself permissible By the perception of whole internet of things institute, it is responsible for higher by data communication layer after the Access Layer of equipment access Internet of Things;
Data communication layer: owing to major part physical equipment does not possess directly and the condition of internet communication, they are obtained Data often just can be transferred to network by certain conversion, in data communication layer, therefore also include responsible data turn The gateway changed and middleware, the main task of this layer is to connect physical equipment and the Internet;
Equipment control layer: the major function of this layer is to manage, by data communication layer, the equipment accessed in Internet of Things, its Include facility registration module, device management module and monitoring of tools module, record in equipment control layer and have already accessed to The information of each equipment in Internet of Things, including the positional information (location) of equipment, equipment obtains the time delay of data (time_delay) access times (count) equipment dependability (reliability), when combinations of services, these log-on messages Being the reference value of Qos value, additionally equipment control layer also has the control function to Internet of things access equipment, when certain service needed The when of calling certain equipment, equipment control layer can first check for whether this equipment is in networking state, and whether functions of the equipments Normally, equipment state is thus generated: the invoked procedure of normal (yes) abnormal (no) unknown (unknown) business only can use It is in the equipment of normal condition.After whole invoked procedure completes, equipment control layer can update and call flow relevant parameter, Such as equipment access times, success call number etc., this layer provides the Qos property value of individual equipment to SML.
SML: the major function of this layer is to manage based on accessing the business that in Internet of Things, equipment is developed.Including Service log-on module, operational control module, combinations of services module, business monitoring module.Wherein service log-on module major function It is that the business joining Internet of Things is registered, to facilitate user to the lookup of existing business and combination;Operational control module The information of essential record business.In the environment of Internet of Things, complete same specific function, have different business for user Selecting, use different business to complete same function and necessarily have different effects, operational control module can record each industry After business flow performing is complete, overall delay (time_delay), business that cost (price) business that business performs performs perform institute The information such as the bandwidth (Bandwidth) taken are in case performing next time referenced.Combinations of services module is the important of SML Module, this module is mainly responsible for the combination between atom business, and first this module obtains from business Registering modules according to user's request Take each atom business being possibly used for combination, then obtain optimal combinations of services according to the business information in operational control module For user.Business monitoring module, mainly checks this atom business, this inspection before using each atom business The related news such as including the facility information obtained in equipment control layer and determine whether this business is in upstate, this layer is in industry The Qos property value providing business when dynamically selecting to service application layer of business, upon execution, SML is according to business for business The parameter that every time performs of implementation status record traffic, including business Executing Cost, business performs time delay, and business is required when performing The bandwidth wanted and the reliability evaluation for this business, record nearest n time of this business in SML performs knot Really, when user performs for (n+1)th time, its Qos property value is just performed result by first n time and draws.
Service application layer: this layer main, and this layer can be the processing platform of certain enterprise in the face of all types of users, or Use the PC of Internet of Things, miscellaneous service or combination present in Internet of Things can be used by various platforms Use each atom business.
According to the feature of this framework, recording equipment and the Qos of business in equipment control layer and SML respectively, its Mainly for the Qos of individual equipment in middle equipment control layer, mainly for single business and composite service in SML Qos。
The combined method utilizing ant group algorithm to give a kind of Qos based on business under framework suggested above refers to Lead the combination of business.Can obtain the relevant Qos information of business in above-mentioned framework, the particularity according to environment of internet of things will clothes The attribute setup of business quality is the cost that Q (q1, q2, q3, q4) q1 is paid by use business, and q2 is the response delay of business (ms), q3 is the bandwidth (Hz) shared by service execution, and q4 is the reliability of business.
Can directly obtain for response delay involved in business and occupied bandwidth, be paid performing this service Cost, such as cost of use, consume bandwidth etc., under this framework, this function is defined by service developer.
Therefore, in the property value of service quality, the reliability of business needs to be calculated by certain, is given below The computational methods of reliability, the reliability of business is an important attribute, in the architecture for the calculating of reliability Be based primarily upon 2: 1. users evaluate 2. with the evaluation to this business of other business of this service interaction.If reliability function is f (a, s), wherein a be user's evaluating (assessment_personal), s be other evaluatings to this service of service (assessment_service);Due to service often perform a service business Qos attribute will change, and user evaluate and Other service evaluations belong to objective evaluation, front and back between evaluation should have concordance, so (n+1)th time performs this business Time reliability by front n time perform time result draw.If the reliability that first n time performs is respectively as follows:
(f1(a,s),f2(a,s),f3(a,s).............fn(a,s)) (1)
So reliability attributes referenced when final n-th is performed:
q 4 = Σ i = 1 n φ i f i ( a , s ) - - - ( 2 )
In order to the concordance of retention value has:
Σ i φ i = 1 ; - - - ( 3 )
Consider that the weight that in practical situation, the value of execution time reliability the most rearward is obtained should be the biggest so having:
φi< φi+1; (4)
The weighting function meeting conditions above is given, when performing have when total degree n is even number at this:
φ i = 1 n - 1 ( i + 1 ) n i ≤ n 2 1 n + 1 ( n + 2 - i ) n i > n 2 - - - ( 5 )
When performing have when total degree n is odd number:
&phi; i = 1 n - 1 ( i + 1 ) n i < n + 1 2 1 n i = n + 1 2 1 n + 1 ( n + 2 - i ) n i > n + 1 2 - - - ( 6 )
When drawing the computational methods of reliability, the q4 reliability value of Qos attribute can be tried to achieve, therefore, and now can be Jth time call this business time, the service quality of this business obtained
Q j = &Sigma; i = 0 4 &alpha; ( i ) q i - - - ( 7 )
Wherein qiCorresponding tetra-different property values of Qos, α (i) is the weight of each attribute in Qos, and has for α (i):After having performed a business, the property value of business is updated according to Self-variation, due to business every time Perform under certain environment, there is a range of randomness, in order to ensure the reliability of the service quality of the business drawn, When calculating Qos, Qos when once performing before this business is also accounted for scope:
If Qos property value when this time performs is QjQos when performing this business last time is Qj-1, then this performs identification This business Qos is:
λQj+(1-λ)Qj-1; (8)
In Services Composition, final purpose is to make the service quality of the satisfaction of user and composite services the highest, i.e. crowd Many services are focused to find out meeting user's request and best suit one group that Qos requires and combined user operation.At this Framework uses Qos optimal combination method based on ant group algorithm.Its basic thought is: first according to the demand of user, by Whole combination is divided into n to walk by user oneself, has set of service S the most corresponding in each step, selects one from set S Service s ∈ S completes user operation, therefore from set SmTo set SnJust there is mulitpath, then just can be based on ant group algorithm Select best of breed.
In the present invention, user act as the role of Formica fusca, when the starting stage in combinations of services, selects in each set It is random for selecting and participating in the business combined, and after a combinations of services performs, user can be from layer architecture mentioned above Dynamically obtain the Qos information of this combination, and leave certain information according to the Qos of selected business on this combinatorial path Element, user afterwards can be according to the probability that pheromone is determined to select combinatorial path, after composite service runs, selected by user Select combination will trend towards optimum combination, thus reach the result wanted, dynamically select machine according to ant colony algorithm for optimization design System can also adapt to real-time environmental change, uses environment to change so that Qos changes, and the combinatorial path of selection is also Can change according to these information.
When starting to select service so that the pheromone (τ on all service pathsijRepresent the information from i to j path Element) it is all fixed value τ mutually0, it is equal that incipient stage of i.e. combining assumes that each participates in the Qos property value of composite service, this Time select one participate in composite service probability be random.
After performing a number of composite services many users, every pheromone selected on path will depend on Change according to Qos property value, now in services set SnAnd SmIn by service si∈SnTo sj∈SmComplete to walk n-th from m The combination of step, selects from s according to ant group algorithmiTo sjTransition probability be:
Wherein S represents the set of all services that can select in this step combines, and α is that information heuristic greedy method represents long-pending Tired pheromone selects the importance in path for Formica fusca, and i.e. the biggest as α, then the pheromone that path is left over selects path to Formica fusca Impact the biggest, its value generally takes 1 or 2, β for expectation heuristic factor, represent visibility importance, reacted Formica fusca The heuristic information influence degree to selecting when selecting path, its value is the biggest, then be closer to greed rule, its value ordinary circumstance Under also take 1 or 2, τijT () represents the pheromone in t, path i to j.Heuristic information represents when Formica fusca is selecting path Time select oneself path according to heuristic information, in the Path selection of the present invention, during in order to make selection path, select Qos Being worth the highest combination, heuristic information is by heuristic function ηijT () represents, make heuristic function identical i.e. with the Qos value of business at this:
ηij(t)=λ Qj+(1-λ)Qj-1 (10)
Knowable to above formula, heuristic function is defined as the Qos value of next service, it is clear that the value of Qos is the highest, then inspire letter Number is the biggest, the biggest then p of value of heuristic functionijT () is the biggest, i.e. can select, with greater probability, the service that Qos value is higher, dynamically During selection, the Qos property value performing business each time is likely to difference, record in the SML of framework mentioned above The result that before Qos value, n time performs is the property value of (q1, q2, q3, q4), when when performing this business (n+1)th time, business Four property values are performed result by first n time and obtain, and the Qos property value q1 that i.e. (n+1)th time performs then this business, q2, q3 are i.e. N-th performed after the result that obtained, q4 be then according to above reliability formula comprehensively before the result of n time get, thus obtain Obtain Qos value when this time performs, after (n+1)th time has performed, this time is performed (q1, q2, q3, q4) record during business To SML, calculate Qos property value when calling this business during for the n-th+2 times, delete a record the earliest simultaneously, keep The quantity of record is constant.
For the more new regulation that the pheromone employing on every paths is following:
τij(t+n)=(1-γ). τij(t)+Δτij(t) (11)
&Delta;&tau; i j ( t ) = &Sigma; k = 1 m &Delta;&tau; i j k ( t ) - - - ( 12 )
Wherein γ ∈ (0,1) represents pheromone volatility coefficient.The reason adding this volatility coefficient is intended to meet whole environment Dynamic change, the pheromone before carried under environment can the most remaining (1-γ) times, and add volatility coefficient can in case The only unlimited accumulation of pheromone.Represent that kth Formica fusca stays the pheromone increment on path in this circulates.For letter Breath element increment uses Ant-Cycle model i.e.:
Wherein Q is pheromone intensity, LkThe path walked in this circulates for kth Formica fusca.In the present invention will The path that Formica fusca is walked from i to j connects with the Qos property value when i services selection j services, makes Q=1 at this, according to it The Qos attribute of front definition, by LkIt is defined as:
L k = &Sigma; i = 1 4 | f i - p i | - - - ( 14 )
Then:
Wherein fiFor the function of the ith attribute value in the Qos attribute of selected next business j, pass through fiCan draw The ith attribute value of the Qos of current business j selected, piFor user for the expected value of this business ith attribute value, user The expected value of part or all of attribute can be given, when user does not provides desired property value, piIt is then under above framework Acquiescence expected value to each attribute setup one.From the definition of information above element increment function, when actual value and expectation The absolute value of the difference of value is the least, and the quantity of information stayed is the biggest, then the probability selecting the service that difference is little is the biggest.
So far, primary function and the parameter of ant group algorithm have given, and select according to ant group algorithm user in sum Best service combined method is divided into following steps:
Step 1: parameter initialization.Making original execution time t and cycle-index N is 0, arranges a largest loop time Number Nmax, m Formica fusca is put in initial service, making the pheromone initial value on each execution route is τij(t)=constant, Δτij(0)=0.In this step, Formica fusca number is for being number of users, and user serves as the role of Formica fusca in ant group algorithm, In order to ensure the correctness of the best of breed business selected, carry out N m user for this composite servicemaxAfter secondary selection Just draw final optimal selection path.
Step 2:N ← N+1.The most often do and once circulate so that circulation time N adds 1, and once circulation herein refers to, all of m Individual user completes the selection from set of service C1 to set of service Cn, and N is then to record such circulation to have how many times, Nmax It it is then the upper limit of N;
Step 3:k ← k+1.Here k refers to have how many user to perform in single cycle in step 2 in m user Be over composite service, whenever user performs to be over the entire flow of this composite service, i.e. from initial set of service C1 choosing K is then made to increase by 1 to final set of service Cn, until loop ends now makes the N increase by 1 in step 2 during k=m, no The user then making k=k+1 be not fully complete composite services continues executing with composite services.
Step 4: unique user is according to the state transition probability formula in above formula (9)Result of calculation select Should be participated in by which service in next services set is combined.
Step 5: updating taboo list, the taboo list herein arranged is for user m, in set of service C1 in single cycle In set of service Cn, reselection does not participates in the business of combination: the service that 1. will have been chosen by adds taboo list, 2. by services set The service performing failure in conjunction adds taboo list.
Step 6: if k < m, i.e. complete the number of users of composite services and then jump to step 3 less than initial value m and continue to hold OK, if having traveled through k=m, step 7 is performed.
Step 7: according to τ in above formula (11) and (12)ij(t+n) computational methods update the information in every traverse path Amount.
Step 8: if cycle-index has reached to arrange maximum, perform step 9, i.e. when cycle-index N=NmaxTime hold Row step 9, otherwise empties taboo list and jumps to step 2 and continue down to perform.
Step 9: according to ultimately residing in the pheromone selected on path, public often walking probability when selecting next business Formula (9) is givenWill there is a maximum, select the next one to participate in the business of combination all according to maximum general often walking RateSelect, then drawn optimum selection path, EP (end of program).

Claims (2)

1. an internet of things service framework, it is characterised in that: described internet of things service architecture environment is divided into five layers, is respectively as follows: and sets Standby Access Layer, data communication layer, equipment control layer, SML, service application layer;
Equipment Access Layer: equipment Access Layer is the bottom in whole Internet of Things framework, mainly towards various equipment;
Data communication layer: whole data communication layer includes the communication network with the Internet as representative, and make the physical equipment can With middleware or gateway with these transmitted data on network;
Equipment control layer: the major function of this layer is to manage, by data communication layer, the equipment accessed in Internet of Things, wherein wraps Include facility registration module, device management module and monitoring of tools module;
SML: the major function of this layer is to manage based on accessing the business that in Internet of Things, equipment is developed, including business Registering modules, operational control module, combinations of services module, business monitoring module;
Service application layer: this layer main, and this layer can be the processing platform of certain enterprise in the face of all types of users, or uses The individual pc of Internet of Things, can use present in Internet of Things miscellaneous service by various platforms or be applied in combination each Atom business;
The combinations of services method of described framework comprises the steps:
Step 1: parameter initialization;Making original execution time t and cycle-index N is 0, arranges a maximum cycle Nmax, m Formica fusca is put in initial service, making the pheromone initial value on each execution route is τij(t)=constant, Δ τij(0)=0;In this step, Formica fusca number is for being number of users, and user serves as the role of Formica fusca in ant group algorithm, for Ensure the correctness of the best of breed business selected, carry out N m user for this composite servicemaxAfter secondary selection Draw final optimal selection path;
Step 2:N ← N+1;The most often do and once circulate so that circulation time N adds 1, and once circulation herein refers to, all of m use Family completes the selection from set of service C1 to set of service Cn, and N is then to record such circulation to have how many times, NmaxIt is then N The upper limit;
Step 3:k ← k+1;Here k refers to have how many user to perform to be in single cycle in step 2 in m user Composite service, whenever user performs to be over the entire flow of this composite service, i.e. chooses from initial set of service C1 Whole set of service Cn then makes k increase by 1, until loop ends now makes the N in step 2 increase by 1 during k=m, otherwise makes K=k+1 is not fully complete the user of composite services and continues executing with composite services;
Step 4: unique user is according to state transition probability formula given belowResult of calculation select next clothes What business was concentrated should be participated in combination by which service;
Wherein S represents the set of all services that can select in this step combines, and α is that information heuristic greedy method represents accumulation Pheromone selects the importance in path for Formica fusca, i.e. the biggest as α, then the pheromone that path is left over selects the shadow in path to Formica fusca Ringing the biggest, its value takes 1 or 2, and β is expectation heuristic factor, represents the importance of visibility, has reacted Formica fusca and has opened when selecting path The photos and sending messages influence degree to selecting, its value is the biggest, then be closer to greed rule, and its value also takes 1 or 2, τijT () represents at t In the moment, the pheromone on i to the j of path, at t=0 time instant τijT () is constant;
Heuristic information represents when Formica fusca selects the path of oneself selecting path when according to heuristic information, in Path selection In, during in order to make selection path, selecting the combination that Qos value is the highest, heuristic information is by heuristic function ηijT () represents, make at this Heuristic function is identical i.e. with the Qos value of business:
ηij(t)=λ Qj+(1-λ)Qj-1
Wherein Qos value is needed to draw four property value q of Qos1、q2、q3、q4, wherein q1The generation paid by use business Valency, q2For the response delay (ms) of business, q3Bandwidth (Hz) shared by service execution, q4For the reliability of business, λ is to lose Forget the factor;For q1, q2, q3Upon execution, SML performs business according to the implementation status record traffic of business every time Parameter, including business Executing Cost, business performs time delay, bandwidth required during business execution and the reliability for this business Evaluate, SML records the execution result of nearest n time of this business, when (n+1)th execution of user, its Qos attribute Value is just performed result by first n time and draws, the property value q that i.e. (n+1)th time performs1,q2,q3Take the number recorded when n-th performs According to, q4Then performed result by first n time comprehensively to draw;
If the reliability function that first n time performs, described reliability function is used to calculate the value of reliability, is respectively as follows:
(f1(a,s),f2(a,s),f3(a,s)...fn(a,s))
Wherein, a is user's evaluating, and s is other service evaluatings to this service;
So reliability referenced when performing for final n-th should be:
q 4 = &Sigma; i = 1 n &phi; i f i ( a , s )
In order to the concordance of retention value has:
&Sigma; i &phi; i = 1 ;
Consider that the weight that in practical situation, the value of execution time reliability the most rearward is obtained should be the biggest so having:
φi< φi+1
Then meet the weighting function of conditions above, when performing have when total degree n is even number:
&phi; i = 1 n - 1 ( i + 1 ) n i &le; n 2 1 n + 1 ( n + 2 - i ) n i > n 2
When performing have when total degree n is odd number:
&phi; i = 1 n - 1 ( i + 1 ) n i < n + 1 2 1 n i = n + 1 2 1 n + 1 ( n + 2 - i ) n i > n + 1 2
Thus can be when jth time call this business, the service quality of this business obtained:
Q j = &Sigma; i = 0 4 &alpha; ( i ) q i ,
Wherein α (i) is the weight of each attribute, and has for α (i)
After having performed a business, the property value of business is updated according to Self-variation every time, and this will after having performed The property value that (n+1)th time performs is recorded, as the property value of the n-th+2 times;
Step 5: updating taboo list, the taboo list herein arranged is for user m, in set of service C1 to clothes in single cycle In business set Cn, reselection does not participates in the business of combination: the service that 1. will have been chosen by adds taboo list, 2. by set of service Perform failed service and add taboo list;
Step 6: if k < m, i.e. complete the number of users of composite services and then jump to step 3 less than initial value m and continue executing with, as Really k=m then performs step 7;
Step 7: update the quantity of information in every traverse path;
In this step following more new regulation uses for the quantity of information on every paths:
τij(t+n)=(1-γ) * τij(t)+Δτij(t)
&Delta;&tau; i j ( t ) = &Sigma; k = 1 m &Delta;&tau; i j k ( t )
Wherein γ ∈ (0,1) represents pheromone volatility coefficient;The reason adding this volatility coefficient is intended to meet the dynamic of whole environment State changes, and the pheromone before carried under environment can be only left (1-γ) times, and add volatility coefficient and be possible to prevent letter The unlimited accumulation of breath element;Represent that kth Formica fusca stays the pheromone increment on path in this circulates;For pheromone Increment uses Ant-Cycle model i.e.:
Wherein Q is pheromone intensity, LkThe path walked in this circulates for kth Formica fusca;Formica fusca is walked from i to j Path connects with the Qos property value when i services selection j services, makes Q=1 at this, according to the Qos attribute defined before, By LkIt is defined as:
L k = &Sigma; i = 1 4 | f i - p i |
Then:
Wherein fiFor the function of the ith attribute value of this service Qos, pass through fiThe ith attribute value of current service Qos can be drawn, piFor user for the expected value of this service ith attribute value, from the definition of this function, when the difference of actual value Yu expected value Absolute value the least, the quantity of information stayed is the biggest, then the probability selecting the little service of difference is the biggest;
Step 8: if cycle-index has reached to arrange maximum, perform step 9, i.e. when cycle-index N=NmaxShi Zhihang walks Rapid 9, otherwise empty taboo list and jump to step 2 and continue down to perform;
Step 9: according to ultimately residing in the pheromone selected on path, the probability when often walking the next business of selectionCapital There is a maximum, select the next one to participate in the business of combination all according to maximum probability often walkingSelect, then draw Optimum selection path, EP (end of program).
2. the combinations of services method of an internet of things service framework, it is characterised in that described method comprises the steps:
Step 1: parameter initialization;Making original execution time t and cycle-index N is 0, arranges a maximum cycle Nmax, m Formica fusca is put in initial service, making the pheromone initial value on each execution route is τij(t)=constant, Δ τij(0)=0;In this step, Formica fusca number is for being number of users, and user serves as the role of Formica fusca in ant group algorithm, for Ensure the correctness of the best of breed business selected, carry out N m user for this composite servicemaxAfter secondary selection Draw final optimal selection path;
Step 2:N ← N+1;The most often do and once circulate so that circulation time N adds 1, and once circulation herein refers to, all of m use Family completes the selection from set of service C1 to set of service Cn, and N is then to record such circulation to have how many times, NmaxIt is then N The upper limit;
Step 3:k ← k+1;Here k refers to have how many user to perform to be in single cycle in step 2 in m user Composite service, whenever user performs to be over the entire flow of this composite service, i.e. chooses from initial set of service C1 Whole set of service Cn then makes k increase by 1, until loop ends now makes the N in step 2 increase by 1 during k=m, otherwise makes K=k+1 is not fully complete the user of composite services and continues executing with composite services;
Step 4: unique user is according to state transition probability formula given belowResult of calculation select next clothes What business was concentrated should be participated in combination by which service;
Wherein S represents the set of all services that can select in this step combines, and α is that information heuristic greedy method represents accumulation Pheromone selects the importance in path for Formica fusca, i.e. the biggest as α, then the pheromone that path is left over selects the shadow in path to Formica fusca Ringing the biggest, its value takes 1 or 2, and β is expectation heuristic factor, represents the importance of visibility, has reacted Formica fusca and has opened when selecting path The photos and sending messages influence degree to selecting, its value is the biggest, then be closer to greed rule, and its value also takes 1 or 2, τijT () represents at t In the moment, the pheromone on i to the j of path, at t=0 time instant τijT () is constant;
Heuristic information represents when Formica fusca selects the path of oneself selecting path when according to heuristic information, in Path selection In, during in order to make selection path, selecting the combination that Qos value is the highest, heuristic information is by heuristic function ηijT () represents, make at this Heuristic function is identical i.e. with the Qos value of business:
ηij(t)=λ Qj+(1-λ)Qj-1
Wherein Qos value is needed to draw four property value q of Qos1、q2、q3、q4, wherein q1The generation paid by use business Valency, q2For the response delay (ms) of business, q3Bandwidth (Hz) shared by service execution, q4For the reliability of business, λ is to lose Forget the factor;For q1, q2, q3Upon execution, SML performs business according to the implementation status record traffic of business every time Parameter, including business Executing Cost, business performs time delay, bandwidth required during business execution and the reliability for this business Evaluate, SML records the execution result of nearest n time of this business, when (n+1)th execution of user, its Qos attribute Value is just performed result by first n time and draws, the property value q that i.e. (n+1)th time performs1,q2,q3Take the number recorded when n-th performs According to, q4Then performed result by first n time comprehensively to draw;
If the reliability function that first n time performs, described reliability function is used to calculate the value of reliability, is respectively as follows:
(f1(a,s),f2(a,s),f3(a,s)...fn(a,s))
So reliability referenced when performing for final n-th should be:
q 4 = &Sigma; i = 1 n &phi; i f i ( a , s )
In order to the concordance of retention value has:
&Sigma; i &phi; i = 1 ;
Consider that the weight that in practical situation, the value of execution time reliability the most rearward is obtained should be the biggest so having:
φi< φi+1
Then meet the weighting function of conditions above, when performing have when total degree n is even number:
&phi; i = 1 n - 1 ( i + 1 ) n i &le; n 2 1 n + 1 ( n + 2 - i ) n i > n 2
When performing have when total degree n is odd number:
&phi; i = 1 n - 1 ( i + 1 ) n i < n + 1 2 1 n i = n + 1 2 1 n + 1 ( n + 2 - i ) n i > n + 1 2
Thus can be when jth time call this business, the service quality of this business obtained:
Q j = &Sigma; i = 0 4 &alpha; ( i ) q i ,
Wherein α (i) is the weight of each attribute, and has for α (i)
After having performed a business, the property value of business is updated according to Self-variation every time, and this will after having performed The property value that (n+1)th time performs is recorded, as the property value of the n-th+2 times;
Step 5: updating taboo list, the taboo list herein arranged is for user m, in set of service C1 to clothes in single cycle In business set Cn, reselection does not participates in the business of combination: the service that 1. will have been chosen by adds taboo list, 2. by set of service Perform failed service and add taboo list;
Step 6: if k < m, i.e. complete the number of users of composite services and then jump to step 3 less than initial value m and continue executing with, as Really k=m then performs step 7;
Step 7: update the quantity of information in every traverse path;
In this step following more new regulation uses for the quantity of information on every paths:
τij(t+n)=(1-γ). τij(t)+Δτij(t)
&Delta;&tau; i j ( t ) = &Sigma; k = 1 m &Delta;&tau; i j k ( t )
Wherein γ ∈ (0,1) represents pheromone volatility coefficient;The reason adding this volatility coefficient is intended to meet the dynamic of whole environment State changes, and the pheromone before carried under environment can be only left (1-γ) times, and add volatility coefficient and be possible to prevent letter The unlimited accumulation of breath element;Represent that kth Formica fusca stays the pheromone increment on path in this circulates;For pheromone Increment uses Ant-Cycle model i.e.:
Wherein Q is pheromone intensity, LkThe path walked in this circulates for kth Formica fusca;Formica fusca is walked from i to j Path connects with the Qos property value when i services selection j services, makes Q=1 at this, according to the Qos attribute defined before, By LkIt is defined as:
L k = &Sigma; i = 1 4 | f i - p i |
Then:
Wherein fiFor the function of the ith attribute value of this service Qos, pass through fiThe ith attribute value of current service Qos can be drawn, piFor user for the expected value of this service ith attribute value, from the definition of this function, when the difference of actual value Yu expected value Absolute value the least, the quantity of information stayed is the biggest, then the probability selecting the little service of difference is the biggest;
Step 8: if cycle-index has reached to arrange maximum, perform step 9, i.e. when cycle-index N=NmaxShi Zhihang walks Rapid 9, otherwise empty taboo list and jump to step 2 and continue down to perform;
Step 9: according to ultimately residing in the pheromone selected on path, selects probability during next business to provide often walkingWill there is a maximum, select the next one to participate in the business of combination all according to maximum probability often walkingSelect Select, then drawn optimum selection path, EP (end of program).
CN201310278572.1A 2013-07-03 2013-07-03 A kind of internet of things service framework and combinations of services method Expired - Fee Related CN103354506B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310278572.1A CN103354506B (en) 2013-07-03 2013-07-03 A kind of internet of things service framework and combinations of services method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310278572.1A CN103354506B (en) 2013-07-03 2013-07-03 A kind of internet of things service framework and combinations of services method

Publications (2)

Publication Number Publication Date
CN103354506A CN103354506A (en) 2013-10-16
CN103354506B true CN103354506B (en) 2016-09-28

Family

ID=49310822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310278572.1A Expired - Fee Related CN103354506B (en) 2013-07-03 2013-07-03 A kind of internet of things service framework and combinations of services method

Country Status (1)

Country Link
CN (1) CN103354506B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323256B (en) * 2015-11-25 2019-01-22 北京荣之联科技股份有限公司 A kind of positive feedback service catalogue generation method and system
CN108108444B (en) * 2017-12-22 2021-12-21 国云科技股份有限公司 Enterprise business unit self-adaptive system and implementation method thereof
CN109474973A (en) * 2018-12-03 2019-03-15 上海金卓网络科技有限公司 Method, apparatus, equipment and medium are determined based on the ad hoc network path of ant group algorithm
CN113039566A (en) * 2018-12-12 2021-06-25 西门子股份公司 Application program configuration method, device, system, computer software product and readable medium for industrial Internet of things solution

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860978A (en) * 2010-05-14 2010-10-13 南京邮电大学 Internet of things system structure
CN101951693A (en) * 2010-08-03 2011-01-19 天津中启创科技有限公司 Thing Internet gateway of heterogeneous wireless network and control method thereof
CN102801722A (en) * 2012-08-09 2012-11-28 福建物联天下信息科技有限公司 Internet of things authentication method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860978A (en) * 2010-05-14 2010-10-13 南京邮电大学 Internet of things system structure
CN101951693A (en) * 2010-08-03 2011-01-19 天津中启创科技有限公司 Thing Internet gateway of heterogeneous wireless network and control method thereof
CN102801722A (en) * 2012-08-09 2012-11-28 福建物联天下信息科技有限公司 Internet of things authentication method and system

Also Published As

Publication number Publication date
CN103354506A (en) 2013-10-16

Similar Documents

Publication Publication Date Title
Asghari et al. Service composition approaches in IoT: A systematic review
Khan et al. Trust management in social internet of things: Architectures, recent advancements, and future challenges
Li et al. Modeling and analyzing the reliability and cost of service composition in the IoT: A probabilistic approach
CN103544623B (en) A kind of Web service recommendation method based on user preference feature modeling
Sun et al. Energy-efficient IoT service composition for concurrent timed applications
CN111562972A (en) Ubiquitous operating system for crowd sensing
Alsaryrah et al. Bi-objective optimization for energy aware Internet of Things service composition
Kuang et al. Personalized services recommendation based on context-aware QoS prediction
CN110191148A (en) A kind of statistical function distribution execution method and system towards edge calculations
CN103354506B (en) A kind of internet of things service framework and combinations of services method
Cui et al. Scenario analysis of web service composition based on multi-criteria mathematical goal programming
Di et al. Collaborative smartphone sensing using overlapping coalition formation games
Abosaif et al. Quality of service-aware service selection algorithms for the internet of things environment: A review paper
Hao et al. iTaskOffloading: Intelligent task offloading for a cloud-edge collaborative system
CN109257422A (en) Sensing network signal reconstruct method
Huang et al. BSNet: a network‐based framework for service‐oriented business ecosystem management
CN101626305A (en) Trusted dynamic level scheduling method for improving security of network environment
Sandhu et al. A stochastic game net‐based model for effective decision‐making in smart environments
Feng et al. A novel cloud load balancing mechanism in premise of ensuring QoS
Cao et al. Mapping strategy for virtual networks in one stage
Zhao et al. Agent-based simulation platform for cloud manufacturing
Fardbastani et al. Business process monitoring via decentralized complex event processing
Zheng et al. An RBF neural network–based dynamic virtual network embedding algorithm
CN102929605A (en) Cloud-computing-based open interface of data mining system
Obaidat et al. Context-aware middleware architectural framework for intelligent smart grid data management

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20131016

Assignee: Jiangsu Nanyou IOT Technology Park Ltd.

Assignor: Nanjing Post & Telecommunication Univ.

Contract record no.: 2016320000215

Denomination of invention: IOT service structure and service combining method

Granted publication date: 20160928

License type: Common License

Record date: 20161118

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
EC01 Cancellation of recordation of patent licensing contract
EC01 Cancellation of recordation of patent licensing contract

Assignee: Jiangsu Nanyou IOT Technology Park Ltd.

Assignor: Nanjing Post & Telecommunication Univ.

Contract record no.: 2016320000215

Date of cancellation: 20180116

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: 20160928

Termination date: 20190703