Disclosure of Invention
Aiming at the problems that at present, a plurality of information application systems are introduced to a manufacturing enterprise to coordinate and complete the execution and management work of internal and external services, and because the difference of communication protocols exists among different systems, the information resources of the enterprise are broken down and scattered, a plurality of information isolated islands are formed, the cooperation among cross-department, cross-service and cross-organization is blocked, the problems that plan is out of control, inventory is excessive, blind purchase and the like are not beneficial to the normal development of the enterprise, and ineffective labor, resource waste, benefit loss and the like are brought to the enterprise are easily caused, the invention provides an application interconnection architecture for industrial manufacturing, solves the problems of application interconnection and intercommunication and interoperation for the enterprise through the form of service, and helps the enterprise to realize intelligent manufacturing and intelligent production, and comprises the following steps:
A. establishing an application interconnection architecture model for industrial manufacturing;
B. establishing an industrial manufacturing application interconnection bus platform through an industrial manufacturing application interconnection architecture model;
C. and finishing the work flow of the application interconnection architecture model of the industrial manufacturing.
The step A is characterized in that: the application interconnection architecture for industrial manufacturing develops the design of an application interconnection bus core engine, a service management platform, a service release platform, a service shop platform and a service monitoring platform by an application service bus message flow operating environment, as shown in fig. 1, wherein the application service bus message flow operating environment is a message middleware for supporting the industrial manufacturing application interconnection bus platform and provides a message flow driving operating environment; the application interconnection bus core engine comprises a protocol adapter and a message flow template, and provides functions of security authentication, format conversion, protocol conversion, path selection, load balancing, flow control, log recording and message transmission, wherein the protocol adapter comprises a REST adapter, a WS adapter, an AMQP adapter, a RFC adapter, an SMTP adapter and an FTP adapter, and supported protocols comprise a presentation layer state transfer protocol REST, a simple object access protocol WS, a high-level message queue protocol AMQP, a remote function call protocol RFC, a simple mail transfer protocol SMTP and a file transfer protocol FTP; the service management platform has the functions of platform operation and maintenance, authorization management and life cycle management; the service publishing platform has the functions of service registration, service publishing and service management; the functions of the service store platform comprise a service directory, service subscription and service trial; the functions of the service monitoring platform comprise service transaction statistics, service quantity statistics, service quality analysis, service monitoring, platform monitoring and abnormal alarm.
The step A is characterized in that: the service management platform comprises platform operation and maintenance, authorization management and life cycle management, and specifically comprises the following functions:
(1) the platform operation and maintenance is used for maintaining an industrial manufacturing application interconnection bus platform by an administrator, and comprises log management, system registration and protocol adapter registration, wherein the log management is used for analyzing log records and searching the reason of the problem when the industrial manufacturing application interconnection bus platform is abnormal, and the managed logs comprise system logs, application program logs, safety logs and transaction logs of services; system registration for an administrator to register a related application system, the implementation of which comprises the steps of: firstly, the system basic information configuration comprises a system name, a system abbreviation, a system type, a system deployment area and a system description; generating a unique system identifier according to the application type and the deployment area of the system; thirdly, completing the configuration of the outbound/inbound protocol of the system according to the communication protocol supported by the system; realizing the safety certification of the system according to the application requirement, wherein the certification mode comprises binding of an MAC address, an IP black and white list, physical port binding, digital visa and session verification; storing system basic information, system identification, system outbound/inbound protocol and system security authentication information to a database; the protocol adapter registration is used for the administrator to register the relevant protocol adapter according to the parameter requirement of the protocol adapter;
(2) authorizing and managing a request authority for managing a login authority and a service of a user;
(3) lifecycle management is used to manage the lifecycle state of a service and to describe the relationships between the various phases of the service lifecycle,
1) the service lifecycle includes the following states:
in the creation, the service is not created completely, and the service shop platform does not display the service;
releasing to show that the service is created and the service shop platform does not display the service;
third, release, which represents that the service has been created, the service shop platform displays the service, and the service can be subscribed/requested by the service requester;
pause, which means that the service is executed with pause operation, the service shop platform does not display the service, and the service can not be subscribed/requested by the service requester;
deactivating, which means that the service has been deleted by the industrial manufacturing application interconnect bus platform, the service shop platform does not display the service, and the service cannot be subscribed/requested by the service requester;
2) the relationship of the changes in each phase of the service life cycle is shown in fig. 2, and includes the following relationships:
firstly, when a service application is issued and is not examined and approved, the service life cycle is changed from creation to release;
when the service application is not approved, the service life cycle is changed from to be issued to be created;
when the service application is approved, the service life cycle is changed from to be released;
when the suspension operation is executed on the published service, the service life cycle is changed from published to suspended;
when the release operation is executed on the suspended service, the service life cycle is changed from suspended to released;
when the suspension service reappears for release but is not approved, the service life cycle is changed from suspension to release;
when the service application to be issued is changed from pause to approval and fails, the service life cycle is changed from pause to issue;
when the pause service is executed with the deactivation operation, the service life cycle is changed from pause to deactivation.
The step A is characterized in that: the service publishing platform comprises service registration, service management and service publishing, and specifically comprises the following functions:
(1) service registration is used for a service provider to register various types of services, and comprises the following steps:
firstly, selecting a service provider and completing service basic information configuration, wherein the service basic information configuration comprises a service name, a service type, service request overtime and service description;
generating a unique service identifier according to the service provider and the service category;
completing service expansion configuration, including request parameter description, response parameter description, request message example and response message example;
completing special service setting including service priority, maximum request message and maximum transaction times TPS completed per second;
fifthly, configuring a service provider interface address and a request mode according to a service provider application program interface, wherein the interface address is the access path information of the service provider application program public resource;
sixthly, storing the service basic information, the service identification, the service expansion configuration, the service special setting, the service provider interface address and the request mode to a database;
(2) the service management is used for the service provider to manage the registered services, including modifying services, deleting services, testing services and releasing services;
(3) the service publishing is used for the service provider to publish and apply for the registered service, and the published service after application is passed is used for the service requester to subscribe/request.
The step A is characterized in that: the service store platform function comprises a service directory, service subscription and service trial, wherein the service directory is used for presenting published services in the service store platform in the form of a directory, and a service requester retrieves and views the services in the directory and performs trial and subscription on the services; the service subscription is used for the service requester to initiate a subscription application for the service which is not subscribed in the service store platform; the service trial is used for making online calls to the published service in the service store platform.
The step A is characterized in that: the application interconnection bus core engine function comprises security authentication, format conversion, protocol conversion, log recording, path selection, flow control, message transmission and load balancing, wherein the security authentication comprises the following steps: the system is used for realizing the safety certification of a service requester system according to application requirements, and the certification mode comprises binding of an MAC address, an IP black and white list, physical port binding, digital visa and session verification; format conversion: when the message formats of the service requester and the service provider are inconsistent, the application interconnection bus core engine autonomously realizes the format conversion of the message according to the message formats of the service requester and the service provider in the service registration information; protocol conversion: when the communication protocols of the service requester and the service provider are inconsistent, the application interconnection bus core engine autonomously selects a corresponding protocol adapter according to the corresponding communication protocols of the service requester and the service provider, so as to realize the transmission of messages among different protocols; logging: the system comprises a log component, a service monitoring platform and a data processing module, wherein the log component is used for applying a log component in an interconnection bus core engine, recording each transaction behavior of the service, and providing data for statistics and analysis for the service monitoring platform; path selection: the method comprises the steps that after a message enters an application interconnection bus core engine, an interface address provided by a service provider is selected autonomously, and the message is sent to the service provider through the selected address; flow control: firstly, setting a maximum request message M of service and a maximum transaction frequency TPS completed per second, secondly, obtaining a corresponding request message quantity M ' and a corresponding transaction frequency TPS completed per second by using an interconnection bus core engine according to a request provided by a service request party, and if M is less than M ' or TPS is less than TPS ', sending error information to the service request party by using the interconnection bus core engine; load balancing: the system comprises a service provider, a service request module and a service processing module, wherein the service provider is used for enhancing the concurrent processing capacity when the service provider receives the service request and relieving the processing pressure of a single interface address, and the service request represents that a service requester requests the service of the service provider through an application interconnection bus core engine; the load balancing operation steps are shown in fig. 3, and include the following steps:
starting a load function in service registration information;
inputting an interface address of a service provider;
selecting a load rule, and selecting one of a polling rule, a weight rule and a dynamic calculation rule;
and fourthly, when the weight rule is selected, setting a corresponding empirical weight coefficient for each interface address.
The step A is characterized in that: the load rules in the load balancing function include polling rules, weighting rules and dynamic calculation rules, and specifically include:
(1) and (3) polling rules: arranging interface addresses corresponding to each service according to an input sequence; when a service requester requests service, the service requester is sequentially taken out from the interface address arrangement corresponding to the service according to the request sequence and called;
(2) the weight rule is as follows: setting a corresponding weight coefficient for each interface address, when a service requester requests service, obtaining an effective weight coefficient through a calculation rule, and obtaining a maximum effective weight coefficient by combining a plurality of effective weight coefficient set self-adaptive iteration mechanisms, wherein the effective weight coefficient set is beta, beta', and then obtaining the corresponding interface address; in any single poll, the weight rule flow is shown in fig. 4, and includes the following steps:
get service F1N interface addresses;
② the interface address set is
Corresponding set of weighting coefficients as
Setting a weight coefficient sum
The set of valid weight coefficients with an initial value of 0 is
Wherein i is more than or equal to 1 and less than or equal to n, and m is more than or equal to 1
1≤n,S
iFor the address of the i-th interface,
is m at
1An interface address, S
nFor the nth interface address, α
iSetting a weight coefficient for the ith interface address,
is m at
1Set weighting factor, alpha, of individual interface addresses
nFor setting a weight coefficient, beta, for the nth interface address
iIs the effective weight coefficient of the ith interface address,
is m at
1Effective weight coefficient of an interface address, beta
nEffective weight coefficient for nth interface address;
third, when the service request party requests service F1Traversing the interface address set S, sequentially adding the corresponding elements of the set weight coefficient set and the effective weight coefficient set, and if the selected interface address is S in the traversing processiThen its corresponding effective weight coefficient is β'i=αi+βiThe interface address after traversal is corresponding to a valid weight coefficient set of β '═ β'1,β'2,β'3,...,β'n};
Fourthly, obtaining the maximum effective weight coefficient beta 'through an effective weight coefficient set beta'max;
Is beta through'
maxThe value of (b) obtains its corresponding set of maximum effective weight coefficients in β
Wherein m is more than or equal to 1
1<m
2<...<m
n≤n;
Sixthly, passing through beta'
mObtaining effective weight coefficients
And its corresponding interface address
Is obtained by
To interface address
Is given by
Is replaced by
When all the interface address effective weight coefficients are 0, finishing single polling, otherwise waiting for next service request party to request service F1。
(3) Dynamically calculating rules: as shown in FIG. 5, this is accomplished by first serving F
2Setting an initial empirical weight coefficient eta for each interface address; then, the service requester requests service F
2Then using the weight rule to obtain the corresponding interface address; second, when a single poll is complete, service F is acquired
2Historical request information recorded in the log, which includes the smallest request message S within a single poll
minMinimum response message M
minAnd maximum successful response time T
maxAverage request message S corresponding to single interface address
avgAverage response message M
avgTime-consuming average T of complete successful transaction
avgAnd the transaction success rate R and the weight coefficient of the next polling of each interface address are obtained
Where μ is a correction factor (μ e N)
*);After that, every time when the single polling is finished, the weight coefficient of the next polling of each interface address is obtained through the history information recorded in the log; finally, when service F
2When the interface address information is changed, the core engine of the application interconnection bus stops the current dynamic calculation rule.
The step B is characterized in that: the process of establishing the industrial manufacturing application interconnection bus platform through the industrial manufacturing application interconnection architecture model comprises the following steps: firstly, message middleware is used for realizing the transmission of messages among multi-source heterogeneous information systems; then abstracting and packaging the message transmission function in the message stream operating environment, realizing the construction of an application interconnection bus core engine, and completing security authentication, format conversion, protocol conversion, path selection, load balancing, flow control and log recording in the message transmission process; secondly, constructing a service management platform for managing an application interconnection bus core engine, and constructing a graphical report for statistical analysis provided by a service monitoring platform; and finally, constructing a service publishing platform and a service shop platform for the third-party system to use.
The step C is characterized in that: establishing an application interconnection architecture model work flow of industrial manufacturing, wherein the work flow comprises two stage flows of establishing an industrial manufacturing application interconnection bus platform and establishing service;
(1) the process for establishing the industrial manufacturing application interconnection bus platform comprises the following steps:
selecting a Message flow operating environment, wherein the Message flow operating environment specifically comprises an IBM Integration Bus, an IBM WebSphere Message Broker, an Oracle Service Bus, an Oracle Enterprise Service Bus and a Mule ESB;
completing the development of an application interconnection bus core engine in a message flow running environment, wherein the development specifically comprises a protocol adapter, a message flow template and components for providing security authentication, format conversion, protocol conversion, path selection, load balancing, flow control and diary recording;
developing a service management platform and a service monitoring platform, wherein the functions of the service management platform comprise platform operation and maintenance, authorization management and life cycle management; the functions of the service monitoring platform comprise service transaction statistics, service quantity statistics, service quality analysis, service monitoring, platform monitoring and abnormal alarm;
developing a service release platform and a service shop platform, wherein the functions of the service release platform comprise service registration, service release and service management; the functions of the service store platform comprise a service directory, service subscription and service trial;
deploying in a manner of public cloud deployment, private cloud deployment, community cloud deployment, hybrid cloud deployment and local deployment, wherein the deployment mode comprises a traditional mode, a virtualization mode and a container deployment mode;
and sixthly, completing platform configuration on the service management platform, completing service creation, release, viewing and subscription on the service release platform and the service store platform, and finally completing service message transmission through the application interconnection bus core engine.
(2) The service creation includes:
firstly, realizing system registration and protocol adapter configuration in a service management platform;
secondly, logging in the publishing platform, and the system defined in the service management platform realizes the registration, management and publishing of the service through the publishing platform. After the authorization of the service management platform for the approval task to be published passes, the life cycle state of the service is changed into published, and at the moment, the service can be subscribed by other systems;
logging in the service shop platform, issuing the service authorized to pass by the platform, presenting the service in the service shop platform in a catalog form, and checking the service and trying and subscribing the service by the system defined by the service management platform through the service shop platform. After the authorization of the service management platform for the examination and approval task to be subscribed is passed, a system defined by the service management platform can request for the service;
the service requester realizes the service request through the application interconnection bus core engine, and records the transaction behavior of each service through the log component in the application interconnection bus core engine, wherein the service request process is as follows: firstly, a service requester sends a request message to an application interconnection bus core engine, the request message is subjected to format detection, message initialization, security authentication, flow control and path selection to complete the operation processing of the request message, then, a service provider receives the request message after the operation processing and sends a response message to the application interconnection bus core engine, the application interconnection bus core engine converts the response message into a message format required by the service requester through a protocol adapter and sends the message format to the service requester to complete the service request, wherein the operation processing flow of the request message is shown in fig. 6 and specifically comprises the following steps:
a. b, the application interconnection bus core engine obtains a request message Q sent by a service request party and transfers to the step b;
b. carrying out format detection on the request message Q, if the detection is passed, turning to the step c, otherwise, turning to the step g;
c. b, initializing the request message Q, converting the message format of the request message Q into a standard message format, and turning to the step d, wherein the initialized request message is represented as Q';
d. detecting the request message Q' through a safety certification function, if the detection is passed, turning to the step e, otherwise, turning to the step g;
e. detecting the request message Q' through a flow control function, if the detection is passed, turning to f, otherwise, turning to the step g;
f. sending the request message Q' to a corresponding service provider through a path selection function, and ending the process;
g. generating prompt information, sending the prompt information to a requester system, and ending the process;
the service monitoring platform obtains the transaction log data generated in the application interconnection bus core engine, displays the transaction log data in the service management platform, the service release platform and the service shop platform in real time in an analysis report form, and carries out abnormal alarm through mail/short message/WeChat/telephone voice when abnormal transaction occurs in the application interconnection bus core engine.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Step 1, establishing an application interconnection architecture model for industrial manufacturing, and developing the design of an application interconnection bus core engine, a service management platform, a service release platform, a service shop platform and a service monitoring platform by an application service bus message flow operating environment, as shown in fig. 1, wherein the application service bus message flow operating environment is a message middleware for supporting the industrial manufacturing application interconnection bus platform and provides a message flow driving operating environment; the application interconnection bus core engine comprises a protocol adapter and a message flow template, and provides functions of security authentication, format conversion, protocol conversion, path selection, load balancing, flow control, log recording and message transmission, wherein the protocol adapter comprises a REST adapter, a WS adapter, an AMQP adapter, a RFC adapter, an SMTP adapter and an FTP adapter, and supported protocols comprise a presentation layer state transfer protocol REST, a simple object access protocol WS, a high-level message queue protocol AMQP, a remote function call protocol RFC, a simple mail transfer protocol SMTP and a file transfer protocol FTP; the service management platform has the functions of platform operation and maintenance, authorization management and life cycle management; the service publishing platform has the functions of service registration, service publishing and service management; the functions of the service store platform comprise a service directory, service subscription and service trial; the functions of the service monitoring platform comprise service transaction statistics, service quantity statistics, service quality analysis, service monitoring, platform monitoring and abnormal alarm.
Step 2, constructing a service management platform, wherein the service management platform has the functions of platform operation and maintenance, authorization management and life cycle management, and specifically comprises the following steps:
(1) the platform operation and maintenance is used for maintaining an industrial manufacturing application interconnection bus platform by an administrator, and comprises log management, system registration and protocol adapter registration, wherein the log management is used for analyzing log records and searching the reason of the problem when the industrial manufacturing application interconnection bus platform is abnormal, and the managed logs comprise system logs, application program logs, safety logs and transaction logs of services; system registration for an administrator to register a related application system, the implementation of which comprises the steps of: firstly, the system basic information configuration comprises a system name, a system abbreviation, a system type, a system deployment area and a system description; generating a unique system identifier according to the application type and the deployment area of the system; thirdly, completing the configuration of the outbound/inbound protocol of the system according to the communication protocol supported by the system; realizing the safety certification of the system according to the application requirement, wherein the certification mode comprises binding of an MAC address, an IP black and white list, physical port binding, digital visa and session verification; storing system basic information, system identification, system outbound/inbound protocol and system security authentication information to a database; the protocol adapter registration is used for the administrator to register the relevant protocol adapter according to the parameter requirement of the protocol adapter;
(2) authorizing and managing a request authority for managing a login authority and a service of a user;
(3) lifecycle management is used to manage the lifecycle state of a service and to describe the relationships between the various phases of the service lifecycle,
1) the service lifecycle includes the following states:
in the creation, the service is not created completely, and the service shop platform does not display the service;
releasing to show that the service is created and the service shop platform does not display the service;
third, release, which represents that the service has been created, the service shop platform displays the service, and the service can be subscribed/requested by the service requester;
pause, which means that the service is executed with pause operation, the service shop platform does not display the service, and the service can not be subscribed/requested by the service requester;
deactivating, which means that the service has been deleted by the industrial manufacturing application interconnect bus platform, the service shop platform does not display the service, and the service cannot be subscribed/requested by the service requester;
2) the relationship of the changes in each phase of the service life cycle is shown in fig. 2, and includes the following relationships:
firstly, when a service application is issued and is not examined and approved, the service life cycle is changed from creation to release;
when the service application is not approved, the service life cycle is changed from to be issued to be created;
when the service application is approved, the service life cycle is changed from to be released;
when the suspension operation is executed on the published service, the service life cycle is changed from published to suspended;
when the release operation is executed on the suspended service, the service life cycle is changed from suspended to released;
when the suspension service reappears for release but is not approved, the service life cycle is changed from suspension to release;
when the service application to be issued is changed from pause to approval and fails, the service life cycle is changed from pause to issue;
when the pause service is executed with the deactivation operation, the service life cycle is changed from pause to deactivation.
Step 3, constructing a service publishing platform, wherein the service publishing platform has the functions of service registration, service management and service publishing, and specifically comprises the following steps:
(1) service registration is used for a service provider to register various types of services, and comprises the following steps:
firstly, selecting a service provider and completing service basic information configuration, wherein the service basic information configuration comprises a service name, a service type, service request overtime and service description;
generating a unique service identifier according to the service provider and the service category;
completing service expansion configuration, including request parameter description, response parameter description, request message example and response message example;
completing special service setting including service priority, maximum request message and maximum transaction times TPS completed per second;
fifthly, configuring a service provider interface address and a request mode according to a service provider application program interface, wherein the interface address is the access path information of the service provider application program public resource;
sixthly, storing the service basic information, the service identification, the service expansion configuration, the service special setting, the service provider interface address and the request mode to a database;
(2) the service management is used for the service provider to manage the registered services, including modifying services, deleting services, testing services and releasing services;
(3) the service publishing is used for the service provider to publish and apply for the registered service, and the published service after application is passed is used for the service requester to subscribe/request.
Step 4, a service store platform is built, the service store platform comprises the functions of a service directory, service subscription and service trial, wherein the service directory is used for presenting published services in the service store platform in the form of a directory, and a service requester retrieves and views the services in the directory and performs trial and subscription on the services; the service subscription is used for the service requester to initiate a subscription application for the service which is not subscribed in the service store platform; the service trial is used for making online calls to the published service in the service store platform.
Step 5, constructing an application interconnection bus core engine, wherein the functions of the application interconnection bus core engine comprise security authentication, format conversion, protocol conversion, log recording, path selection, flow control, message transmission and load balancing, and the security authentication comprises the following steps: the system is used for realizing the safety certification of a service requester system according to application requirements, and the certification mode comprises binding of an MAC address, an IP black and white list, physical port binding, digital visa and session verification; format conversion: when the message formats of the service requester and the service provider are inconsistent, the application interconnection bus core engine autonomously realizes the format conversion of the message according to the message formats of the service requester and the service provider in the service registration information; protocol conversion: when the communication protocols of the service requester and the service provider are inconsistent, the application interconnection bus core engine autonomously selects a corresponding protocol adapter according to the corresponding communication protocols of the service requester and the service provider, so as to realize the transmission of messages among different protocols; logging: the system comprises a log component, a service monitoring platform and a data processing module, wherein the log component is used for applying a log component in an interconnection bus core engine, recording each transaction behavior of the service, and providing data for statistics and analysis for the service monitoring platform; path selection: the method comprises the steps that after a message enters an application interconnection bus core engine, an interface address provided by a service provider is selected autonomously, and the message is sent to the service provider through the selected address; flow control: firstly, setting a maximum request message M of service and a maximum transaction frequency TPS completed per second, secondly, obtaining a corresponding request message quantity M ' and a corresponding transaction frequency TPS completed per second by using an interconnection bus core engine according to a request provided by a service request party, and if M is less than M ' or TPS is less than TPS ', sending error information to the service request party by using the interconnection bus core engine; load balancing: the system comprises a service provider, a service request module and a service processing module, wherein the service provider is used for enhancing the concurrent processing capacity when the service provider receives the service request and relieving the processing pressure of a single interface address, and the service request represents that a service requester requests the service of the service provider through an application interconnection bus core engine; the load balancing operation steps are shown in fig. 3, and include the following steps:
starting a load function in service registration information;
inputting an interface address of a service provider;
selecting a load rule, and selecting one of a polling rule, a weight rule and a dynamic calculation rule;
and fourthly, when the weight rule is selected, setting a corresponding empirical weight coefficient for each interface address.
Step 6, designing a load rule, wherein the load rule in the load balancing function comprises a polling rule, a weight rule and a dynamic calculation rule, and specifically comprises the following steps:
(1) and (3) polling rules: arranging interface addresses corresponding to each service according to an input sequence; when a service requester requests service, the service requester is sequentially taken out from the interface address arrangement corresponding to the service according to the request sequence and called;
(2) the weight rule is as follows: setting a corresponding weight coefficient for each interface address, when a service requester requests service, obtaining an effective weight coefficient through a calculation rule, and obtaining a maximum effective weight coefficient by combining a plurality of effective weight coefficient set self-adaptive iteration mechanisms, wherein the effective weight coefficient set is beta, beta', and then obtaining the corresponding interface address; in any single poll, the weight rule flow is shown in fig. 4, and includes the following steps:
get service F1N interface addresses;
② the interface address set is
Corresponding set of weighting coefficients as
Setting a weight coefficient sum
The set of valid weight coefficients with an initial value of 0 is
Wherein i is more than or equal to 1 and less than or equal to n, and m is more than or equal to 1
1≤n,S
iFor the address of the i-th interface,
is m at
1An interface address, S
nFor the nth interface address, α
iSetting a weight coefficient for the ith interface address,
is m at
1Set weighting factor, alpha, of individual interface addresses
nFor setting a weight coefficient, beta, for the nth interface address
iIs the effective weight coefficient of the ith interface address,
is m at
1Effective weight coefficient of an interface address, beta
nEffective weight coefficient for nth interface address;
third, when the service request party requests service F1Traversing the interface address set S, sequentially adding the corresponding elements of the set weight coefficient set and the effective weight coefficient set, and if the selected interface address is S in the traversing processiThen its corresponding effective weight coefficient is β'i=αi+βiThe interface address after traversal is corresponding to a valid weight coefficient set of β '═ β'1,β'2,β'3,...,β'n};
Fourthly, obtaining the maximum effective weight coefficient beta 'through an effective weight coefficient set beta'max;
Is beta through'
maxThe value of (b) obtains its corresponding set of maximum effective weight coefficients in β
Wherein m is more than or equal to 1
1<m
2<...<m
n≤n;
L is through beta'
mObtaining effective weight coefficients
And its corresponding interface address
Is obtained by
To interface address
Is given by
Is replaced by
When all the interface address effective weight coefficients are 0, finishing single polling, otherwise waiting for next service request party to request service F1。
(3) Dynamically calculating rules: as shown in FIG. 5, this is accomplished by first serving F
2Setting an initial empirical weight coefficient eta for each interface address; then, the service requester requests service F
2Then using the weight rule to obtain the corresponding interface address; second, when a single poll is complete, service F is acquired
2Historical request information recorded in the log, which includes the smallest request message S within a single poll
minMinimum response message M
minAnd maximum successful response time T
maxAverage request message S corresponding to single interface address
avgAverage response message M
avgTime-consuming average T of complete successful transaction
avgAnd the transaction success rate R and the weight coefficient of the next polling of each interface address are obtained
Where μ is a correction factor (μ e N)
*) (ii) a After that, every time when the single polling is finished, the weight coefficient of the next polling of each interface address is obtained through the history information recorded in the log; finally, when service F
2When the interface address information is changed, the core engine of the application interconnection bus stops the current dynamic calculation rule.
And 7, establishing an industrial manufacturing application interconnection bus platform through an industrial manufacturing application interconnection architecture model, wherein the process comprises the following steps: firstly, message middleware is used for realizing the transmission of messages among multi-source heterogeneous information systems; then abstracting and packaging the message transmission function in the message stream operating environment, realizing the construction of an application interconnection bus core engine, and completing security authentication, format conversion, protocol conversion, path selection, load balancing, flow control and log recording in the message transmission process; secondly, constructing a service management platform for managing an application interconnection bus core engine, and constructing a graphical report for statistical analysis provided by a service monitoring platform; and finally, constructing a service publishing platform and a service shop platform for the third-party system to use.
Step 8, establishing an application interconnection architecture model working process of industrial manufacturing, wherein the working process comprises two stage processes of establishing an industrial manufacturing application interconnection bus platform and establishing service;
(1) the process for establishing the industrial manufacturing application interconnection bus platform comprises the following steps:
selecting a Message flow operating environment, wherein the Message flow operating environment specifically comprises an IBM Integration Bus, an IBM WebSphere Message Broker, an Oracle Service Bus, an Oracle Enterprise Service Bus and a Mule ESB;
completing the development of an application interconnection bus core engine in a message flow running environment, wherein the development specifically comprises a protocol adapter, a message flow template and components for providing security authentication, format conversion, protocol conversion, path selection, load balancing, flow control and diary recording;
developing a service management platform and a service monitoring platform, wherein the functions of the service management platform comprise platform operation and maintenance, authorization management and life cycle management; the functions of the service monitoring platform comprise service transaction statistics, service quantity statistics, service quality analysis, service monitoring, platform monitoring and abnormal alarm;
developing a service release platform and a service shop platform, wherein the functions of the service release platform comprise service registration, service release and service management; the functions of the service store platform comprise a service directory, service subscription and service trial;
fifthly, completing deployment of an industrial manufacturing application interconnection bus platform, wherein the deployment modes comprise public cloud deployment, private cloud deployment, community cloud deployment, hybrid cloud deployment and local deployment, and the deployment modes comprise a traditional mode, a virtualization mode and a container deployment mode;
and sixthly, completing platform configuration on the service management platform, completing service creation, release, viewing and subscription on the service release platform and the service store platform, and finally completing service message transmission through the application interconnection bus core engine.
(2) The service creation includes:
firstly, realizing system registration and protocol adapter configuration in a service management platform;
secondly, logging in the publishing platform, and the system defined in the service management platform realizes the registration, management and publishing of the service through the publishing platform. After the authorization of the service management platform for the approval task to be published passes, the life cycle state of the service is changed into published, and at the moment, the service can be subscribed by other systems;
logging in the service shop platform, issuing the service authorized to pass by the platform, presenting the service in the service shop platform in a catalog form, and checking the service and trying and subscribing the service by the system defined by the service management platform through the service shop platform. After the authorization of the service management platform for the examination and approval task to be subscribed is passed, a system defined by the service management platform can request for the service;
the service requester realizes the service request through the application interconnection bus core engine, and records the transaction behavior of each service through the log component in the application interconnection bus core engine, wherein the service request process is as follows: firstly, a service requester sends a request message to an application interconnection bus core engine, the request message is subjected to format detection, message initialization, security authentication, flow control and path selection to complete the operation processing of the request message, then, a service provider receives the request message after the operation processing and sends a response message to the application interconnection bus core engine, the application interconnection bus core engine converts the response message into a message format required by the service requester through a protocol adapter and sends the message format to the service requester to complete the service request, wherein the operation processing flow of the request message is shown in fig. 6 and specifically comprises the following steps:
a. b, the application interconnection bus core engine obtains a request message Q sent by a service request party and transfers to the step b;
b. carrying out format detection on the request message Q, if the detection is passed, turning to the step c, otherwise, turning to the step g;
c. b, initializing the request message Q, converting the message format of the request message Q into a standard message format, and turning to the step d, wherein the initialized request message is represented as Q';
d. detecting the request message Q' through a safety certification function, if the detection is passed, turning to the step e, otherwise, turning to the step g;
e. detecting the request message Q' through a flow control function, if the detection is passed, turning to f, otherwise, turning to the step g;
f. sending the request message Q' to a corresponding service provider through a path selection function, and ending the process;
g. generating prompt information, sending the prompt information to a requester system, and ending the process;
the service monitoring platform obtains the transaction log data generated in the application interconnection bus core engine, displays the transaction log data in the service management platform, the service release platform and the service shop platform in real time in an analysis report form, and carries out abnormal alarm through mail/short message/WeChat/telephone voice when abnormal transaction occurs in the application interconnection bus core engine.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.