Configurable system and method for realizing multiple E2E profiles
By splitting the Protect and Check modules, adopting a configurable system and methodology, and utilizing Profile 4's JSON configuration to implement multiple E2E profiles, the problems of large workload and custom requirements in existing technologies are solved, and flexible E2E profile support is achieved.
Patent Information
- Application Number
- CN202411534957.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technologies require a significant amount of work to implement various E2E profiles and cannot meet custom requirements; existing algorithms are not adaptable to a variety of application scenarios.
By splitting the Protect module and the Check module, and using a configurable system and method, multiple E2E profiles are implemented using Profile 4's JSON configuration, including a configuration module, a policy module, a generation module, and a CRC calculation module, which perform CRC verification and parsing respectively.
It achieves configurability of the E2E profile, supports custom algorithms, and improves the system's flexibility and efficiency.
Smart Images

Figure CN119045798A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to E2E configuration technology, and in particular to a system and method capable of configuring and implementing multiple E2E profiles. Background Art
[0002] With the development of electric smart cars, car manufacturers can provide more and more functions to users, and "software-defined cars" has become an industry consensus. In the process of automotive software communication, information security is very important. Message tampering and changes in messages during transmission will result in receiving erroneous data. The E2E method of encryption and verification can effectively solve the above problems, but there are also some disadvantages: Since E2E covers a wide range and involves multiple application scenarios, a variety of E2E profiles are generated. If they are implemented one by one, it will require a lot of work; and in some cases, the existing algorithms cannot meet the requirements, and a unique E2E algorithm needs to be customized. Summary of the invention
[0003] In order to solve the deficiencies in the prior art, an object of the present invention is to provide a system and method that can configure and implement multiple E2E profiles.
[0004] To achieve the purpose of the present invention, the technical solution adopted by the present invention is: A system that can be configured to implement multiple E2E profiles, including a Protect module and a Check module; The Protect module includes a configuration module, a policy module, a generation module, and a CRC calculation module; the Check module includes a configuration module, a policy module, an extraction module, and a CRC calculation module; Endpoint 1 uses the Protect module to protect the source data and sends the processed data to Endpoint 2. After Endpoint 2 receives the Protected data sent by Endpoint 1, it uses the Check module to check and sends the final valid source data to Endpoint 2.
[0005] Furthermore, in the Protect module, Endpoint 1 sends the source data to the Configuration module to add a CRC check header through Profile4; The configuration module obtains the configuration of Profile 4 from the policy module, and the policy module returns the json configuration for Profile 4; The configuration module sends the source data and the configuration of profile 4 to the generation module, and the generation module assembles the data according to the source data and the configuration; The generation module sends the generated data packet to the CRC calculation module, which performs CRC calculation and fills the data packet through the "algorithm" and "calcRange" provided by the JSON configuration of Profile 4. After obtaining the Protected data, it is sent to Endpoint 2.
[0006] Furthermore, in the Check module, after Endpoint 2 receives the Protected data sent by Endpoint 1, the Protected data is sent to the Configuration module to add a CRC check header through Profile 4; The configuration module obtains the configuration of Profile 4 from the policy module, and the policy module returns the json configuration for Profile 4; The configuration module sends the protected data and the configuration of profile 4 to the extraction module, and the extraction module extracts data according to the protected data and the configuration; The extraction module sends the extracted data to the CRC calculation module, which performs CRC calculation and parses the data packet through the "algorithm" and "calcRange" provided by the JSON configuration of Profile 4, obtains the final valid source data, and sends it to Endpoint 2.
[0007] Further, the generation module assembles the data according to the source data and the configuration, and assembles the data according to the position and length of each field; The extraction module extracts data according to the Protected data and configuration, and extracts data according to the position and length of each field.
[0008] Furthermore, the json configuration of Profile 4 includes a crc field, which includes "flag", "length", "index", "algorithm" and "calcRange"; "flag" is 1, indicating that the field exists, and 0, indicating that the field does not exist; "length" indicates the length of bytes occupied by the field; "index" indicates the index of the field in the message weight.
[0009] Furthermore, "algorithm" indicates which crc algorithm is used, and "calcRange" indicates the data range for calculating crc.
[0010] Furthermore, the profile 4 message body includes "length", "counter", and "dataid", and the lengths are 2, 2, and 4 respectively; and the indexes are 0, 2, and 4 respectively.
[0011] A method that can be configured to implement multiple E2E profiles. Endpoint 1 uses the Protect module to protect the source data and sends the processed data to Endpoint 2. After Endpoint 2 receives the Protected data sent by Endpoint 1, it uses the Check module to perform a check and sends the final valid source data to Endpoint 2.
[0012] Furthermore, in the Protect module, Endpoint 1 sends the source data to the Configuration module to add a CRC check header through Profile4; The configuration module obtains the configuration of Profile 4 from the policy module, and the policy module returns the json configuration for Profile 4; The configuration module sends the source data and the configuration of profile 4 to the generation module, and the generation module assembles the data according to the source data and the configuration; The generation module sends the generated data packet to the CRC calculation module, which performs CRC calculation and fills the data packet through the "algorithm" and "calcRange" provided by the JSON configuration of Profile 4. After obtaining the Protected data, it is sent to Endpoint 2.
[0013] Furthermore, in the Check module, after Endpoint 2 receives the Protected data sent by Endpoint 1, the Protected data is sent to the Configuration module to add a CRC check header through Profile 4; The configuration module obtains the configuration of Profile 4 from the policy module, and the policy module returns the json configuration for Profile 4; The configuration module sends the protected data and the configuration of profile 4 to the extraction module, and the extraction module extracts data according to the protected data and the configuration; The extraction module sends the extracted data to the CRC calculation module, which performs CRC calculation and parses the data packet through the "algorithm" and "calcRange" provided by the JSON configuration of Profile 4, obtains the final valid source data, and sends it to Endpoint 2.
[0014] The beneficial effect of the present invention is that, compared with the prior art, the present invention realizes configurable implementation of various E2E profiles by splitting the algorithm modules; and realizes a customized E2E Profile algorithm by configuring different parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a schematic diagram of a system capable of configuring and implementing multiple E2E profiles according to the present invention; Figure 2 This is the schematic diagram of the Protect module; Figure 3 It is a data schematic diagram of the generated module assembly; Figure 4 This is a schematic diagram of the Check module. DETAILED DESCRIPTION
[0016] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of this application.
[0017] like Figure 1 As shown, the system that can be configured to implement multiple E2E profiles according to the present invention includes a Protect module and a Check module.
[0018] Endpoint 1 uses the Protect module to protect the source data and sends the processed data to Endpoint 2. After Endpoint 2 receives the Protected data sent by Endpoint 1, it checks it through the Check module and sends the final valid source data to Endpoint 2.
[0019] The present invention disassembles the processes of the Protect module and the Check module to generate multiple Profile algorithms through one system.
[0020] like Figure 2 As shown, the Protect module in the present invention includes a Configuration Module, a Policy Module, a Generate Module, and a CRC Calculation Module.
[0021] Endpoint 1 sends the source data to the Configuration Module of the Protect module to add a CRC check header through Profile 4.
[0022] The configuration module obtains the configuration of Profile 4 from the policy module, and the policy module returns the json configuration for Profile 4.
[0023] The Configuration Module sends the source data and the configuration of profile 4 to the Generate Module. The Generate Module assembles the data according to the source data and the configuration, and assembles the data according to the position and length of each field, such as Figure 3 shown.
[0024] The Generate Module sends the generated data packet to the CRC Calculation Module, which performs CRC calculation and fills the data packet through the "algorithm" and "calcRange" provided by the previous Profile 4 json configuration. After obtaining the Protected data, it is sent to Endpoint 2.
[0025] The configuration of Profile 4 is as follows: "length": { "flag": 0, "length": 0, "index": 0 }, "counter": { "flag": 1, "length": 1, "index": 2 }, "dataid": { "flag": 0, "length": 0, "index": 0 }, "crc": { "flag": 1, "length": 4, "index": 8 "algorithm":"crc32p4" "calcRange":[ { "start":2, "end":-1}, { "start":"dataid", "end":-1 } ] } Among them, "Policy Module" returns the json configuration for Profile 4 as follows: "length": { "flag": 1, "length": 2, "index": 0 }, "counter": { "flag": 1, "length": 2, "index": 2 }, "dataid": { "flag": 1, "length": 4, "index": 4 }, "crc": { "flag": 1, "length": 4, "index": 8 "algorithm":"crc32p4" "calcRange":[ { "start":0, "end":8 }, { "start":12, "end":-1 } ] } Configuration instructions: (1) Except for the crc field, each field consists of three fields: "flag", "length", and "index".
[0026] "flag" is 1, indicating that the field exists, and 0, indicating that the field does not exist.
[0027] "Length" indicates the length of bytes occupied by this field.
[0028] "index" indicates the index of the field in the message weight.
[0029] (2) The above configuration indicates that the profile 4 message body includes "length", "counter", and "dataid", and the lengths are 2, 2, and 4 respectively; the indexes are 0, 2, and 4 respectively.
[0030] (3) The CRC field includes "flag", "length", "index", "algorithm" and "calcRange".
[0031] (4) "algorithm" indicates which CRC algorithm is used. Profile 4 uses CRC32P4. "calcRange" indicates the data range for calculating CRC. Profile 4 uses the calculation from the starting position of the data to index 8, and the calculation result is calculated from position 12 to the data bit.
[0032] like Figure 4 As shown, the Check module includes a configuration module, a policy module, an extraction module, and a crc calculation module.
[0033] The Check process is similar to the Protect process, but the process is a reverse operation, from generating data to converting it into parsed data.
[0034] After Endpoint 2 receives the Protected data sent by Endpoint 1, it sends the Protected data to the Configuration Module of the Check module to add a CRC check header through Profile 4.
[0035] The configuration module obtains the configuration of Profile 4 from the policy module, and the policy module returns the json configuration for Profile 4.
[0036] The Configuration Module sends the Protected data and the configuration of profile 4 to the Extract Module. The Extract Module extracts data according to the Protected data and the configuration, and extracts data according to the position and length of each field.
[0037] The Extract Module sends the extracted data to the CRC Calculation Module, which performs CRC calculation and parses the data packet through the "algorithm" and "calcRange" provided by the previous Profile 4 JSON configuration to obtain the final valid source data and send it to Endpoint 2.
[0038] The present invention also provides a method for configuring and implementing multiple E2E profiles, comprising the steps of: (1) Endpoint 1 uses the Protect module to protect the source data and then sends the processed data to Endpoint 2; In the Protect module, Endpoint 1 sends the source data to the Configuration module to add a CRC check header through Profile 4; The configuration module obtains the configuration of Profile 4 from the policy module, and the policy module returns the json configuration for Profile 4; The configuration module sends the source data and the configuration of profile 4 to the generation module, and the generation module assembles the data according to the source data and the configuration; The generation module sends the generated data packet to the CRC calculation module, which performs CRC calculation and fills the data packet through the "algorithm" and "calcRange" provided by the JSON configuration of Profile 4. After obtaining the Protected data, it is sent to Endpoint 2.
[0039] (2) After Endpoint 2 receives the Protected data sent by Endpoint 1, it performs a check through the Check module and sends the final valid source data to Endpoint 2.
[0040] In the Check module, after Endpoint 2 receives the Protected data sent by Endpoint 1, the Protected data is sent to the Configuration module to add a CRC check header through Profile 4; The configuration module obtains the configuration of Profile 4 from the policy module, and the policy module returns the json configuration for Profile 4; The configuration module sends the protected data and the configuration of profile 4 to the extraction module, and the extraction module extracts data according to the protected data and the configuration; The extraction module sends the extracted data to the CRC calculation module, which performs CRC calculation and parses the data packet through the "algorithm" and "calcRange" provided by the JSON configuration of Profile 4, obtains the final valid source data, and sends it to Endpoint 2.
[0041] The beneficial effect of the present invention is that, compared with the prior art, the present invention realizes configurable implementation of various E2E profiles by splitting the algorithm modules; and realizes a customized E2E Profile algorithm by configuring different parameters.
[0042] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.
Claims
1. A system capable of implementing multiple E2E profiles, characterized in that: Includes Protect module and Check module; The Protect module includes a configuration module, a policy module, a generation module, and a CRC calculation module; the Check module includes a configuration module, a policy module, an extraction module, and a CRC calculation module; Endpoint 1 uses the Protect module to protect the source data and sends the processed data to Endpoint 2. After Endpoint 2 receives the Protected data sent by Endpoint 1, it uses the Check module to check and sends the final valid source data to Endpoint 2.
2. The system capable of implementing multiple E2E profiles according to claim 1, characterized in that: In the Protect module, Endpoint 1 sends the source data to the Configuration module to add a CRC check header through Profile 4; The configuration module obtains the configuration of Profile 4 from the policy module, and the policy module returns the json configuration for Profile 4; The configuration module sends the source data and the configuration of profile 4 to the generation module, and the generation module assembles the data according to the source data and the configuration; The generation module sends the generated data packet to the CRC calculation module, which performs CRC calculation and fills the data packet through the "algorithm" and "calcRange" provided by the json configuration of Profile 4. After obtaining the Protected data, it is sent to Endpoint 2.
3. The system capable of implementing multiple E2E profiles according to claim 2, characterized in that: In the Check module, after Endpoint 2 receives the Protected data sent by Endpoint 1, the Protected data is sent to the Configuration module to add a CRC check header through Profile 4; The configuration module obtains the configuration of Profile 4 from the policy module, and the policy module returns the json configuration for Profile 4; The configuration module sends the protected data and the configuration of profile 4 to the extraction module, and the extraction module extracts data according to the protected data and the configuration; The extraction module sends the extracted data to the CRC calculation module, which performs CRC calculation and parses the data packet through the "algorithm" and "calcRange" provided by the JSON configuration of Profile 4, obtains the final valid source data, and sends it to Endpoint 2.
4. The system capable of implementing multiple E2E profiles according to claim 3, characterized in that: The generation module assembles data according to the source data and configuration, and assembles data according to the position and length of each field; The extraction module extracts data according to the Protected data and configuration, and extracts data according to the position and length of each field.
5. The system capable of implementing multiple E2E profiles according to claim 3, characterized in that: The json configuration of Profile4 includes a crc field, which includes "flag", "length", "index", "algorithm" and "calcRange"; "flag" is 1, indicating that the field exists, and 0, indicating that the field does not exist; "length" indicates the length of bytes occupied by the field; "index" indicates the index of the field in the message weight.
6. The system capable of implementing multiple E2E profiles according to claim 5, characterized in that: "algorithm" indicates which CRC algorithm is used, and "calcRange" indicates the data range for calculating CRC.
7. The system capable of implementing multiple E2E profiles according to claim 5, characterized in that: The profile4 message body includes "length", "counter", and "dataid", and the lengths are 2, 2, and 4 respectively; the indexes are 0, 2, and 4 respectively.
8. A method for implementing multiple E2E profiles, based on the system for implementing multiple E2E profiles according to any one of claims 1 to 7, characterized in that: Endpoint 1 uses the Protect module to protect the source data and sends the processed data to Endpoint 2. After Endpoint 2 receives the Protected data sent by Endpoint 1, it uses the Check module to check and sends the final valid source data to Endpoint 2.
9. The method for implementing multiple E2E profiles configurable according to claim 8, characterized in that: In the Protect module, Endpoint 1 sends the source data to the Configuration module to add a CRC check header through Profile 4; The configuration module obtains the configuration of Profile 4 from the policy module, and the policy module returns the json configuration for Profile 4; The configuration module sends the source data and the configuration of profile 4 to the generation module, and the generation module assembles the data according to the source data and the configuration; The generation module sends the generated data packet to the CRC calculation module, which performs CRC calculation and fills the data packet through the "algorithm" and "calcRange" provided by the json configuration of Profile 4. After obtaining the Protected data, it is sent to Endpoint 2.
10. The method for implementing multiple E2E profiles configurable according to claim 8, characterized in that: In the Check module, after Endpoint 2 receives the Protected data sent by Endpoint 1, the Protected data is sent to the Configuration module to add a CRC check header through Profile 4; The configuration module obtains the configuration of Profile 4 from the policy module, and the policy module returns the json configuration for Profile 4; The configuration module sends the protected data and the configuration of profile 4 to the extraction module, and the extraction module extracts data according to the protected data and the configuration; The extraction module sends the extracted data to the CRC calculation module, which performs CRC calculation and parses the data packet through the "algorithm" and "calcRange" provided by the JSON configuration of Profile 4, obtains the final valid source data, and sends it to Endpoint 2.
Citation Information
Patent Citations
E2E verification method and device for CAN bus message
CN115085867A
Method and apparatus for scheduling and buffering data packet, and computer storage medium
WO2014146468A1
