Method for checking useful data processing

By using metadata and CRC functions in data processing systems, the complexity of monitoring the data processing paths of safety-critical applications on non-safety-critical hardware is solved, enabling efficient error detection and data processing correctness in distributed systems.

CN118642884APending Publication Date: 2024-09-13ROBERT BOSCH GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410277863.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-13
Filing Date
2024-03-12
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively monitor and ensure the data processing paths of safety-critical applications on non-safety-critical hardware, especially in distributed and dynamically configured systems, resulting in high error detection complexity and communication overhead.

Method used

By introducing metadata into the data processing system, using adaptation values ​​and cyclic redundancy check functions (CRC) to check the correctness of data processing blocks, ensuring the correct delivery and eventual consistency of metadata at each processing step, thereby Detect errors and reduce complexity in program flow.

Benefits of technology

Effective data processing of safety-critical applications running on non-safety-critical hardware is achieved, reducing the complexity of error detection logic and communication overhead, and ensuring the correctness and scalability of data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642884A
    Figure CN118642884A
Patent Text Reader

Abstract

According to various embodiments, a method for checking useful data (ND0) processing is described, comprising: processing the useful data (ND0) with the metadata by a sequence of a plurality of data processing blocks (302, 303, 304) wherein for each data processing block (302, 303, 304), an adaptation value is determined from a version of the useful data delivered to the data processing block, the data processing block (302, 303, 304) is configured such that, if a metadata data version supplied to the data processing block (302, 303, 304) is correctly processed by the data processing block (302, 303, 304) into a corresponding processing result, the processing result is equal to the value (PK1, PK2, PKn) assigned to the data processing block (302, 303, 304) after having been adapted according to the adaptation value in accordance with a predefined adaptation rule, and the value (PK1, PK2, PKn) is assigned to the data processing block (302, 303, 304). Each data processing block (302, 303, 304) processes its transferred metadata version, and the next metadata version is derived from the metadata version transferred to the data processing block according to the processing result of the data processing block adapted according to the predefined adaptation rule and the adaptation value, and the next metadata version is derived from the metadata version transferred to the data processing block according to the processing result of the data processing block adapted according to the predefined adaptation rule and the adaptation value. And checking whether the useful data (ND0) has been correctly processed by checking whether a final version of the metadata coincides with a reference final version of the metadata.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a method for checking useful data processing. Background Art

[0002] Nowadays, safety-critical applications are usually executed on special hardware developed for this purpose. The safety requirements of the application usually result in requirements on the hardware with regard to error susceptibility and error rates, which cannot usually be met by non-safety-critical, commercially widely used hardware, such as processors or working memory. However, there is currently the goal of running safety-critical applications on non-safety-critical hardware, as this is usually significantly cheaper and more powerful. To achieve this, specific features of the safety-critical hardware, such as lockstep mode, are emulated by software.

[0003] For example, safety-critical calculations can be performed on multiple independent non-safety-critical systems, and their results can then be compared to detect possible errors. In such systems, the data paths are naturally more complex, and it must be ensured that these paths are followed through the entire system. Thus, for example, in cases where the data must also be pre-processed before the actual analysis, it must be ensured (by so-called program flow control) that the processing paths are correctly followed through multiple processing modules of a safety-critical application to ensure correct execution of the application.

[0004] Therefore, an efficient way of monitoring data processing, in particular with regard to program flow, is desirable, in particular for distributed data processing systems that are dynamically reconfigurable during runtime.

[0005] The publication “Reversing CRC—Theory and Practice” by Martin Stigge et al., HUBerlin Public Report SAR-PR-2006-05, May 24, 2006, describes how the bits that must be appended to the input data for a CRC (Cyclic Redundancy Check) can be found in order to obtain the desired CRC result. Summary of the invention

[0006] According to various embodiments, a method for checking useful data processing is provided, comprising: processing useful data together with metadata by a sequence of a plurality of data processing blocks, so that the useful data is processed from an initial version of the useful data to a final version of the useful data and the metadata is processed from an initial version of the metadata to a final version of the metadata, wherein for each data processing block, an adaptation value is determined according to the useful data version supplied to the data processing block, so that if the metadata data version supplied to the data processing block is correctly processed by the data processing block into a corresponding processing result, the processing result is equal to the value assigned to the data processing block after having been adapted according to the adaptation value according to a predetermined adaptation rule, and each data processing block processes its supplied metadata version and derives a next metadata version from the metadata version supplied to the data processing block according to the processing result of the data processing block adapted according to the predetermined adaptation rule according to the adaptation value. The method also comprises: checking whether the useful data has been correctly processed by checking whether the final version of the metadata is consistent with a reference final version of the metadata.

[0007] The method described above makes it possible to check the program flow that occurs when processing useful data (in a data receiver), wherein the communication overhead and the complexity of the error detection logic (for example in the data receiver) can be kept low.

[0008] The adaptation value may also have a value, such as zero, indicating that the processing result does not need to be adapted. The adaptation rule for such a value then includes: the processing result is not changed. For example, it is determined according to the adaptation rule: whether the processing result needs to be adapted, and if so, it is changed accordingly.

[0009] In one embodiment, the reference final version depends on the corresponding metadata (ie, the corresponding “Challenge”). Different challenges may be used for multiple checks.

[0010] Various embodiments are given below.

[0011] Embodiment 1 is a method for checking useful data processing as described above.

[0012] Embodiment 2 is a method according to Embodiment 1, wherein for each data processing block, the next metadata version is derived from the metadata version delivered to the data processing block by applying a function to the metadata version delivered to the data processing block and the processing result of the data processing block after being adapted according to a predetermined adaptation rule using an adaptation value.

[0013] The adapted processing result is therefore intuitively used for each data processing block as a parameter of a function (e.g. a hash function) applied to the metadata. In the event that a data processing block incorrectly processes the metadata, this error (in the case of an appropriate choice of function) is reflected in the function value and can be detected.

[0014] Embodiment 3 is a method according to embodiment 2, wherein the function is a cyclic redundancy check function.

[0015] This function allows efficient computation and ensures that the result of error handling is reflected in the function value (and also in the final version of the metadata).

[0016] Embodiment 4 is a method according to one of embodiments 1 to 3, wherein each data processing block processes the metadata version delivered to the data processing block according to the checkpoints passed when processing useful data, and determines the adaptation value by determining which checkpoints are passed when processing useful data and / or the number of checkpoints passed.

[0017] In this way, multiple valid paths through the data processing block (or through a program of the data processing block) can be realized without having to provide different reference final versions of the metadata for the different paths. This reduces the complexity considerably, since in particular the number of reference final versions of the metadata with which the final version of the metadata must be compared can also be kept low.

[0018] Embodiment 5 is a method according to embodiment 4, wherein the metadata version delivered to the data processing block is iteratively processed by the data processing block in such a way that, for each checkpoint passed, the metadata version is processed according to the metadata processing value assigned to the checkpoint.

[0019] In order to make different branches lead to the same processing results, a dummy checkpoint can be inserted into a path so that the number of checkpoints in all paths is consistent.

[0020] Embodiment 6 is a method according to embodiment 5, wherein a metadata version delivered to a data processing block is iteratively processed by the data processing block, in that for each checkpoint passed, the metadata version is processed by applying a CRC function, wherein the CRC function obtains as input a metadata processing value assigned to the data processing block.

[0021] Therefore, the CRC function can be used not only in the external processing chain (across data processing blocks) but also inside the data processing block, allowing efficient calculations at both levels (metadata processing) and ensuring that errors in the program flow are ultimately reflected in the final version of the metadata.

[0022] Embodiment 7 is a method according to one of embodiments 1 to 6, wherein the adaptation rule comprises: adapting the processing result according to the difference between the initial version of the metadata and the reference initial version of the metadata.

[0023] That is, for each data processing block, not only can the difference in processing results due to different running processes of the data processing block be compensated, but also the difference in processing results due to changes in the initial version of the metadata (i.e., "Challenge") can be compensated. Thus, even when different challenges are used, the complexity can be kept low. This compensation can also be effectively achieved by using a CRC function.

[0024] Embodiment 8 is a data processing device configured to perform the method according to one of embodiments 1 to 7.

[0025] Embodiment example 9 is a data processing device, which is configured to: determine an adaptation value based on a useful data version supplied to the data processing device (in particular, for example, based on its size), so that if the metadata data version supplied to the data processing device is correctly processed by the data processing device into a corresponding processing result, then the processing result is equal to the value assigned to the data processing device after being adapted according to the adaptation value according to a predetermined adaptation rule; and process the metadata version supplied to the data processing device, and derive the next metadata version from the metadata version supplied to the data processing device according to the processing result of the data processing device adapted according to the adaptation value according to the predetermined adaptation rule.

[0026] According to various embodiments, one or more such data processing devices are provided for a method according to one of the above-described embodiments.

[0027] Embodiment 10 is a computer program having instructions, which, when executed by a processor, cause the processor to perform the method according to one of embodiments 1 to 7.

[0028] Embodiment 11 is a computer-readable medium storing instructions, which, when executed by a processor, cause the processor to perform the method according to one of embodiments 1 to 7. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In the drawings, like reference numerals generally refer to the same parts throughout the different views. The drawings are not necessarily drawn to scale, with emphasis generally being placed on illustrating the principles of the invention. In the following description, various aspects are described with reference to the following drawings.

[0030] Figure 1 A vehicle having a plurality of control devices is shown as an example for a distributed data processing system.

[0031] Figure 2 The data processing pipeline is illustrated.

[0032] Figure 3 Program flow monitoring with external chain checking and internal chain checking is described.

[0033] Figure 4 A flow chart is shown which illustrates a method for checking useful data processing according to one specific embodiment.

[0034] The following detailed description relates to the accompanying drawings showing specific details and aspects of the present disclosure for explanation purposes, wherein the present invention can be implemented in these aspects and specific details. Other aspects may be used and changes in structure, logic and electrical aspects may be performed without departing from the scope of protection of the present invention. Various aspects of the present disclosure are not necessarily mutually exclusive, because some aspects of the present disclosure may be combined with one or more other aspects of the present disclosure to form new aspects. DETAILED DESCRIPTION

[0035] Various examples are described in more detail below.

[0036] Figure 1 A vehicle 101 having a plurality of control devices 102 is shown as an example of a distributed data processing system.

[0037] The control device 102 is, for example, an electronic control unit (ECU) 102 , which each executes processing and are connected to each other and exchange data.

[0038] Each vehicle control device 102 includes data processing components such as a processor (eg, CPU (Central Processing Unit)) 103 and a memory 104 for storing a corresponding control program 105 according to which the vehicle control device 102 operates and data processed by the processor 103 .

[0039] For example, for each vehicle control device, a stored control program 105 (computer program) has commands which, when executed by the corresponding processor 103 , cause the vehicle control device 102 to jointly perform a driver assistance function or even autonomously control the vehicle 101 .

[0040] The distribution of tasks can also extend further than within the vehicle 101. For example, data processing tasks can also be sent via the network 106 to one or more servers 107 (for example to the cloud), which also execute the corresponding control program 105 (for example, part of the overall program for the corresponding application), so that the distributed data processing system that executes the corresponding application (for example, here the control of the vehicle 101) has not only the control device 102, but also the one or more servers 107. In this case, the tasks can also be distributed dynamically (in particular, transferred to the servers 107), so that a dynamic distributed system exists.

[0041] In order to detect errors in the program flow or in the program execution of an application (i.e., the control program 105 described in the above example), a so-called program flow analysis (English: control flow analysis) is usually performed during development for applications with more stringent safety requirements (e.g., software for vehicle control), which should ensure the correctness of the program flow with respect to sequence and / or time characteristics. The automotive safety standard ISO 26262-6:2018 requires such an analysis, which usually involves the compiled software of the individual control devices. In order to check the program flow at runtime, special hardware units (e.g., watchdog timers or ASICs) are usually used, with the help of which deviations from the expected program flow are detected and reliably intercepted, for example, by resetting the control device or interrupting the communication interface.

[0042] However, the above-described program flow control methods are not easily applicable to distributed asynchronous applications or applications executed on non-dedicated hardware units, because the program flow can change strongly over time due to fluctuations in transmission and execution times (without forcing the execution to be incorrect), and the signatures generated during the development and compilation of the individual elements in a dynamically distributed system for monitoring the correct flow sequence are generally not yet known. The control flow associated with the application is only generated at runtime by the dynamic integration of the individual elements into the distributed application, and the associated program flow monitoring must therefore be flexibly configured at runtime.

[0043] According to various embodiments, program execution (particularly with regard to its program flow) is verified or monitored by assigning additional metadata to the data to be processed in a distributed data processing system (i.e., in the distributed execution of the corresponding program), wherein the additional metadata is modified (processed) and passed by the processing units (modules, control devices, program modules) carrying out the processing in a specific way when passing through the distributed data processing system (i.e., through the distributed data processing pipeline for the data formed by the distributed data processing system) so that defects in the metadata (particularly defects in the program flow) become visible. The corresponding data receiver can use the processed metadata to check whether all required processing steps have been executed in the correct number and order.

[0044] Figure 2 A data processing pipeline 200 is illustrated having a data generator 201 (data source) for data to be processed (e.g., a lidar sensor in a vehicle 101 providing lidar data), a plurality of processing blocks (hereinafter also referred to as processing units) 202, 203, 204, such as an ECU, and a data receiver 205.

[0045] According to various embodiments, the (useful) data ND0 to be processed are supplemented by a data generator 201 (e.g. an output interface of a sensor device) with random metadata (e.g. random metadata in the form of a (key) value MD0). Subsequent processing units in the data processing pipeline 200 (e.g. a corresponding module that performs preprocessing of the sensor data) apply a function (F) to the original metadata MD0 by using an individual (i.e. assigned to the processing unit) key (PK1). The result of the application of the function to MD0 (referred to as MD1) is forwarded together with the useful data (ND) processed by the first processing unit 202 to the next processing unit 203, which then in turn applies the function F to the metadata MD1 by using its individual key (PK2), and so on.

[0046] The data receiver 205 finally contains a processed version of the original metadata MD0 which (in the case of n processing units) is equivalent to

[0047] MDn'=F(PKn,F(PKn-1,F(...,F(PK1,MD0)))).

[0048] This expected (reference) value MDn' is known to the data receiver 205, so that the data receiver can check whether all processing units 202, 203, 204 have processed the metadata (and therefore also the useful data) in the correct order by comparing this value with the version of the metadata processed by the processing units 202, 203, 204 received by the data receiver. If the value MDn' is inconsistent with the version of the metadata processed by the processing units 202, 203, 204 received by the data receiver, the data receiver initiates corresponding safety measures (e.g., resetting, not using the useful data processing results, etc.).

[0049] The data receiver 205 can determine the value MDn′, for example, based on knowledge of the original metadata MD0, the personal keys PKi of the processing units 202, 203, 204, and the correct calculation sequence.

[0050] At least the end point of the processing chain, i.e. the data receiver 205, for example an actuator control unit in a vehicle, is located on an independent (safe) device (e.g. a separate control unit 102) in order to be able to independently check the previous processing chain (formed by processing units 202, 203, 204).

[0051] The above method can be used to check the correct and complete calculation sequence of multiple calculation modules and / or to check the correct order of calculations within a calculation module. For example, checkpoints can be set in the code, at each of which the delivered metadata is (further) processed, and at the end of the processing, the module checks whether all checkpoints have been passed in the permitted order. Only then does the module consider the processing to be correct. The checks within multiple modules enable a fine-grained check of the program flow.

[0052] However, in this way, direct application of the reference Figure 2 In the case of the described inspection scheme, a separate processing block 202, 203, 204 is provided for each program section (from inspection point to inspection point) (because each program section, i.e. each inspection point, further processes the supplied metadata, as Figure 2 The processing block in is done as function F does).

[0053] However, especially in cases where multiple paths through the code are allowed in principle (i.e. should be considered correct processing), this does not scale well with the size of the overall processing, i.e. the total code length, i.e., with reference to Figure 2The described approach for distributed program flow checking is not scalable for program flow assurance at the source code level when the program flow in the source code has a certain (permitted) variability.

[0054] For example, in order to achieve sufficiently high diagnostic coverage for the entire application flow monitoring, the program flow within a microservice (in English: micro service, among multiple microservices that together form a (distributed) application (or application software)) must also be monitored with a certain granularity. This can be achieved at the source code level by introducing additional program flow control points (checkpoints) as described above (so that each checkpoint corresponds to a Figure 2 However, for the possible combinations of hundreds of microservices (or blocks) that together form a distributed application, Figure 2 The approach does not scale well for hundreds or even thousands of variably moving code checkpoints in a single microservice (or block). Examples of program flow elements that lead to intended (i.e., error-free) variability in code checkpoints passed at runtime include:

[0055] The number of data processing cycles that are dependent on the input data (e.g. 3 iterations vs. 30 iterations)

[0056] If-else branches that depend on input data or internal state (i.e. input data history).

[0057] The combinatorial complexity caused by the number of up to M different checkpoints in N modules and the many different valid results (in the worst case, M to the Nth power) produced at the end of this processing sequence of the modules passed can quickly become difficult to handle in practice. The data receiver 205 must check millions of possible correct execution paths and may have to calculate the correct signature (i.e., the corresponding reference value MDn') for each of them. It is also impossible to simply check whether the internal program flow within the microservice (or program block) is correct locally (i.e., on the corresponding execution node), because it is usually necessary to assume that the execution of such local checks themselves may be wrong (due to the execution of one or more microservices or block computing nodes in the data processing chain is potentially unsafe). In the worst case, the local check may have potential errors and always send a signal of the correct program flow on the node, thereby masking the existence of program flow errors and making the security monitoring mechanism invalid.

[0058] Therefore, the following describes Figure 2 A variant of the approach that achieves better scalability. This is achieved by:

[0059] 1) by program flow monitoring within individual application components (e.g. microservices or blocks), e.g. at the software source code level; such monitoring within application components is also referred to below as “in-chain” checking; and

[0060] 2) This is achieved by performing program flow monitoring across connected application components (i.e., at a logical level such as between microservices or blocks); this cross-application component monitoring is also called "out-of-chain" checking.

[0061] Figure 3 Program flow monitoring with external chain checking and internal chain checking is described.

[0062] and Figure 2 Similarly, there is a data source 301 and a processing chain with processing units 302 , 303 , 304 and a data receiver 305 .

[0063] refer to Figure 2 The described program flow monitoring corresponds to out-of-line testing, i.e. program flow monitoring across processing units 302, 303, 304. However, each processing unit now corresponds to an application component (i.e., for example, a subroutine such as a block or a microservice), for which (in each case, i.e., for each processing unit 302, 303, 304) an in-line check is performed.

[0064] With reference Figure 2 As with the program flow monitoring described, there is an initial version of the metadata MD0, which can also be regarded as a "challenge" (e.g., a challenge key) and processed by the processing chain. The data receiver 305 checks whether the result of the processing, i.e., the "response" (response key or signature), is correct, i.e., consistent with the reference result. The initial version of the metadata (i.e., the "challenge") can also be sent by the data receiver 305 itself to the first processing unit 302 of the processing chain (or also to the data source 301 to be forwarded to the first processing unit 302).

[0065] Figure 3 The program flow monitoring approach described in and explained in more detail below enables the identification of potential errors (i.e., situations where a processing unit has not performed its respective inline metadata processing or possibly a check) and the identification of program flow errors with a single challenge-response pair. This enables the correctness of the program flow passing through (on the processing chain) to be evaluated in the data receiver 305, while the complexity of the error identification logic on the data receiver 305 and the communication overhead can be kept low.

[0066] As described above, two levels of program flow checking (external links and internal links) are used. The first level (internal links) is a program flow check within a processing unit (i.e., an application component), such as a block or microservice at the source code level. If this check fails, the second level (external links) will also become invalid, i.e., the distributed flow check at the level of processing units 302, 303, 304 (i.e., across processing units 302, 303, 304) will also become invalid. This makes a scalable version of distributed program flow checking (DPFC) possible.

[0067] In other words, two metadata (e.g. key) conversion mechanisms are coupled together:

[0068] Internal chain checking, which performs internal program flow checking of application components for each application component (e.g., via checkpoints at the program code level)

[0069] • Out-of-link checking, which verifies the program flow at the level of application components (ie, across processing units 302, 303, 304).

[0070] As reference Figure 2 As explained, in program flow monitoring across processing units 202, 203, 204, for the i-th processing unit 202, 203, 204, the corresponding version of the metadata (MDi-1) is processed according to the (personal) key PKi of the i-th processing unit 202, 203, 204 according to function F, such as a hash function.

[0071] This is now also following Figure 3 The check for the external chain is performed in the program flow monitoring of , however, the key PKi is provided as the result of the metadata processing of MDi-1 by the i-th processing unit 302, 303, 304. In other words, the key obtained from the internal chain metadata processing of each processing unit 302, 303, 304 is used as the personal key (PKi) of the processing unit 302, 303, 304 for the external chain metadata processing.

[0072] Therefore, if the checking of the program flow in the inner chain (i.e. at the source code level) fails for some reason, the inner chain will generate an erroneous key. However, since this erroneous key is used as the personal key for the corresponding processing unit 302, 303, 304, the fact that it is erroneous will cause the metadata processing performed by the outer chain to be erroneous, and therefore the final version of the metadata provided will not be consistent with the reference result of the metadata processing.

[0073] For this purpose, a hash function F is used for program flow monitoring, which

[0074] a) enables the detection of various errors in the program flow, such as unintentional omission, duplication or reordering of checkpoints, and

[0075] b) is manipulable in view of the fact that the function can be used to provide predefined results for different data contents (i.e. useful data) so that a (fixed) personal key (PKi) can be predefined via an internal chain as a metadata processing result (if it is correct). The predefined key PKi for each processing unit 302, 303, 304 is used to determine a reference result for metadata processing for a specific challenge, i.e. a reference result for external chain processing of the current (external chain) version of the metadata supplied to the corresponding processing unit (also called data processing block) 302, 303, 304.

[0076] It should be noted here that the hash function F can be used for external program flow monitoring (refer to Figure 2 For explanation), it can also be used for inline program flow monitoring. In inline program flow monitoring, the function is applied in the program code, for example at each of a plurality of checkpoints, to the current (inline) version of the metadata, wherein a key (PK, for example PKi,j for the jth checkpoint in the i-th processing component) is assigned to each checkpoint, which key is entered into the function F.

[0077] In order to satisfy the above two characteristics a) and b), for example, a cyclic redundancy check function (CRC) is used as the hash function F, because the CRC function has the following characteristics:

[0078] (1) The CRC calculation of data can be divided into separate calculations for sub-ranges of data.

[0079] (2) When calculating a CRC value for arbitrary data, it is possible to force an arbitrary CRC result by appending a specific suffix to the data; the specific suffix can be analyzed and calculated for each given pair consisting of data and target CRC value.

[0080] (3) When the initial key of the CRC function is changed, the resulting CRC value can be modified in a targeted manner to restore the original CRC value.

[0081] Property (1) indicates that the CRC calculation can be stopped and continued when new data is available that should be included in the calculation. This can be used in the inline metadata processing in order to update the current version of the metadata when a checkpoint is reached in the program code, i.e. for the calculation of the key assigned to the checkpoint, e.g. PKi,j. Thus, the CRC calculation can be divided into multiple calculations, where the resulting CRC value of the sub-data is used as the initial value for the CRC calculation of the remaining data (here + refers to string concatenation):

[0082] crc(init,data_1+data_2+...+data_K)=crc(...(crc(crc(init,data_1),data_2)...,data_K)

[0083] Property (3) enables the use of different challenges MD0 by compensating for differences in the metadata delivered to the processing units at the end of the inline metadata processing, i.e., for the i-th processing unit, compensating for differences between MDi-1 (for which PKi is derived by the inline metadata processing) and other metadata MDi delivered to the i-th processing unit based on the changed challenge, so that the inline metadata processing of MDi-1 also results in the key PKi assigned to the i-th processing unit. Therefore, changes in the key PKi do not need to be taken into account when determining the reference result data.

[0084] Property (2) corresponds to requirement b required above. Even if the number of checkpoints passed through in the inline useful data processing (and resulting in the inline metadata processing) varies depending on the corresponding useful data (for example, because the number of loop iterations performed is different), the property (2) makes it possible to select the resulting PKi of the inline metadata processing fixedly (and for example arbitrarily) and assign it to the i-th processing unit. This is achieved by calculating a corresponding adaptation value (also a modification key) depending on the useful data supplied to the i-th processing unit, wherein the adaptation value is used to adapt the result of the inline metadata processing so that (if the program flow for the inline useful data processing is correct and therefore the inline metadata processing is correct) the key PKi is obtained after the adaptation.

[0085] This can be done by calculating a suitable suffix to yield PKi, for example as described in reference 1.

[0086] For example, if

[0087] PKi=crc(MDi,data_1+data_2+...+data_K)

[0088] Where data_k is the key for the checkpoint for a specific input to the i-th processing component, a suitable suffix data_K+1 can be determined so that if other useful data is fed to the i-th processing component and thus passes through a different number of checkpoints (or even partially passes through other checkpoints), then it applies:

[0089] PKi=crc(MDi,data'_1+data'_2+...+data'_K'+data'_K'+1).

[0090] For example, a suitable suffix is ​​determined for each possible number of checkpoints that the program may pass through when it is executed correctly. When the i-th processing unit starts the program, the corresponding function (e.g., a program flow monitoring tool) estimates the expected number of checkpoints passed (e.g., depending on the length of the input useful data, its structure or possibly its content). For the expected number of checkpoints, the corresponding suffix is ​​selected and cached. For simplicity, it is assumed here that each checkpoint is assigned the same key that enters the inline metadata processing; if this is not the case, a larger number of suffixes must be selected accordingly, depending on which checkpoints are passed with what frequency. However, for example, checkpoints can be set in the two branches of the if-else command that are assigned the same key, so that too many suffixes are not required. If the inline metadata processing ends, the metadata processing result is adapted according to the previously cached suffix (by appending to the input data of the CRC function, for example, data_K+1 as described above). If these checkpoints are passed correctly, this will result in a predefined personal key that has been assigned to the processing unit (as an adapted metadata processing result). The result of the metadata processing by the i-th processing unit is used as the key PKi for the i-th processing unit to calculate MDi=(MDi-1, PKi).

[0091] As reference Figure 2 As described, after the metadata processing of all processing units, the (safety-oriented) trusted data receiver 305 checks the final result of the metadata processing by comparing the final result (response) with the previously calculated reference result. If the response and the reference value are consistent, the program flow check gives a positive result, indicating that no errors related to the program flow have been determined in the inner and outer chains.

[0092] In summary, according to different embodiments, the following are provided: Figure 4 The method shown.

[0093] Figure 4 A flow chart 400 is shown which represents a method for checking useful data processing according to one specific embodiment.

[0094] In 401, the useful data and the metadata are processed together by a sequence of a plurality of data processing blocks, so that the useful data is processed from an initial version of the useful data to a final version of the useful data and the metadata is processed from an initial version of the metadata to a final version of the metadata, wherein:

[0095] In 402, for each data processing block, an adaptation value is determined according to the useful data version supplied to the data processing block, so that if the metadata data version supplied to the data processing block is correctly processed by the data processing block into a corresponding processing result, then the processing result is equal to the value assigned to the data processing block after being adapted according to the adaptation value according to a predetermined adaptation rule,

[0096] ·In 403, each data processing block processes the metadata version delivered to it, and derives the next metadata version (for delivery to the next data processing block, or as the final version of the metadata if the data processing block is the last one in the sequence) from the metadata version delivered to the data processing block based on the processing result of the data processing block adapted according to the adaptation value according to the predetermined adaptation rule.

[0097] 402 and 403 are iteratively performed for each data processing block in accordance with the sequence, ie in the order of the data processing blocks in the sequence. Here, the useful data are also iteratively processed in this order by these data processing blocks.

[0098] In 404: Check whether the useful data has been processed correctly by checking whether the final version of the metadata is consistent with the reference final version of the metadata.

[0099] The reference final version of the metadata (or reference result data, reference signature or reference key) can be determined (and stored) in advance (wherein the determination may also only include, for example, receiving the reference result data from a data source) or determined after receiving the metadata result data.

[0100] Figure 4The method can be performed by one or more computers having one or more data processing units. In particular, each (or at least some of) data processing blocks can correspond to a data processing unit. The term "data processing unit" can be understood as any type of entity capable of processing data or signals. For example, data or signals can be processed according to at least one (i.e., one or more) specific functions performed by the data processing unit. The data processing unit may include an analog circuit, a digital circuit, a logic circuit, a microprocessor, a microcontroller, a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), a programmable gate array integrated circuit (FPGA), or any combination thereof or formed thereby. Any other means for implementing the corresponding functions described in more detail herein may also be understood as a data processing unit or a logic circuit device. One or more of the method steps performed by the data processing unit described in detail herein may be performed (e.g., implemented) by one or more specific functions performed by the data processing unit.

[0101] Figure 4 The method can be applied in particular to data processing for generating control signals for a robotic device, for example from sensor data recorded by the robotic device. The term "robotic device" is to be understood as relating to any technical system having mechanical parts whose own movement is controlled, such as a computer-controlled machine, a vehicle, a household appliance, a power tool, a manufacturing machine, a personal assistant or an access control system. Control rules are learned for the technical system and the technical system is then controlled accordingly.

[0102] A corresponding inspection protocol may, for example, be included in a corresponding standard, for example a communication standard (such as for V2X communication).

[0103] Different embodiments may receive and use processed sensor signals from different sensors, such as video, radar, lidar, ultrasonic, motion, thermal imaging, etc.

Claims

1. A method for checking the processing of useful data (ND0), the method comprising: The useful data (ND0) and the metadata (MD0) are processed together by a sequence of a plurality of data processing blocks (302, 303, 304), so that the useful data (ND0) is processed from an initial version (ND0) of the useful data to a final version (NDn) of the useful data and the metadata (MD0) is processed from an initial version (MD0) of the metadata to a final version (MDn) of the metadata, wherein for each data processing block (302, 303, 304), an adaptation value is determined according to a useful data version supplied to the data processing block, so that if the metadata data version supplied to the data processing block is correctly processed by the data processing block (302, 303, 304) into a corresponding processing result, the processing result is equal to the value (PK1, PK2, PKn) assigned to the data processing block (302, 303, 304) after being adapted according to the adaptation value according to a predetermined adaptation rule; and Each data processing block (302, 303, 304) processes the metadata version delivered to it, and derives the next metadata version from the metadata version delivered to the data processing block according to the processing result of the data processing block adapted according to the adaptation value according to the predetermined adaptation rule; and It is checked whether the useful data (ND0) has been processed correctly by checking whether the final version (MDn) of the metadata is consistent with the reference final version of the metadata.

2. A method according to claim 1, wherein for each data processing block (302, 303, 304), the next metadata version is derived from the metadata version delivered to the data processing block by applying a function to the metadata version delivered to the data processing block and the processing result of the data processing block after adaptation using an adaptation value according to a predetermined adaptation rule. The method according to claim 2 , wherein the function is a cyclic redundancy check function.

4. A method according to any one of claims 1 to 3, wherein each data processing block (302, 303, 304) processes the metadata version delivered to the data processing block according to the checkpoints passed when processing useful data (ND0), and determines the adaptation value by determining which checkpoints are passed when processing useful data (ND0) and / or the number of checkpoints passed.

5. The method according to claim 4, wherein: The metadata versions supplied to the data processing blocks (302, 303, 304) are iteratively processed by the data processing blocks (302, 303, 304) in that, for each checkpoint passed, the metadata version is processed according to the metadata processing value assigned to the checkpoint.

6. A method according to claim 5, wherein the metadata version delivered to the data processing block (302, 303, 304) is iteratively processed by the data processing block (302, 303, 304), in that for each checkpoint passed, the metadata version is processed by applying a CRC function, wherein the CRC function obtains as input a metadata processing value assigned to the data processing block (302, 303, 304).

7. The method according to any one of claims 1 to 6, wherein the adaptation rule comprises: The processing result is adapted according to the difference between the initial version of metadata (MD0) and the reference initial version of metadata.

8. A data processing device, arranged to execute the method according to any one of claims 1 to 7.

9. A data processing device, which is configured to: determine an adaptation value based on a useful data version supplied to the data processing device, so that if the metadata data version supplied to the data processing device is correctly processed by the data processing device (302, 303, 304) into a corresponding processing result, then the processing result is equal to the value (PK1, PK2, PKn) assigned to the data processing device (302, 303, 304) after being adapted according to the adaptation value according to a predetermined adaptation rule; and The metadata version (MD0, MD1, MD2, MDn-1) delivered to the data processing device is processed, and the next metadata version (MD1, MD1, MD2, MDn) is derived from the metadata version delivered to the data processing device according to the processing result adapted by the data processing device according to the adaptation value according to the predetermined adaptation rule.

10. A computer program having instructions which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 7.

11. A computer readable medium storing instructions which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 7.