METHOD FOR COMPUTER-AID OPERATION OF A STORAGE UNIT AND EXECUTION OF APPLICATION PROGRAMS WITH STORAGE CHECKING FOR STORAGE ERRORS
Patent Information
- Application Number
- DE502022001597
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-04-22
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2042-04-22
AI Technical Summary
Existing methods for ensuring data integrity in safety-critical systems, such as railway applications, are inadequate in detecting memory errors and maintaining operational safety, as they require significant hardware resources and do not reliably prevent undetected changes to data.
A method where data is encoded with count data that characterizes test runs, allowing for error detection by checking if the count data identifies the current or most recent test run, ensuring that only error-free data is processed, and using cyclic checks to detect 'sleeping' errors, thereby enhancing safety levels (SEL-1 to SIL-4).
This approach significantly improves the reliability of memory error detection and operational safety by ensuring that only error-free data is used, even in the presence of undetected changes, thereby maintaining higher safety standards with reduced computational effort.
Description
[0001] The invention relates to a method for the computer-aided operation of a storage unit, in which data is stored in the storage unit and encoded before storage, data is retrieved from the storage unit, and after retrieval, the data is decoded, wherein the storage unit is monitored for errors by performing a chronological sequence of computer-aided test runs for the storage unit. Furthermore, the invention relates to a method for the computer-aided execution of an application program, in which a storage unit is operated in the manner described above and in which application data records required for execution are retrieved from the storage unit and decoded. Finally, the invention relates to a computer program product and a device for providing this computer program product, wherein the computer program product is equipped with program instructions for carrying out this method.
[0002] Fundamentally, safety-relevant systems that run computer-supported in a safety-relevant computing environment must guarantee that no errors occur when retrieving data from a storage unit. Corrupt data may not be used for data processing. For the purposes of this invention, safety-relevant is understood to mean relevance to the operational reliability of the system (also referred to as safety). For example, railway applications are considered safety-relevant systems in the aforementioned sense of the term.
[0003] To secure security-relevant computing environments, it is well known that only those components needed to process the respective application are reliably installed on a computer in multiple computing instances. If the application then runs in parallel on multiple computing instances, a voting process can be used in a conventional manner to determine whether errors occur during the calculation, which can also reveal memory errors.
[0004] According to WO 2014 / 00924382, a method and a computer are described, each of which has a test algorithm for processing applications in the computing environment created by the computer. Application programs are installed on the computer and executed redundantly, so that the test algorithm has the ability to detect errors by comparing the calculation results (also called voting, as mentioned above). However, this method involves significant hardware complexity and, moreover, does not allow for reliable error detection under certain configurations.
[0005] DE 10 2007 040721 further describes a data processing arrangement with a memory, which has a plurality of memory elements, each for storing a data word. Each memory element of the plurality of memory elements is assigned a piece of signature information based on address information assigned to the memory element. A code word is assigned to a data word by representing the data word and the signature information as numerical values, and the code word is formed from the data word and the signature information by a computational operation.
[0006] The object of the invention is to provide a method for the computer-assisted operation of a memory unit and a method for the computer-assisted execution of an application program using such a memory unit, with which the reliability of a memory check for memory errors can be improved. Furthermore, the object of the invention is to provide a computer program product and a device for providing this computer program product, with which the aforementioned method can be carried out.
[0007] This object is achieved according to the invention with the subject matter of the claim specified at the outset (method for the computer-aided operation of a storage unit) in that for the first coding of the data at least one application data record is generated or selected, containing data sections with application data for an application program and test data sections, for each application data record, the test data section is assigned count data (ZD) that identifies the test run being executed, each application data record is coded and stored, and in order to check the data in the test run being executed, after retrieving and decoding the application data records, an error is detected for each application data record if the count data (ZD) neither identifies the test run being executed nor the most recently completed test run, the test data section of the application data section in question is assigned count data (ZD) that identifies the test run being executed if no error was detected,the application data record in question is re-encoded and stored if no error is detected.
[0008] By assigning a test data section to each of the data sections during initial encoding (which was previously created if no test data section existed, or selected if a test data section was already available for the data section in question), counting data can be stored in the relevant data record containing information about the test run currently being executed. By subsequently encoding the relevant data record, the counting data as well as the other data in the relevant data section are protected from access until decoding. In its encoded state, the data cannot be changed accidentally (for example, due to a malfunction) or intentionally (for example, due to an external attack) without a change being recognized as an error when the data is decode.At the very least, it becomes extremely unlikely that the change will not be detected as an error when the data set is decoded. Therefore, there is no protection against changes per se, only against undetected changes. The cyclical checking of the memory contents for correct coding (using the count data) also detects so-called dormant errors. These refer to errors that can occur during data storage, for example, due to physical changes to the storage medium (bit flips, etc.). The low probability of not detecting errors makes compliance with higher safety levels (SEL-1 ... SIL-4) possible according to the invention.
[0009] Preferably, all data required by the application program is protected in the data set, i.e. both the data that constitutes the program itself and the data that represents information to be processed.
[0010] For example, it is possible that the count data is changed due to memory errors, i.e. errors that occur when the data is stored on a storage unit (e.g. so-called bit tilts), or due to processing errors, i.e. errors that occur when the data record is processed. Such a change is then detected during the next test run, if the count data neither characterises the test run currently being carried out nor the most recently completed test run. In such a case, an error is detected. Even if its cause cannot be clearly determined and might not be harmful for data processing, in order to achieve the level of security to be achieved, the error is output after it has been detected and / or measures are taken to prevent further processing of the incorrect data.
[0011] Only if no errors are detected are the count data in the test data section populated with the count data from the test run currently being performed, the data record is coded, and stored again. This simultaneously marks the respective data record as having been tested in the respective test run (a possibility for populating data records with the current count data in the test data section even outside of a test run will be explained later).
[0012] Counting data must have the property of forming a series in which the predecessor and successor of each element of the counting data set are known. In principle, any mathematical series can be used for this purpose. The set of natural numbers is particularly preferred.
[0013] To perform the test run, an application program (utility program) is preferably used. For this purpose, the application program in question, which can also be referred to as a test program, accesses the storage unit, decodes, checks and encodes data record after data record until a test run has been completed. If an error is detected, it can be output by the test program. The test program can also contain functions that react to a detected error, for example, suspending an application program (utility program) that uses the faulty data sections of the application (referred to as application data sections) and could therefore potentially make safety-relevant errors. This makes various error sources visible.
[0014] The execution of the test run can be controlled, for example, by addressing the individual data records. If the addresses of all data records are known at the beginning of the test run, the data records can be accessed sequentially until the test run is completed (more on this below).
[0015] If a test run is carried out incorrectly as a whole, in the sense that it does not check all of the data records of a test run, this will be noticed during the next test run at the latest, provided that the non-checked data records are checked again in the following test run. These records will then still contain the count data from the second-to-last test run, which will be noticed during the subsequent test run. This will identify and report an error. The count data therefore also enables monitoring of the proper execution of the test runs themselves. This makes another source of error visible. Data that is classified as outdated and therefore potentially erroneous (because it is not regularly checked in a test run) is not sufficiently secure in terms of its integrity, which is why this is considered an error.
[0016] This creates a security mechanism that increases the operation of the storage unit and the execution of application programs (these are service programs or user programs, more on this below) in accordance with the specified task. This increase particularly benefits safety-relevant applications, such as railway applications, which must meet certain safety levels (also called safety levels, SIL-1 ... SIL-4 or Safety Integrity Level) as a prerequisite for approval. The term "safety" in the context of this invention is to be understood in the sense of operational safety. In particular, coding is carried out primarily according to operational safety aspects and not according to transmission security aspects.According to the invention, therefore, a coding method is preferably provided which achieves high performance in coding and decoding (with the effect of short coding and decoding times) and does not guarantee a high degree of difficulty in decrypting a code without authorization.
[0017] In general, the method according to the invention for operating the memory unit and for executing application programs can be used to determine which data records are actually or at least potentially corrupt and therefore jeopardize operational reliability during the execution of the application programs, in particular the utility programs, by checking the data section containing data for the application programs and the test data section containing additional criteria that facilitate verification. The affected data records are flagged by outputting an error and are preferably excluded from further data processing.
[0018] In other words, according to the invention, operational reliability is linked, so to speak, to the data records themselves. For this purpose, these records are provided with suitable test data sections. This advantageously enables the data records to be stored on one and the same storage unit, even if processes run in parallel (redundantly) for reasons of operational reliability. In particular, commercially available software and hardware components, so-called COTS components (COTS stands for commercial off-the-shelf), can be used to store the data records and to execute the application programs without jeopardizing the operational reliability requirements. Such components can therefore also be used, for example, in railway technology applications and replace proprietary systems.The advantage of COTS components is that they are inexpensive to purchase and can also be more easily replaced and integrated into cloud solutions if necessary.
[0019] In the context of the invention, "computer-aided" or "computer-implemented" can be understood as an implementation of the method in which at least one computer or processor carries out at least one method step of the method.
[0020] In the context of the invention, a "computing environment" can be understood as an infrastructure consisting of components such as computers, storage units, programs, and data to be processed with the programs, which are used to execute at least one application that has to perform a task. The infrastructure can, in particular, also consist of a network of the aforementioned components.
[0021] A "computing instance" (or instance for short) can be understood as a functional unit within a computing environment that can be assigned to and execute an application. This functional unit forms a physically and / or virtually self-contained system when the application is executed.
[0022] The term "computer" or "computer" covers all electronic devices with data processing capabilities. Computers can include, for example, personal computers, servers, handheld computers, mobile devices, and other communication devices that process data in a computerized manner, as well as processors and other electronic devices for data processing, which can preferably be connected to a network via interfaces.
[0023] In the context of the invention, a "processor" can be understood as, for example, a converter, a sensor for generating measurement signals, or an electronic circuit. A processor can be, in particular, a central processing unit (CPU), a microprocessor, a microcontroller, or a digital signal processor, possibly in combination with a memory unit for storing program instructions and data. A processor can also be understood as a virtualized processor or a soft CPU.
[0024] In the context of the invention, a "storage unit" can be understood as meaning, for example, a computer-readable memory in the form of a random-access memory (RAM) or data storage device (hard disk or data carrier).
[0025] "Interfaces" can be implemented in hardware, for example, via a wired or wireless connection, and / or in software, for example, as interaction between individual program modules or program parts of one or more computer programs.
[0026] The term "cloud" refers to an environment for cloud computing (also known as a computer cloud or data cloud). This refers to an IT infrastructure made available via interfaces of a network such as the internet. It typically includes storage space, computing power, or software as a service, without requiring these to be installed on the local computer using the cloud. The services offered within the framework of cloud computing encompass the entire spectrum of information technology and include, among other things, infrastructure, platforms, and software.
[0027] "Program modules" are understood to mean individual functional units that enable a program sequence of method steps according to the invention. These functional units can be implemented in a single computer program or in several communicating computer programs. The interfaces implemented in this way can be implemented in software within a single processor or in hardware if multiple processors are used.
[0028] Unless otherwise stated in the following description, the terms "create," "determine," "calculate," "generate," "configure," "modify," and the like preferably refer to processes that create and / or modify data and / or convert the data into other data. The data is present, in particular, as physical quantities, for example, as electrical impulses or analog electrical quantities. The required instructions are summarized in a computer program as software. Furthermore, the terms "send," "receive," "read in," "read out," "transmit," and the like refer to the interaction of individual hardware components and / or software components via interfaces.
[0029] According to one embodiment of the invention, it is provided that a starting value for the counting data is determined before a test run is carried out for the first time.
[0030] The starting value must be an element of the number sequence used. This is especially important when using natural numbers as counting data. It is advantageous to use a number other than one and, especially when using multiple storage units, to use different starting values, as this further reduces the probability of random coincidences between incorrect counting data from different storage units. This further increases process reliability by further reducing the probability of undetected memory errors or processing errors.
[0031] According to one embodiment of the invention, it is provided that the test runs each include at least the testing of all application data sets available for the current method at the beginning of the test run.
[0032] With this method design, the data records to be checked are determined at the beginning of the test run. The determined number of data records to be checked is then checked. Once all data records to be checked have been checked, the test run is completed. The count data can then be assigned the subsequent count element. By defining the scope of a test run and then executing it, the testing process can be carried out reliably and with minimal computational effort.
[0033] Alternatively, it would be possible to use a single test run to specifically check only those records that were modified during the previous test run. However, this would involve monitoring the records for usage or changes, which would complicate the process. Furthermore, memory errors such as bit flips can also occur while the stored data is not being accessed. Modifying records will be discussed in more detail below.
[0034] In principle, it is possible to perform a check run when all the data records to be checked are not currently required (accessed and / or modified) by application programs. However, it is also possible to perform the check run in parallel with running application programs, i.e., while the application programs are accessing all the data records being checked. In this case, data records that are currently being processed cannot be checked (more on this below).
[0035] According to one embodiment of the invention, it is provided that as soon as a test run has been completed, the counting data is assigned a counting element that follows the counting element for the previous assignment of the counting data.
[0036] A test run is completed when all application data records included in the test run have been checked. This means that during the test run, monitoring takes place to determine which application data records have already been checked and which have not. This can be achieved, for example, using the addresses of the application data records, which can be used to identify the application data records.
[0037] Once a test run is complete and the count data provided to the application program for testing has been assigned the next count element, the application program can retrieve the updated count data in the next test run. When checking the stored data records, it is then possible to check whether the data records contain the count data from the previous test run, because the application program "knows" the count element of the current test run due to the previous increment of the count data. Since the count data is set to the current count element for each tested data record (at least if no errors were detected), the test runs can be repeated as often as required using this procedure.
[0038] The stated object is alternatively achieved with the subject matter of the claim specified at the outset (method for computer-aided execution of an application program) according to the invention in that for the computer-aided execution of an application program, in which a memory unit is operated as explained above and in which application data records required for the execution are retrieved from the memory unit and decoded, after decoding the application data records, the application program is executed, at least application data records that contain data sections modified or generated by executing the application program are encoded and stored in the memory unit.
[0039] The application program can preferably be executed step by step. This means that the application data records required for executing the application program need only be retrieved from the memory unit and encoded for the upcoming step of the application program. Naturally, as the application program is executed, the entire set of application data records required for executing the application program is retrieved and decoded step by step.
[0040] In other words, because the storage unit is operated as described above according to the method for computer-aided operation of the storage unit, application data records that contain data sections modified or generated by the execution of the application program (useful program) are also assigned, during coding, the count data that characterizes the current test run being carried out.
[0041] This has several advantages. If new data records are created or modified (i.e., data in an existing data record, especially the data sections containing application data, is changed), these are stored with count data suitable for verifying the corresponding data records at least in the next test run. If the stored data records are error-free, they are also provided with the appropriate count data in the next test run, so that they can be recognized as error-free.
[0042] This embodiment of the invention also has the advantage that data records that are not currently available for testing during a test run running parallel to data processing by application programs can be skipped by the test run, since these records are assigned current numeric data when processed by an application program, in particular by a utility program, which enables testing in the subsequent test run, even if a test (e.g., by a test program) is skipped in the current test run due to parallel processing by the application program (utility program or utility program). This significantly simplifies the test run, in particular, since the test run can simply skip data records that are currently being processed when executing the test routine, and a test does not have to be performed later in the current test run.From a security point of view, this can be justified because the integrity of the data, taking into account the counting data, can also be carried out by the application program (user program) (or in the foreseeable future in the next test run) and thus the data set in question is kept up to date.
[0043] According to one embodiment of the invention, it is provided that when checking the data after decoding the application data records and before executing the application program, an error is detected for an application data record if the count data does not identify either the test run currently being executed or the most recently completed test run, the application program is executed if no error has been detected.
[0044] In this embodiment of the invention, the advantages achieved by regularly checking the data in the storage unit using test runs are also achieved each time the data is processed by an application program (utility program). In other words, each time data is retrieved from the storage unit for processing, a check is performed to determine whether a memory error has occurred in the meantime. This provides additional security, as memory errors that have occurred randomly in data records between the last successful test run and the retrieval of the data record by an application program (in particular, a utility program) can also be detected.
[0045] According to one embodiment of the invention, it is provided that during computer-aided operation of the storage unit for the initial coding of the data, in addition at least one group of application data sets containing data sections with identical application data for an application program and test data sections each with different diversity characteristics is generated or selected from a pool of possible diversity characteristics, each application data set is coded and stored, and the data is retrieved by retrieving and decoding the application data sets, and the data is stored by encoding and storing the application data sets, and / or that during computer-aided execution, the application program is executed multiple times in redundant computing instances, wherein, to execute required application data sets, each application data set of a coded group of application data sets is retrieved from the storage unit and decoded,wherein, for checking the data after decoding the application data sets, an error is detected for each application data set if the diversity characteristics in the application data set deviate from all possible diversity characteristics of this computing instance from the store, ie from the store provided for this computing instance, the application program is executed with the data sections of each application data set of the relevant group if no error was detected, and / or at least application data sets that contain data sections modified or generated by executing the application program are encoded in the manner described above and stored in the storage unit.
[0046] As described below, this embodiment of the invention is an additional safety mechanism that further increases the operation of the memory unit and the execution of application programs in accordance with the specified task. Safety-relevant applications in particular, such as railway applications, benefit advantageously from this increase, as already explained. Only one of the errors described in the context of this invention needs to occur to trigger the output of an error. Regardless of which of the inventive measures is used to detect the error, the safety during execution of the application programs (utility programs) is thus increased. As already mentioned, the term safety is to be understood in the sense of operational safety.
[0047] Creating groups of application data records, each containing data sections with identical application data, has the advantage that arithmetic operations—i.e., the processing of application programs that use identical application data—can be performed redundantly. Should an error be identified in one of the application data records, the affected application data record can be excluded from processing without immediately interrupting the process flow. This is because additional application data records are available for executing the process, i.e., processing the relevant application program.
[0048] The diversity characteristics make application data records, each with identical application data, distinguishable from one another and enable precise assignment, for example, to a computing instance designated for the respective application data. This also makes it possible to check whether an error (referred to as an assignment error) has occurred in the assignment of application data records to specific computing instances. Such an identified error can also trigger appropriate reactions in the process flow. For example, the incorrect assignment of application data records can lead to the relevant computing instances being excluded from executing the process. Even in this case, the remaining computing instances can continue to operate the process, which means that the process is not immediately interrupted.
[0049] If multiple application data sets are required for an application program (and this is usually the case), each group of application data sets can be assigned the same diversity characteristics. These are selected from a pool of diversity characteristics. This allows the application data sets to be assigned to a specific computing instance with a specific diversity (in other words, to a computing instance to which diversity characteristics of a specific type are assigned from the pool). This already significantly increases operational reliability and, due to the limited pool of diversity characteristics, can be implemented with minimal computational effort.
[0050] When data is referred to in general in the context of this application, it can have any content. In contrast, application data, diversity characteristics, redundancy data, counting data, etc. are understood to be specific, i.e., purpose-bound data. Furthermore, a distinction is made between Variable data: this data is assigned or changed depending on the runtime (especially application data) Static data: program data (especially application data describing application programs).
[0051] The data section containing application data (referred to as the application data section for short) can be executed (static data as instructions for the application program execution) or processed (variable data to be processed by the application program). A check data section, which preferably contains the diversity characteristics and / or redundancy data and / or count data, is preferably used for processing by utility programs that run to verify the integrity of the data (more on this below).
[0052] Storing application data records in coded form advantageously increases the probability of identifying data errors during processing (processing errors) or storage (storage errors). Even a single bit shift, for example, during data storage, would lead to a different result during decoding, resulting in the coded application data record being significantly different from the application data record to be coded. If such an error is detected, the aforementioned measures are implemented to ensure the process's required operational reliability.
[0053] The use of diversity characteristics to identify errors during the processing of application data records by an application program has already been explained in more detail above. For the purpose of processing, the application data records are decoded and then re-encoded before being stored in the storage unit. Furthermore, it is possible that application data records are modified by executing the application program, or that application data records are created with newly generated data sections. These are then encoded using the storage method described above and stored in the storage unit.
[0054] When checking the diversity metrics, a check is performed at least to determine whether the identified diversity metrics of an application data set deviate from all possible (i.e., possible for the respective computing instance) diversity metrics in the pool. If this occurs, an error is detected; if these correspond to the expected diversity metrics, it is assumed that no error exists. Preferably, only one type of diversity metric is permitted for a computing instance. However, it is also possible to reserve computing instances in different areas for different diversity metrics in order to better utilize the computing instances (more on this below).
[0055] When checking the data, for example, it can be checked whether the diversity metrics in the application data set deviate from all possible diversity metrics from the repository, if it is fundamentally possible for all diversity metrics from the repository to be used for a specific computing instance. However, it is also possible that certain diversity metrics from the repository are reserved for a specific computing instance. In this case, only whether the diversity metrics deviate from these reserved diversity metrics of the computing instance is checked. This advantageously increases the probability of detecting an error by detecting incorrect diversity metrics.
[0056] According to one embodiment of the invention, it is provided that the different diversity characteristics of the stock contain different coding constants and decoding constants.
[0057] The coding constants are used in an encoding algorithm, and the decoding constants in a decoding algorithm. Such encoding and decoding algorithms are known per se. Using these constants, high-performance encoding and decoding can be advantageously implemented. This is only about achieving operational safety, not about achieving sufficient security against hostile attacks, which would only be possible with significantly higher computational effort and the associated loss of computing performance.
[0058] Using the coding constants and decoding constants simultaneously as diversity characteristics has the advantage that the diversity of the application data sets is contained in the coding. This means that a pair of constants is used for coding and decoding, which simultaneously define the diversity of the respective application data set. The constants thus fulfill two functions simultaneously, which saves computational effort and therefore increases the performance of the method.
[0059] According to one embodiment of the invention, the diversity characteristics include an adaptation operator for adapting the data section generated by decoding to the data section before decoding.
[0060] The adaptation operator is required when the information content (e.g., bit width) of the encoded and subsequently decoded application data set is greater than that of the encoded application data set. The superfluous information may then not be taken into account after the application data set has been decoded and must be truncated by the adaptation operator. In general, this results in the following functional equation for an encoding and decoding algorithm: AD opA C _ enc opB C _ dec opC Y = = AD with AD Application data set opACoding operator C_encEncoding constant opBDecoding operator C_desDecoding constant opCAdjustment operator YDesired information content (bit width)
[0061] According to one embodiment of the invention, the coding operator is an instruction with which a multiplication is carried out.
[0062] According to a further embodiment of the invention, it is provided that the decoding operator (and in particular also the coding operator) is an instruction with which a multiplication is carried out as a decoding operation (and in particular as a coding operation) and the adaptation operator is suitable for limiting the data section to its original length (bit width) after decoding.
[0063] If multiplication is selected as the decoding operator (and especially also as the encoding operator), this is an operation that can be advantageously implemented with high performance in a computer. Especially if the decoding constant (and especially the coding constant) is greater than 1 and an integer, the operation can be implemented computationally with particular ease. However, multiplying twice increases the length of the encoded and subsequently the decoded data section. Therefore, after decoding, the actual information content of the data section must be, so to speak, truncated from the overall decoding result.
[0064] A modulo operation mod (also known as a length restriction operation) is preferably used for this purpose. It advantageously truncates the excess bits in binary expressions up to a desired bit width Y without changing the content of the bits of the remaining bits. To store the excess information (redundant information) in the encoded state (because decoding is only possible with the help of this redundant information), additional storage space must be provided for these data (bits) in the application data record. To further increase the reliability of the method, the data in the additional storage space can be additionally checked for errors as redundant data (more on this below).
[0065] Considering multiplication as the encoding and decoding operation and the modulo operation as the adaptation operator, the following expression results for the above functional equation for encoding and decoding: AD ⋅ C _ enc ⋅ C _ dec mod Y = = AD With AD Application data set C_enc Coding constant > 1 C_dec Decoding constant > 1 mod Y Modulo operation Y Desired bit width
[0066] The coding constant and the decoding constant are a pair of numbers that specifically characterize the diversity of the respective application data set. This pair of numbers is selected such that when the application data set is multiplied by the coding constant and the encoded application data set is subsequently multiplied by the decoding constant, the bits of the desired bit width Y of the application data again have the same values per bit. The diversity characteristic data set contains one coding constant and one decoding constant for each diversity, each forming a pair of numbers with the aforementioned properties. Tests have shown that a coding and decoding algorithm using the latter functional equation can be implemented with comparatively high performance in terms of computing speed.
[0067] According to one embodiment of the invention, it is provided that, before coding, the test data section is created in such a way that it additionally has redundant storage space with predetermined redundancy data.
[0068] As described below, this embodiment of the invention is an additional security mechanism that further enhances the operation of the memory unit and the execution of application programs in accordance with the stated task. Security-relevant applications, in particular, benefit from this enhancement, as already explained.
[0069] The security gain lies in the fact that the specified redundancy data in the process is known because it is specified. Redundant redundancy data means that it is not required to store the application data. However, the redundancy data is required for encoding because the data volume (bit width) increases in the process. In this process, the redundancy data is filled with new data, which usually differs from the specified redundancy data. This new data is required for subsequent decoding.
[0070] However, if a corresponding encoding or decoding algorithm is used, the redundant data is refilled with the original data after decoding. This means that an error is detected if this condition is not met.
[0071] Preferably, the given data can contain only zeros or only ones. This makes filling with given data particularly easy and requires little computational effort.
[0072] According to one embodiment of the invention, the application data sections consist of data words.
[0073] A data word is a specific amount of data that a computer can process in a single step in the processor's arithmetic-logic unit. If a maximum amount of data is meant, its size is called the word width, processing width, or bus width. A data word can preferably have a word width of 32, 64, or 128 bits. If the application data sections consist of data words, this advantageously accelerates the processing of the individual method steps, allowing the method according to the invention to be carried out with optimal performance.
[0074] According to one embodiment of the invention, it is provided that the method is carried out using at least two processors or processor cores simultaneously.
[0075] As already mentioned, the processors can be implemented physically (including with processor cores) or virtually (e.g., emulated). Multiple processors or processor cores can be advantageously used, in particular, to perform computing processes redundantly, i.e., in parallel and, in particular, simultaneously, in order to achieve additional security against the occurrence of errors during processing of the application data sets. The occurrence of errors can be verified, for example, by voting, as explained in more detail below.
[0076] According to one embodiment of the invention, it is provided that the at least two processors or processor cores jointly access one and the same memory unit.
[0077] Access to one and the same memory unit means that at least two processors / processor cores use a shared memory unit, whereby the memory unit does not provide for any physical separation of memory areas for one or the other processor. In other words, each processor can, in principle, access the entire memory area provided by the memory unit. This does not, of course, preclude the possibility of certain memory areas being reserved for one or the other processor, for example, by defining memory addresses. However, this reservation can be changed or canceled without hardware intervention, so that potentially the entire memory area is available to each of the processors.
[0078] The use of shared memory units for multiple processors advantageously facilitates the use of COTS components. Furthermore, the acquisition of a shared memory unit is more cost-effective than providing a separate memory unit for each processor. This allows for particularly cost-effective solutions.
[0079] According to one embodiment of the invention, it is provided that a voting is carried out with identical data sections that have been saved multiple times and / or with data sections that have been changed multiple times in the same way, if an error is identified as a result of the voting, application data records that contain data sections that are the cause of the error identification are excluded from further processing.
[0080] Multiple storage of identical data sections and / or multiple identical modifications of data sections occur when application data records are stored and / or processed redundantly. The redundant data (i.e., the relevant application data sections) must be identical, which is why any differences that occur can be identified and reported as errors through voting.
[0081] Conducting a voting process to identify data errors is known per se. For example, it is possible to calculate independent application data sets in several, preferably three, parallel process runs and then compare them in a voting process. The results are only classified as trustworthy if at least the majority of the compared results agree. The parallel processing of an application by the computing environment can be carried out, in particular, by three application data sets being processed in parallel in the computing environment. This advantageously ensures that the processing of one data set can be carried out without feedback with respect to the other processing runs.This can advantageously reduce the probability as much as possible that the occurrence of errors in the processing of one application data record also affects the processing of other data records.
[0082] If a data error is detected during a test run or during the execution of the application program, or if a processing error occurs during voting, further processing of the data can be prevented or at least suspended, or only prevented or at least suspended for applications that meet or exceed a specified safety level. This has the advantage that the computing capacity of the affected host computers remains available for non-safety-relevant applications. This means that the applications can be executed if any errors that occur (e.g., a program crash) do not pose any safety-relevant risks (safety-relevant risks in railway applications include, for example, train collisions or other accidents).
[0083] Advantageously, it can be provided that the first and the second of the application programs are stopped if the data sections to be compared do not match or the count data in the test data sections belonging to these data sections identify neither the test run currently being carried out nor the most recently completed test run.
[0084] Stopping the program execution effectively prevents the faulty processing of the application from continuing. The application program in question (including subprograms and program complexes) can then be restarted once the error has been corrected. In particular, if the application programs are executed redundantly to enable subsequent voting of the generated variable data, the operation of a railway application, for example, can continue while individual
[0085] Application programs or host computers must be restarted.
[0086] According to one embodiment of the invention, it is provided that Application data records that contain data sections that cause errors are updated using the error-free data sections of the corresponding application data records, and the updated application data records are included in further processing.
[0087] For an update, the corresponding application data records that contain the relevant error-free data sections are used. This means that the data sections with identical application data are selected within the application data records—in other words, application data records that belong to the same group of application data records. As already explained, these differ only in the test data sections, but not in the data sections representing the application data, i.e., the application data sections—so that these can be used to repair the detected error—assuming the error-free data sections could be identified through voting.
[0088] Updating erroneous data sections enables the continuous operation of the computing environment. Otherwise, the detection of errors would result in more and more application data records being locked, making the process permanently unviable. Voting might also eventually become impossible due to a lack of redundancy in data generation.
[0089] Data redundancy not only enables voting but also enables the operation of the computing environment, i.e., the processing of application data records while errors in individual application data records are detected and corrected. These are only excluded from processing until they have been repaired using the above procedure. However, while corrupted application data records are excluded, additional redundant application data records with intact data exist, allowing the process to continue without causing application delays. The repaired application data records can then be activated later, e.g., during a downtime.
[0090] Furthermore, a computer program product with program instructions for carrying out the said method according to the invention and / or its embodiments is claimed, wherein the method according to the invention and / or its embodiments can be carried out by means of the computer program product.
[0091] Furthermore, a provision device for storing and / or providing the computer program product is claimed. The provision device is, for example, a storage unit that stores and / or provides the computer program product. Alternatively and / or additionally, the provision device is, for example, a network service, a computer system, a server system, in particular a distributed, for example, cloud-based computer system and / or virtual computer system, which stores and / or provides the computer program product, preferably in the form of a data stream.
[0092] The provision takes place in the form of a program data block as a file, in particular as a download file, or as a data stream, in particular as a download data stream, of the computer program product. However, this provision can also take place, for example, as a partial download consisting of multiple parts. Such a computer program product is, for example, read into a system using the provision device, so that the method according to the invention is executed on a computer.
[0093] Further details of the invention are described below with reference to the drawings. Identical or corresponding elements of the drawings are provided with the same reference numerals and are explained several times only to the extent that differences arise between the individual figures.
[0094] The exemplary embodiments explained below are preferred embodiments of the invention. In the exemplary embodiments, the described components of the embodiments each represent individual, independently considered features of the invention, which also further develop the invention independently of one another and are thus also to be considered as components of the invention, either individually or in a combination other than that shown. Furthermore, the described components can also be combined with the features of the invention described above.
[0095] They show: Figure 1 a railway application with a computing environment with its interactions schematically, wherein an embodiment of the method according to the invention can be carried out with the computing environment, Figure 2(consisting of the sub-figures 2A and 2B, distributed over two pages) an embodiment of the method according to the invention based on a computing environment in the railway application according to Figure 1 with two host computers as a block diagram, whereby the individual functional units contain program modules that result in application programs and can each run in one or more processors and the interfaces can accordingly be implemented in software or hardware. Figure 3 and 4 Embodiments of the method according to the invention as a flow chart, wherein the individual method steps can be implemented individually or in groups by program modules and wherein the functional units and interfaces according to Figure 2 are indicated as examples. Figure 5 a possible process sequence for the method for computer-aided operation of a storage unit and for computer-aided execution of an application program.
[0096] In Figure 1A railway application is shown schematically, which is controlled by a computer environment RU. The railway application has tracks GL, on which various components of the interlocking technology are shown as examples. This is a point machine WA, which can set a point WH. Furthermore, a balise BL is installed in one of the tracks, with the help of which information can be exchanged with trains passing over the balise. Finally, a light signal LS is shown, which is controlled by a controller CL. The computer environment RU can have various host computers HR1, HR2, HR3, on which applications for controlling the railway application are distributed in the form of application programs (more on this below). The first host computer HR1 is provided by a data center RZ and is connected to a first storage unit SE1 via a first interface S1.The data center (RZ) can be operated, for example, by a service provider of the railway operator or by the railway operator itself. The first host computer (HR1) is connected to a cloud CLD via a second interface (S2), so it is not tied to the railway application.
[0097] A control center (LZ) of the railway operator houses the second host computer (HR2), which is also connected to the cloud (CLD) via a third interface (S3). Furthermore, the second host computer (HR2) is connected to a second storage unit (SE2) via a fourth interface (S4).
[0098] The computer environment RU also includes, by way of example, an interlocking system STW, which houses the third host computer HR3, which is connected to a third storage unit SE3 via a sixth interface S6. Furthermore, the third host computer HR3 has a fifth interface S5 to the second host computer HR2. In a manner not shown, the host computer HR3 could also be connected to the cloud CLD. The third host computer HR3 also has a seventh interface S7 to the switch machine WA, an eighth interface S8 to the controller CL, and a ninth interface S9 to the balise BL.
[0099] All interfaces S1 ... S9 according to Figure 1are generally wired or can be implemented using a wireless transmission technology, such as radio. The arrangement of the host computers HR1 ... HR3 is merely exemplary and can be expanded as required for more complex railway systems. A computing environment is defined by the fact that the participating host computers HR1 ... HR3 can communicate with each other and thus the applications can be processed distributed among the host computers HR1 ... HR3, taking into account available computing capacity. For this purpose, computing instances are created that are not shown in detail and are described in more detail below (see Figure 2 where the computing instances RP1 ... RPn are shown).
[0100] Figure 2 sets the configuration of the first host computer HR1 and the second host computer HR2 according to Figure 1The integration of additional host computers can be carried out in a similar manner. The host computers are organized in such a way that specific task complexes are organized on the host computers in the form of program complexes PK1, PK2, PK3, and PK4, which consist of individual application programs AP1 ... AP5.
[0101] Program complexes generally comprise a number of application programs whose joint processing can be combined with regard to the entire application set. In particular, it can be provided that all application programs contained in a data set are combined into a program complex. This takes into account the fact that the data set combines data sections with regard to the data to be used, while in parallel, a program complex combines the corresponding application programs to which the data sections are assigned.
[0102] Configuration data KD1 ... KD13 refers to data that configures application programs for the specific requirements of a given use case. The configuration defines the interaction between different application programs and the function of the application programs on the hardware components on which they are installed. Furthermore, the configuration contains adaptations to the specific use case for which the application program in question is intended (for example, parameters that may vary between different use cases).
[0103] The fifth application program AP5 also demonstrates that this can be implemented using individual subprograms. The subprograms of the fifth application program AP5 are a gateway GW, a voter VT, a clock generator TG, and a message broker MB (more on this below). However, this is only an example. Alternatively, the clock generator could run in another (non-secure) application, while the remaining subprograms run in the single (secure) application program AP5 as described.
[0104] Subprograms within the meaning of the invention are generally understood to be smaller units such as program modules, the total of which constitute the application program. This advantageously makes it possible to construct application programs in a modular manner, i.e., for example, to provide program modules that are used in multiple application programs. The subprograms can be configured with different configuration data depending on their use. Subprograms thus make it easier to create application programs and thus adapt the computing environment to a specific application.
[0105] In connection with the creation of program complexes, application programs, and subprograms, it should be noted that configuration data can be assigned to each program complex, application program, and subprogram. This can result in multiple storage of certain data with the same content, resulting in data sections that can, in turn, be uniquely assigned to a program complex, application program, or subprogram. The possibility of unambiguous assignment is important here in order to have uniquely addressable data sections available for the implementation of test functions.
[0106] The fifth application program AP5 is organized the same in all program complexes PK1 ... PK4. Messages can be exchanged with the Cloud CLD via the Gateway GW. Therefore, the Gateway GW forms the interfaces S2 and S3 according to Figure 1The messages are distributed within the program complex PK1 ... PK4 via the Message Broker MB, preferably using the publish-subscribe method. The Gateway GW, for example, uses an interface S14 to make received messages available to redundant computing instances RP1 ... RPn via the Message Broker MB. These messages are then retrieved by the redundant computing instances RP1 ... RPn. This is indicated by nodes KN, which are indicated in interface S14 (and also in the other interfaces S10 ... S13, described below).
[0107] In Figure 2For the sake of clarity, the program complexes PK1 ... PK4 are each implemented entirely on a host computer HR1 ... HR2. In reality, program complexes with their application programs AP1 ... AP5 and their subprograms can also run distributed across multiple host computers (not shown). This advantageously allows for the use of host computer capacities when these do not provide sufficient capacity for configuring an entire program complex, by sharing the capacity of several host computers for the respective program complex.
[0108] The program complexes can, for example, be intended for a specific set of tasks. For example, a program complex can be used to control a specific railway component (signal, interlocking, switch, axle counter, etc.). Multiple application programs are generally required to control this railway component. In particular, the application program AP5, already explained above, is required to ensure secure execution of the application and communication with other host computers. This can be described as a utility program, which serves to secure the functionality of the host computer and thus executes an application related to the host computer (in contrast to the application programs AP1 ... AP4, which process the payload data for railway components and are therefore referred to as utility programs). The application program AP5 also runs in at least one computing instance RP9 ...RP12 per host computer, but preferably not redundant.
[0109] A plurality of redundant computing instances within the meaning of the invention is understood to mean a software implementation on the host computers HR1 ... HR3, which allows parallel, i.e. simultaneous, processing of application programs AP1 ... AP4, preferably within the respective program complex PK1 ... PK4. Figure 2Program complexes with two redundant computing instances each are shown. Preferably, however, three redundant computing instances are used, although more redundant computing instances RP1 ... RPn are also conceivable, as shown for the first program complex. The following explains the method for processing the application programs using the first program complex PK1 for the first redundant computing instance RP1, the second redundant computing instance RP2 ..., and the nth redundant computing instance for processing the first application program AP1. However, for the program complexes PK2 ... PK4, processing proceeds accordingly, so this does not require a separate explanation.
[0110] In the first redundant computing instance RP1, ... and the n-th redundant computing instance RPn, the first application program AP1 is processed redundantly, i.e. simultaneously and in parallel. This is an application program that performs a task for the railway application according to Figure 1 From the first redundant computing instance RP1 to the nth redundant computing instance RP2, first configuration data KD1 are also available, which are required to execute the first application program AP1 to process the individual task of the railway application. For example, the first application program AP1 can generally be used to control light signals, whereby the first configuration data KD1 allows the application of the first application program AP1 to the light signal LS according to Figure 1 For example, communication with the CL controller must be ensured in accordance with Figure 1 be ensured.
[0111] Configuration data KD1 ... KD13 are also available for all other program complexes PK1 ... PK4, application programs AP1 ... AP4, and subprograms MB, TG, VT, GW. Accordingly, the configuration data KD1 ... KD13 contain the data required for the program complexes, application programs, and subprograms so that they can perform the tasks assigned to them in the respective application. The configuration data is immutable and can therefore be saved in a data section with a known beginning and end. Likewise, all program complexes PK1 ... PK4, application programs AP1 ... AP4, and subprograms TG, VT, GW, MB are saved as data sections with a known beginning and end. For this purpose, the first memory unit SE1, the second memory unit SE2, and the third memory unit SE3 are available, for example, according to Figure 1available. Data that is stored in one of the aforementioned storage units or remains stored in one of the aforementioned storage units for a certain period of time is subjected to regular checks to detect storage errors in the stored data (more on this below). Storage errors are defined as errors that occur in the data when storing or retrieving the data, or that arise while the data is being stored in the storage unit.
[0112] Data that changes during program execution is exchanged as messages between the participating partners. As already mentioned, the Message Broker MB is available for this purpose. Furthermore, the individual host computers HR1, HR2 communicate with each other via the external interfaces S2, S3, for example, using a cloud CLD, so that data can also be exchanged between different program complexes PK1 ... PK4 of different host computers. After the data has been changed, it is stored again in the first storage unit SE1, the second storage unit SE2, or the third storage unit SE3. Errors can also occur during data processing, which are more precisely referred to as processing errors in the context of this invention.
[0113] The processes in the railway application according to Figure 1are safety-relevant for the operational safety of the railway application. This is the reason why the first application program AP1 is processed in parallel, i.e., redundantly, in the first redundant computing instance RP1 up to the nth redundant computing instance RPn. The first redundant computing instance RP1 and the second redundant computing instance RP2 (and so on) send the results when the application is processed to the message broker MB, specifically the first redundant computing instance RP1 via the eleventh interface S11, and the second redundant computing instance via the interface S12 (and so on). These results are retrieved via the aforementioned interfaces by the voter VT, which conducts a vote. Only if the majority of the results agree (i.e., both results for two redundant computing instances, at least two results for three redundant computing instances, at least three results for four redundant computing instances, etc.) is a vote taken.with n redundant computing instances at least n / 2+1 for even and n / 2+0.5 for odd n), the result is made available to the message broker via the thirteenth interface S13 and can be retrieved by the gateway GW via the thirteenth interface S13 for transmission to other units via the second interface S2.
[0114] To ensure that the calculation results are available simultaneously for voting by the voter VT, the processes in the first redundant computing instance RP1 and the second redundant computing instance RP2 (etc.) are clocked via the clock generator TG. This provides clock signals via the tenth interface S10, which can also be retrieved via the message broker MB by the first redundant computing instance RP1 and the second redundant computing instance RP2.
[0115] The described method of processing tasks by the first application program AP1 and the second application program AP2 is ensured by the fifth application program AP5. The fifth application program AP5 is therefore an internal application program that supports the functionality of the host computers HR1 ... HR3. This clearly shows that application programs are not only used for the application of the railway application according to Figure 1 (utility programs), but also for the processing of applications in the host computers HR1 ... HR3 (utility programs).
[0116] Combining application programs into program complexes and subdividing them into subprograms facilitates the compilation of application programs and the testing of task execution for error-free execution. For this purpose, data is grouped into data sections, each of which can be uniquely identified and addressed (by defining a start and end of the data section). As already mentioned, subprograms, application programs, program complexes, and the associated configuration data (which usually consist of a multitude of data sections) are defined in data sections. The required data is preferably stored multiple times using diversity characteristics so that the data sections and configuration files can be uniquely assigned to each other.In other words, in this case, it does not happen that different application programs, when they use identical configuration data, access the same storage location for this data, but always access the data section assigned to them in which the data is available.
[0117] In Figure 3 The method step of initially encoding data according to the invention is schematically illustrated. This is illustrated for a computing environment consisting, for example, of the first host computer HR1, the first storage unit SE1, and the second storage units SE2. In principle, the first host computer HR1 can access data stored in the first storage unit SE1 and the second storage unit SE2. Reading RE and writing WT can occur, as indicated by corresponding arrows.
[0118] For example, applications AP for executing application programs can be stored in the memory units SE1, SE2. Furthermore, it is possible to store count data ZD as well as a reserve VR of diversity characteristic data DD1 ... DD4. In order to use the application data AD for applications within the meaning of the invention, ie, to implement a method for computer-aided execution of an application program in the manner according to the invention, the application data AD must be stored in the form of application data sets ADS, which are created by means of the method according to Figure 3 created and stored in a coded form using COD coding.
[0119] In Figure 3It is shown merely as an example how the application data AD, the count data ZD, and the diversity data DD1 ... DD4 occupy individual memory areas of the first memory unit SE1 and the second memory unit SE2. In principle, the corresponding data can be stored anywhere; it is located using appropriate addressing, and there are no restrictions on which application data set ADS is stored where in the memory units SE1 and SE2.
[0120] Furthermore, the diversity of the diversity characteristics DD1 ... DD4 is indicated by hatching, which is intended to clarify that application data sets ADS can be identified by the diversity characteristics from the VR set. As shown for the VR set, there is a longitudinal hatching, a transverse hatching, and two diagonal hatchings at an angle of 90° to each other. Figure 3For example, the application data set ADS shown in detail has the hatching that indicates the diversity characteristics DD1.
[0121] As the enlarged application data record ADS shows, it consists of a data section DA for the application data AD and a test data section PA, which contains the first diversity characteristic data DD1, a counting element in the counting data ZD, and redundancy data RD. The first diversity characteristic data DD1, the counting data ZD, the redundancy data RD, which is filled with a start value, and the application data AD are written in the host computer HR1, for example, to a working memory and combined to form the application data record ADS. The application data record ADS is then encoded and written to the first storage unit SE1, with the diversity based on the first diversity characteristic data DD1 also being indicated in the storage unit SE1 by the aforementioned hatching. The application data record ADS is then available for further processing.
[0122] In Figure 4 is the use of the application data set according to Figure 3 and further application data sets with the second diversity data DD2 and the third diversity data DD3 are shown schematically. The three application data sets ADS shown should contain identical application data. The test data section PA is always filled with the different diversity data DD1, DD2, and DD3. The count data ZD and the redundancy data RD can also differ from each other.
[0123] The application data sets ADS are now executed in three computing instances RP1, RP2, and RPn (n is equal to 3 in the example above, but could also have a different value). For this purpose, the application data sets ADS are read into the computing instance (RE). Each computing instance RP1, RP2, and RPn is assigned a specific diversity, which is represented by hatching. This hatching corresponds to the diversity characteristics DD1 ... DD3 of the VR pool.
[0124] It can also be seen that a computing instance RPn can also process data from two diversities, in this case the application data sets ADS marked with the diversity characteristics DD3 and the diversity characteristics DD4. This allows for optimal utilization of the computing capacity available to the computing instance RPN.
[0125] The computing instances RP1 ... RPn each read the application data sets ADS of the correct diversity. This is achieved by utilities running in the background so that the computing instances RP1 ... RPn are automatically supplied with the correct application data sets ADS. This is for the application data set ADS according to Figure 3 with the diversity indicators DD1 and will be explained in more detail.
[0126] If this application data record ADS is called up, it is first decoded (DEC) and then read (RE). The decoding allows the first diversity data DD1, the current count data ZD and the redundancy data RD to be read out together with the application data AD and utility programs to be applied which detect any memory errors that may have occurred. It can be checked whether the diversity data DD1 originates from the store VR and / or matches the diversity of the first computing instance RP1. The count data ZD can be used to check whether test runs are running correctly, as this must identify the test run currently in progress or the test run that previously took place. Only if the check shows that the data does not contain any memory errors is it released for reading RE and processed by the first computing instance RP1.
[0127] After processing the application data record ADS, the first computing instance RP1 writes it back to the first storage unit SE1. Here, too, a check of the test data section, the first diversity characteristic data DD1, the count data ZD, and the redundancy data RD can be performed to identify any processing errors during the processing of the application data record ADS. Furthermore, the count data ZD is equated with the count element that identifies the currently running test run. The application data record ADS is then coded (COD) and written (WT) to the first storage unit SE1.
[0128] This process, although not shown in detail, is also performed for the other application data records in the computing instances RP2, RPn. After successful processing of the application data records ADS, a vote can also be performed for the application data AD to determine whether the application data records AD have been changed identically even after processing by the computing instances RP1 ... RPn. If this is not the case, this indicates a processing error. With three computing instances RP1 ... RPn, a majority vote can also be performed so that the application data that is mostly identical is used for further processing, while the application data that differs from it is blocked for further processing.
[0129] Attachment Figure 5This section explains a possible process flow for the method for computer-aided operation of a memory unit and for computer-aided execution of an application program. Before starting the method, an initialization step (INI) is performed, which allows proper memory access to a memory unit (not shown). After starting the method, the process for performing test runs of the memory unit is shown on the right, and the process for executing application programs is shown on the left. These sub-areas can be executed individually, one after the other, or preferably in parallel, and are therefore shown side by side.
[0130] First, the procedure for performing the test run will be explained. In a count data definition step (DTM_ZD), a starting value for the count data is defined. This count data is made available, if necessary, to the process for executing an application program (left side) via a count data input step (ZD_IN) in a count data output step (ZD_OT).
[0131] The actual test run consists of repetitive procedures that are performed for all application data records stored in the storage unit (in Figure 5shown on the right-hand side). For each application data record with the current counting elements of the counting data, the following is performed: In a decoding step for the application data record DEC_ADS, the application data record is decoded. In a test step for the counting data TST_ZD, a check is carried out to determine whether the counting element corresponds to the test run currently being tested or the last test run. In a test run for the diversity characteristics TST_DD, a check is carried out to determine whether the application data record contains diversity characteristics that correspond to the available pool VT of diversity characteristics (cf. Figure 3 and 4 ). In a test step for the redundancy data TST_RD, it is checked whether the redundancy data has an expected value, in particular a pre-assigned value (optional).
[0132] Once all test steps have been performed, a deviation query step DVG? checks whether any of the test steps, as described above, have produced deviations from the expected result. If this is the case, an error is output in an error output step ER_OT (more on this below). If this is not the case, the tested application data record is encoded again in a coding step for the application data record COD_ADS, whereby this is always encoded in the count data with the count element of the current test run. Once the test run has been performed for all application data records, they therefore have the current count element in the count data, and the count data can be updated in an update step for the count data UPD_ZD for the running utility program so that it now contains the count element of the test run that is started subsequently.
[0133] In the method for computer-aided execution of an application program (left side in Figure 5 ), after the aforementioned input step for the count data ZD_IN, the decoding step for the relevant application data record DEC_ADS is repeated for all required application data records of the application executed by the application program. Subsequently, as already described for the test run, a test step is performed for the count data TST_ZD, a test step for the diversity data TSD_DD, and a test step for the redundancy data TSD_RD (optional).
[0134] The special feature is that the application is executed on a computing instance (not shown) with a specific diversity, so that the diversity characteristics checked in the test step for the diversity characteristics TSD_DT must correspond exactly to the diversity of the computing instance on which the application program is to be executed.
[0135] When executing the application program, the DVG? check step for deviations checks for each required application data record to determine whether the TST... check steps have identified any deviations from the expected contents of the application data records. If this is the case, an error is output in the ERR_OT error output step, as already explained. Otherwise, the application data record check continues until all application data records required for the application program have been checked. Only under this condition will the application program be executed in an execution step for the application program RUN_APP.
[0136] The testing of the application data records can preferably be carried out step by step for the application program (in Figure 5not shown in detail). This means that the processing of the application program is divided into processing steps. In this sense, all application data records required for the application program must be checked, which are required for the next step to be carried out by the application program. In the execution step for the application program RUN_APP, the respective step of the application program is then executed. For each application program, the following then arise: Figure 5 several recursion loops that are executed after the coding step described below for the application data set COD_ADS (on the left side of Figure 5 ) leads back to the count data entry step.
[0137] After the application program execution step RUN_APP, a check is performed to determine whether the application data records existing after the application program execution are new application data records. This check (called the query step "New application data record NW_ADS?") is necessary to assign test data to new application data records in a definition step for a test data section DTM_PA, which enables subsequent testing of the new application data record ADS in the further steps of the presented procedure. In any case, the new application data record or the old application data records are re-encoded in the coding step for application data records COD_ADS and stored in the storage unit.Subsequently, another application program or, as described above, another step of a running application program can be executed (repetition of ZD_IN, input step for counting data and the subsequent steps).
[0138] Multiple application programs can also be executed simultaneously in redundant computing instances. In this case, the process for executing application programs would be displayed multiple times in parallel, in a manner not shown.
[0139] The execution step for the application program RUN_APP can also produce results that are to be output. Before this happens, an optional output can be output, shown in the middle of Figure 5, a test procedure must also be run. The steps already explained here are the test step for the count data TSD_ZD, the test step for the diversity data TSD_DD, and (optionally) the test step for the redundancy data TSD_RD. In a subsequent query step for deviations DVG?, a check is carried out again to determine whether any deviations were detected during the test steps. If this is the case, an error signal is generated in an output step for an error ERR_OT, as already described. Otherwise, the result is output in an output step for the result OT_RS and / or further processed in subsequent steps.
[0140] In the event that an error is output in an output step for an error ERR_OT, in the embodiment according to Figure 5The process is stopped immediately. The computing environment can then be reset using the initialization step INI, and the process can be restarted, for example. List of reference symbols
[0141] LZControl center STWInterlocking RZData center GLTrack WHSwitch WASwitch drive LSLight signal CLController for light signal BLBalise RU Computing environment HR1 ... HR3 Host computer SE1 ... SE3 Storage unit S1 ... S14 Interface CLDCloud RP1 ... RP8, RPn Redundant computing instance AP1 ... AP5 Application program PK1 ... PK4 Program complex KD1 ... KD13 Configuration data MB Message Broker TG Clock generator VTVoter GW Gateway KNK nodes DD1 ... DD4 Diversity characteristics ZD Counting data RDRedundancy data ADApplication data DAData section with application data PATest data section ADSApplication data record CDSCoded application data record GRGroup VRReserve CODCoding DECDecoding REReading WTWriting DTM_ZD Definition step for count data UPD_ZD Update step for count data DEC_ADSD Decoding step for application data record COD_ADSCoding step for application data record TST_ZD Check step for count data TST_DD Check step for diversity characteristics TST_RD Check step for redundancy data DVG? Query step for deviations ERR_OT Output step for errors INI Initialization step RUN_APP Application program execution step ZD_IN Input step for count data ZD_OT Output step for count data OT_RS Output step for result NW_ADS? Query step for new application data record DTM_PA Definition step
Claims
1. Method for computer-assisted operation of a memory unit, wherein • data is saved in the memory unit and the data is encoded before saving, • data is retrieved from the memory unit and the data is decoded after retrieval, wherein the memory unit is monitored for errors in that a temporal sequence of computer-assisted checking operations is carried out for the memory unit, characterised in that for first-time encoding (COD) of the data • at least one application data set (ADS) is generated or selected, containing data segments having application data for an application program (AP1 ... AP5) and check data segments (PA), • for each application data set (ADS), the check data segment (PA) is occupied by count data (ZD), which characterises the checking operation being implemented, • each application data set (ADS) is encoded and saved, and that for checking the data in the checking operation being implemented, after retrieving and decoding (DEC) the application data sets (ADS) respectively • an error is determined for an application data set (ADS) when the count data (ZD) characterises neither the checking operation being implemented nor the most recent completely implemented checking operation, • the check data segment (PA) of the relevant application data set is occupied by count data (ZD), which characterises the checking operation being implemented, if no error was determined, • the relevant application data set (ADS) is encoded and saved again if no error was determined.
2. Method according to claim 1, characterised in that a start value is defined for the count data (ZD) before first-time implementation of a checking operation.
3. Method according to one of the preceding claims, characterised in that the checking operations respectively include at least the checking of all application data sets available at the beginning of the checking operation for the ongoing method.
4. Method according to one of the preceding claims, characterised in that as soon as a checking operation has been completed, the count data (ZD) is occupied by a count element, which follows the count element for the previous occupation of the count data (ZD) .
5. Method for computer-assisted execution of an application program (AP1 ... AP5), wherein a memory unit is operated according to one of the preceding claims and wherein application data sets required for the execution are retrieved from the memory unit and decoded, wherein • after decoding (DEC) of the application data sets the application program (AP1 ... AP5) is executed, • at least application data sets, which include data segments changed or generated by the execution of the application program (AP1 ... AP5), are encoded and saved in the memory unit.
6. Method according to claim 5, characterised in that when checking the data after decoding (DEC) of the application data sets and before execution of the application program (AP1 ... AP5) respectively • an error is determined for an application data set (ADS) when the count data (ZD) characterises neither the checking operation being implemented nor the most recent completely implemented checking operation, • the application program (AP1 ... AP5) is executed if no error has been determined.
7. Method according to one of the preceding claims, characterised in that additionally, during the computer-assisted operation of the memory unit, for first-time encoding (COD) of the data, • at least one group (GR) of application data sets (ADS), containing data segments having identical application data (AD) for an application program (AP1 ... AP5) and check data segments (PA) having different diversity characteristic data (DD1 ... DD4) respectively is generated or selected from a supply (VR) of possible diversity characteristic data (DD1 ... DD4), • each application data set (ADS) is encoded and saved, and the data is retrieved in that the application data sets (ADS) are retrieved and decoded, and the data is saved in that the application data sets (ADS) are encoded and saved, and / or during the computer-assisted execution, the application program (AP1 ... AP5) is executed multiple times in redundant computing instances (RP1 ... RPn), wherein in order to execute required application data sets (ADS), each application data set (ADS) of an encoded group (GR) of application data sets (ADS) is retrieved from the memory unit and decoded, wherein • in order to check the data after the decoding (DEC) of the application data sets (ADS), an error is determined respectively for an application data set (ADS) if the diversity characteristic data (DD1 ... DD4) in the application data set (ADS) deviates from all possible diversity characteristic data (DD1 ... DD4) of said computing instance (RP1, RP2, RPn) from the supply (VR), • the application program (AP1 ... AP5) with the data segments of each application data set (ADS) of the relevant group (GR) is executed if no error was determined, and / or • at least application data sets (ADS), which include data segments changed or generated by the execution of the application program (AP1 ... AP5), are encoded according to the manner mentioned above and saved in the memory unit.
8. Method according to one of the preceding claims, characterised in that before encoding (COD), the check data segment (PA) is created in such a way that it also has redundant memory space with predefined redundancy data (RD).
9. Method according to one of the preceding claims, characterised in that the application data segments consist of data words.
10. Method according to one of the preceding claims, characterised in that the method is carried out with simultaneous use of at least two processors or processing cores.
11. Method according to claim 10, characterised in that the at least two processors or processing cores have shared access to one and the same memory unit (SE1 ... SE3).
12. Method according to one of the preceding claims, characterised in that • with multiply stored identical data segments and / or with multiply identical changed data segments, voting is carried out, • if, owing to the voting, an error is identified, application data sets (ADS), which contain data segments causative of the error identification, are excluded from further processing.
13. Method according to one of the preceding claims, characterised in that • application data sets (ADS), which contain data segments causative of errors, are updated using the error-free data segments of the corresponding application data sets (ADS), • the updated application data sets (ADS) are again incorporated in further processing.
14. Computer program product having program commands for carrying out the method according to one of the preceding claims.
15. Provision apparatus for the computer program product according to claim 14, wherein the provision apparatus saves and / or provides the computer program product.
