Disclosure of Invention
The invention aims to provide a design method of a routing system of a space measurement and control center based on a knowledge base, and solves the problems that the system stability is poor and the safety of a spacecraft is threatened under the condition that a measurement and control application routing system in a traditional mode is required and has multiple tasks.
The invention adopts the technical scheme that the design method of the aerospace measurement and control center routing system based on the knowledge base comprises the following specific operation steps:
step 1, defining an initial knowledge base according to the existing measurement and control task data, and establishing a basic operation rule of a routing system:
adding knowledge to a knowledge base according to the regulation of the existing measurement and control protocol, and setting the knowledge base which is mastered according to different types of software processes and measurement and control task examples in a one-to-one correspondence manner;
step 2, analyzing the requirement of the newly added measurement and control task, inheriting or updating the existing knowledge base according to the newly added measurement and control task, and adding processing software to adapt to the requirement of the measurement and control task if necessary, thereby obtaining a measurement and control application routing system:
for a common newly added measurement and control task, the state of the measurement and control task completely conforms to the specification of a measurement and control data transmission protocol, and corresponding task routing software is added in the system;
when the newly added measurement and control task needs special processing, the existing knowledge base is expanded or revised, and the knowledge base is firstly verified in the process of expansion and revision, so that the phenomenon that actual processing is inconsistent with expectation due to logic contradiction is avoided;
and 3, after the newly added measurement and control task is on line, performing task joint test, verifying whether the measurement and control routing system meets the requirement of the newly added task or not, not influencing the existing task, and executing the aerospace measurement and control task after verification and success.
Yet another feature of the present invention is that,
the inference algorithm of the knowledge base specifically comprises the following processes:
firstly, defining a reasoning knowledge unit K and a knowledge operator T;
wherein K includes four elements: priority P, condition C, exclusive identification F and message name set R; knowledge operator T: t is(K1,K2,…,Kn)(D)=RR(Ff,Rf) In which K is1,K2,…,KnIs a set of knowledge units, D is data to be processed,RR is a reasoning knowledge result and consists of two parts, namely a flow exclusive result FR and a message name set RS;
then, reading the priority P of all K in all knowledge unit sets in the first step, sequencing, and forming a plurality of knowledge unit subsets with 0 as the top priority;
secondly, sequentially performing condition matching on the current data D to be processed, namely the data needing routing calculation according to the subset of the knowledge units with the highest priority, if the matching is established, abandoning the subset of the subsequent knowledge units, otherwise, continuing the matching, and if all the matching is not established, determining that FR and RS in the RR result are false and RS is an empty set; for a knowledge unit subset, if the first knowledge unit K is successfully matched, the R is merged into the RS, the FR is set as F, if another knowledge unit K is successfully matched, the R is continuously merged into the RS, the value of the FR is the logical AND of the last matched FR and the current rule F, all current knowledge unit subsets are traversed, and finally the RS and the FR form an inference result RR;
the specific process of setting the knowledge base corresponding to the software process and the measurement and control task instance according to different types in the step 1 is as follows:
(1) the method comprises the following steps that (1) measurement and control task data are directly forwarded to corresponding task routing software according to system design without mastering any knowledge under the general condition of the agent software of the measurement station;
(2) the knowledge base mastered by the task routing software needs to fully understand the existing measurement and control data transmission protocol, namely, external data are unconditionally routed to a database system for storage, the measurement and control center sends data to see whether the data are routed to the database according to a storage mark, and routing knowledge needs to be completely described to the task routing software knowledge base;
(3) the special processing software generally does not need a knowledge base, but if the existing process of the multiplex routing system is used, the data message flow of the measurement and control task needs to be increased when the measurement and control task is constructed.
When the newly added measurement and control task needs special processing in the step 2, the specific process of expanding or revising the existing knowledge base is as follows:
if the requirement of the newly added measurement and control task only relates to a new routing rule, generally updating a knowledge base and adding the new routing rule;
if the newly added measurement and control task requirement relates to new processing, the existing measurement and control data needs to be introduced into the existing processing flow by using knowledge of a knowledge base, and after one or one group of software processes are newly added for processing, the newly added task requirement is completely realized according to the principle of fully utilizing the cooperation relation of the existing processes.
The specific content of the task joint test in the step 3 is as follows:
(1) performing function check on the newly added measurement and control task, wherein the function check comprises whether the data which accords with the measurement and control data transmission protocol is correct in routing and whether the data which does not accord with the measurement and control data transmission protocol is correct and specially processed;
(2) if the test station agent software and the special processing software are involved, whether other measurement and control tasks are influenced or not needs to be specially checked or tested, a special diagnosis mechanism is designed in the routing system, the inter-process information and the network information can be monitored in real time, and whether the work of the whole routing system is carried out as expected or not can be determined through the diagnosis information sent by the diagnosis mechanism.
The design method of the aerospace measurement and control center routing system based on the knowledge base has the advantages that the problems that the system stability is poor and the safety of a spacecraft is threatened under the condition that the measurement and control application routing system in the traditional mode is required and has multiple tasks are solved. Compared with the traditional measurement and control application routing system, the system has the following advantages:
1) the routing system based on the knowledge base applied to the aerospace measurement and control center designed by the method supports the routing and processing of measurement and control data under the conditions of multiple measurement stations, multiple tasks and complex requirements, and reduces the design complexity of other software subsystems of the measurement and control center;
2) the method of the invention designs a set of knowledge base description language and operation guidance, which can adapt to the coexistence demand, for example, the demand that the data is routed to both the database subsystem and the equipment monitoring system, and can also adapt to the exclusivity demand;
3) the aerospace measurement and control center application routing system based on the knowledge base, which is designed by the method, is provided with the routing system process diagnosis interface, and when the routing system performs measurement and control task joint test, the diagnosis interface and the analysis tool thereof can effectively diagnose whether the current routing system operates as expected or not, and can find out the problem occurrence point as soon as possible when the current routing system does not operate as expected.
4) The aerospace measurement and control center application routing system based on the knowledge base designed by the method can meet the requirements of data routing and processing of the existing measurement and control tasks, has expandability, and can adapt to the requirements of subsequent measurement and control tasks by adding routing knowledge and special processing software.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
The core key of the invention is that a set of independent operating application-level routing system of the aerospace measurement and control center is established in the measurement and control center, a set of reasoning algorithm model based on a knowledge base is designed, and the system develops measurement and control data routing and processing under the guidance of the reasoning algorithm model. The system can be operated on a plurality of groups of main and standby servers, each server is composed of a plurality of software processes which run cooperatively, the measurement and control data routing and processing requirements of each spacecraft task are supported, the hardware environment of the whole system is shown in figure 3, and the software structure is shown in figure 4. The software processes that run in coordination are generally divided into three categories: the method comprises the steps that firstly, survey station agent software is in charge of measurement and control data protocol conversion facing a survey station, a survey ship, a transmission center or international networking, and a software process is required to be newly configured according to a network communication protocol and parameters when the direction of the survey station is newly added; task routing software is responsible for data routing of a specific aerospace measurement and control task, and when the measurement and control task is newly added, a software process needs to be newly configured according to the measurement and control data routing requirement; and thirdly, special processing software is responsible for miscellaneous functions such as data processing, format conversion, time release and the like, and the software is only added when the function of the application routing system is expanded. And the three types of software call a knowledge reasoning algorithm library, construct message circulation among the measurement and control data processes according to the routing calculation result, and cooperatively complete the space measurement and control task. The design reduces the workload of the development and maintenance of the measurement and control routing system software, shortens the task preparation time and improves the reliability of the system.
The invention relates to a design method of a aerospace measurement and control center routing system based on a knowledge base, which comprises the following specific operation steps:
step 1, defining an initial knowledge base according to the existing measurement and control task data, and establishing a basic operation rule of a routing system:
adding knowledge to a knowledge base according to the regulation of the existing measurement and control protocol, and setting the knowledge base which is mastered according to different types of software processes and measurement and control task examples in a one-to-one correspondence manner;
the specific process of setting the knowledge base corresponding to the software process and the measurement and control task instance according to different types in the step 1 is as follows:
(1) the method comprises the following steps that (1) measurement and control task data are directly forwarded to corresponding task routing software according to system design without mastering any knowledge under the general condition of the agent software of the measurement station;
(2) the knowledge base mastered by the task routing software needs to fully understand the existing measurement and control data transmission protocol, namely, external data are unconditionally routed to a database system for storage, the measurement and control center sends data to see whether the data are routed to the database according to a storage mark, and routing knowledge needs to be completely described to the task routing software knowledge base;
(3) the special processing software generally does not need a knowledge base, but if the existing process of the multiplexing routing system is used, the measurement and control data message flow needs to be increased when the measurement and control data message flow is constructed.
Step 2, analyzing the requirement of the newly added measurement and control task, inheriting or updating the existing knowledge base according to the newly added measurement and control task, and adding processing software to adapt to the requirement of the measurement and control task if necessary, thereby obtaining a measurement and control application routing system:
for a common newly added measurement and control task, the state of the measurement and control task completely conforms to the specification of a measurement and control data transmission protocol, and corresponding task routing software is added in the system;
when the newly added measurement and control task needs special processing, the existing knowledge base is expanded or revised, and the knowledge base is firstly verified in the process of expansion and revision, so that the phenomenon that actual processing is inconsistent with expectation due to logic contradiction is avoided;
when the newly added measurement and control task needs special processing in the step 2, the specific process of expanding or revising the existing knowledge base is as follows:
if the requirement of the newly added measurement and control task only relates to a new routing rule, generally updating a knowledge base and adding the new routing rule;
if the newly added measurement and control task requirement relates to new processing, the existing measurement and control data needs to be introduced into the existing processing flow by using knowledge of a knowledge base, and after one or one group of software processes are newly added for processing, the newly added task requirement is completely realized according to the principle of fully utilizing the cooperation relation of the existing processes.
And 3, after the newly added measurement and control task is on line, performing task joint test, verifying whether the measurement and control routing system meets the requirement of the newly added task or not, not influencing the existing task, and executing the aerospace measurement and control task after verification and success.
The specific content of the task joint test in the step 3 is as follows:
(1) performing function check on the newly added measurement and control task, wherein the function check comprises whether the data which accords with the measurement and control data transmission protocol is correct in routing and whether the data which does not accord with the measurement and control data transmission protocol is correct and specially processed;
(2) if the test station agent software and the special processing software are involved, whether other measurement and control tasks are influenced or not needs to be specially checked or tested, a special diagnosis mechanism is designed in the routing system, the inter-process information and the network information can be monitored in real time, and whether the work of the whole routing system is carried out as expected or not can be determined through the diagnosis information sent by the diagnosis mechanism.
Each process of the routing system can be provided with different knowledge bases, each knowledge base is composed of basic reasoning knowledge units, and the reasoning algorithm of the knowledge base comprises the following specific processes:
firstly, defining a reasoning knowledge unit K and a knowledge operator T;
k is composed of four elements, i.e., priority P (P is an integer greater than or equal to 0, and the smaller the number, the higher the priority), condition C (a group of labels is defined according to the measurement and control data transmission protocol, as shown in fig. 1, used for determining whether the current measurement and control data to be processed conforms to the current inference knowledge unit), exclusive flag F (whether the current knowledge unit subverts the existing processing logic of the current process), message name set R (message name string set, which may be an empty set, communication between system processes adopts subscription distribution, a specific message name is subscribed by a specific process, and the message name determines the routing of data between processes);
knowledge operator T: t is(K1,K2,…,Kn)(D) RR (FR, RS), where K1,K2,…,KnThe method is a set formed by knowledge units, D is data to be processed, RR is a reasoning knowledge result and is formed by two parts, namely a flow exclusive result FR (Boolean variable) and a message name set RS (character string set).
Then, reading the priority P of all K in all knowledge unit sets in the first step, sequencing, and forming a plurality of knowledge unit subsets with 0 as the top priority;
secondly, sequentially performing condition matching on the current data D to be processed, namely the data needing routing calculation according to the subset of the knowledge units with the highest priority, if the matching is established, abandoning the subset of the subsequent knowledge units, otherwise, continuing the matching, and if all the matching is not established, determining that FR and RS in the RR result are false and RS is an empty set; for a knowledge unit subset, if the first knowledge unit K is successfully matched, R is merged into RS, FR is set as F, if another K is successfully matched, R is continuously merged into RS, the value of FR is the logical AND of the last matched FR and the current rule F, all current knowledge unit subsets are traversed, and finally RS and FR form an inference result RR.
Table 1 conditional tag list
Name of label
|
Type (B)
|
Of significance
|
SRC
|
16 system integer
|
Data source address equal to description value is eligible
|
EXSRC
|
16 system integer
|
The condition being satisfied if the data source address is not equal to the description value
|
DST
|
16 system integer
|
Data destination address equal to description value is eligible
|
EXDST
|
16 system integer
|
The condition being satisfied if the destination address of the data is not equal to the description value
|
MID
|
16 system integer
|
Data task ID equal to description value qualifies
|
EXMID
|
16 inSystem of integers
|
Data task ID is not equal to the description value and the condition is satisfied
|
BID
|
16 system integer
|
Data type identification equal to description value is eligible
|
EXBID
|
16 system integer
|
The data type identification is not equal to the description value and is satisfied
|
ENC
|
Encryption and decryption identification
|
The condition that the encryption/decryption flag is equal to the description value is satisfied
|
SAVE
|
Storage identity
|
Storage flag equal to description value qualifies
|
SIM
|
Simulation mark
|
The simulation flag equal to the description value meets the condition |
The method of the invention has the following advantages: a set of knowledge base description language and operation guidance is designed. The knowledge base description language uses XML format, its elements are composed of priority, condition, exclusive mark and result information name set, it can adapt to coexistence demand, such as the demand that data is routed to both the database subsystem and the equipment monitoring system, it can also adapt to exclusive demand, such as data is only routed to the encryption and decryption system according to certain characteristic, other routing rules are not effective, the design improves the flexibility of routing knowledge, it can meet various demands of measurement and control task data routing.
The aerospace measurement and control center routing system based on the knowledge base, as shown in fig. 3, comprises a center server side and a client side on system hardware. The system is located on a central backbone communication network so as to be capable of processing data exchange and processing tasks between the measuring station and the center and inside the center, and the server runs in a double-machine mode and backups each other, and the operation of the system can be carried out through a client PC.
As shown in FIG. 4, the software of the system runs in a C/S (client-server) mode, and also comprises a central server side and a client side. The software of the central server is a server, which is oriented to all the devices and subsystems inside and outside the center, the server adopts a multi-process coordination working mode, the processes adopt subscription and distribution type message communication, each process calls a knowledge base to realize a dynamic base, and a knowledge base algorithm model is described below.
The aerospace measurement and control center application routing system based on the knowledge base has the following advantages: and the routing and processing of measurement and control data under the conditions of multiple measurement stations, multiple tasks and complex requirements are supported. The testing station agent software shields the difference of the testing stations, the launching field, the measuring ship and the measurement and control data transmission protocol of the international union website, lays a foundation for the unified processing of the measurement and control center and reduces the design complexity of other software subsystems of the measurement and control center; the knowledge base design of the task routing software avoids repeatedly modifying the software due to task requirements, converts the circulation planning of technical personnel on task measurement and control data into a rule for identifying the calculation software, reduces the workload of development and maintenance of the measurement and control routing system software, reduces the task preparation time and improves the reliability of the system; the special processing software can perform more complex processing, for example, the large code stream rocket data is received in real time and the trajectory is calculated, so that the impact of the large code stream rocket data on a central network caused by rear-end processing is avoided, the process interfaces are disclosed and can be developed by different professional software personnel, and the measurement and control data needing to be processed by a routing system at the first time after analysis are all completed by the software; the designed routing system comprises a routing system process diagnosis interface, when the routing system carries out measurement and control task joint test, the diagnosis interface and an analysis tool thereof can effectively diagnose whether the current routing system operates as expected or not, and can find out the occurrence point of a problem as soon as possible when the current routing system does not operate as expected.
The specific embodiment is as follows:
the implementation key points of each step are given by taking a simplified and typical measurement and control task as an example as follows:
step 1 initial knowledge base establishment
In general, the routing process of the measurement and control data is processed by a conventional routing system (abbreviated as: DODS), and the basic requirements of the measurement and control data transmission protocol are fulfilled, and the protocol related to the routing is shown in table 2 below:
table 2 conventional routing list
When the encryption and decryption field in the measurement and control data transmission protocol field is a mark needing encryption or decryption, the data is unconditionally forwarded to an encryption and decryption system without other routing or processing, and the requirement is a high-priority requirement; if the data has the storage identification, the data is routed to a database system for archiving; if the data is the external data (assuming that the external data type identification number is 0x01234567), the data is forwarded to the track system for real-time receiving and processing, and preparation is made for track determination.
The above requirements are conventional requirements, and are simplification of a typical measurement and control task, the following knowledge base needs to be configured for corresponding task routing software:
obviously, the knowledge base is composed of 3 reasoning knowledge units, description is carried out when the routing system is on line for the first time, the knowledge base is a knowledge base which most space measurement and control tasks need to obey, when the measurement and control tasks are newly added, software processes of the tasks are added, and the description is configured to the newly added task routing software processes;
step 2. expansion of task knowledge base and special processing expansion
For example, if the station direction of Weinan1 has a special data type of 0x11112222, which is not in accordance with the measurement and control data transmission protocol, but the measurement and control center real-time data processing subsystem is required to process to monitor the task state, a description of a relevant reasoning knowledge unit is required to be specially added to the station-measuring agent process of Weinan1.
File name: DODS _ SR _ Weinan1.XML \ \ knowledge base is a description of the Weinan1 orientation
<Knowledge>
< BID >0x11112222</BID > \ \ data type;
<Priority>2</Priority>
< Default > false </Default > \ \ reasoning result is exclusive, no longer send task routing software to process
< MSG > RDTSRelay \ \ generating real-time data subsystem routing messages
</Knowledge>
After the reasoning knowledge unit takes effect, an RDTSRelay message is generated after the 0x11112222 data is received, and the RDTSRelay message contains the 0x11112222 data, so that the RDTSRelay message is routed to the central real-time data processing subsystem.
Assuming the task, the rocket telemetry raw data 0x66666666 is large code stream data which is not suitable for being directly routed into the measurement and control center to be processed, so that impact on a central network is avoided, the rocket telemetry raw data is also not suitable for being processed on the same server of a conventional routing system (DODS for short), so that influence on the routing of the conventional measurement and control data by processing overhead is avoided, a routing system needs to be established on another group of main and standby servers (RSRT for short), and rocket telemetry raw data processing software is newly added through proper knowledge base description, so that the measurement and control requirement is completed.
This is accomplished in two main steps, rejecting such data in the DODS on-site agent rules, still taking Weinan1 as an example, adding the following knowledge elements to the document RSRT _ SR _ Weinan1. XML:
<Knowledge>
< BID >0x 6666666666 </BID > \ \ data type;
<Priority>2</Priority>
< Default > false </Default > \ \ reasoning result is exclusive, no longer send task routing software to process
</Knowledge>
Such knowledge describes the direct discarding of this type of data after receipt, ensuring that the conventional routing system is not affected.
In the RSRT system, the knowledge base of the weinan1 orientation is set as follows:
file name: RSRT _ SR _ Weinan1.XML
<Knowledge>
< EXBID >0x 6666666666 </EXBID > \ \ data type condition is non-0 x 66666666;
<Priority>2</Priority>
< Default > false </Default > \ \ reasoning result is exclusive, no longer send task routing software to process
</Knowledge>
Such knowledge description will ensure that RSRT processes only 0x 6666666666 data, similar to encryption and decryption processing in task routing processing software, such measurement and control data is exported as other messages, processed by a special processing process, and then routed to the central real-time processing subsystem.
File name: the RSRT _ MR _0x1234.XML \ \ knowledge base file is a description for task 0x1234
<Knowledge>
<BID>0x66666666</BID>
<Priority>1</Priority>
<Default>false</Default>
<MSG>RocketRelay</MGS>
</Knowledge>
When the system receives the rocket telemetry original data, a message RocktElay is generated and is routed to a special process for processing the rocket telemetry original data, and after the processing is completed, the routing is generated and is routed to a central real-time data processing subsystem, so that the requirement of a measurement and control task is met, in the process, special processing is added, and the cooperative characteristic of the existing process is fully utilized.
Table 3 comparison of two routing system design modes
Step 3, central joint examination and verification
In the link of central joint examination and verification, the working states of DODS and RSRT are examined, and mainly, whether various data meeting the conditions of the inference knowledge unit generate related messages according to a set design or not is judged, the generated message name set is not more, the default generated messages in the action range of the exclusive identification are forbidden, and the routing messages which are generated according to the description of the knowledge base. Such checks can be done quickly, one by one, using routing system process diagnostic features.
The invention is applied to a measurement and control center of a Saian satellite, the measurement and control center develops a front-end system according to a scheme, a special front-end communication server, a front-end rocket original remote measurement processing server and a front-end satellite remote pretreatment server are deployed on a task network, and a client is deployed in a central monitoring machine room. Taking the existing center state as an example, the aerospace measurement and control center application routing system is responsible for routine measurement and control data routing, rocket original remote measurement data processing, satellite remote preprocessing and data which do not conform to a measurement and control data transmission protocol to be routed and distributed according to special requirements. The requirements form space flight measurement and control tasks including manned space flight, lunar exploration engineering, Beidou and all space flight measurement and control tasks executed by the measurement and control center of the Western-style safety satellite, and the tasks are smoothly completed under the powerful support of a front-end system. Compared with the traditional routing system applied to the aerospace measurement and control center, the routing system applied to the aerospace measurement and control center has the following improvements as shown in table 3:
from table 3, it can be seen that: the problems of system expandability and stability in the design aspect of the space mission measurement and control data path system optimize the measurement and control data circulation and processing in the space mission, and lay an important foundation for the early measurement and control of the space mission and the smooth operation of a long pipe.