A method, system, device and medium for secure communication between domains

By using periodic sending event messages and verifying them with verification information in intelligent connected vehicles, the problem of difficult event messages is solved, the security and integrity of data transmission are achieved, and the normal communication status is ensured. sex.

CN115955356BActive Publication Date: 2024-11-05CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310002604.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-03
Publication Date
2024-11-05
Estimated Expiration
2043-01-03

AI Technical Summary

Technical Problem

In intelligent connected vehicles, event-type packets with service-based functions are difficult to achieve end-to-end protection, affecting the security of application functions.

Method used

By obtaining event messages from the sending end, sending them multiple times according to the preset period, and generating verification information. The receiving end determines the communication status based on the verification result. If it is normal, data transmission will be carried out. If it is abnormal, data will be refused to receive data, and cyclic redundancy will be used. Verify the verification code, counter, data identification, etc. for data security verification.

Benefits of technology

It effectively ensures the security of data transmission between the two parties of the communication, ensures the integrity and consistency of event-type messages, and prevents data corruption and abnormal transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115955356B_ABST
    Figure CN115955356B_ABST
Patent Text Reader

Abstract

The present application provides a method, system, device and medium for secure communication between domains, the method comprising: obtaining an event message from a sending end, sending the event message multiple times according to a preset period; generating verification information based on the event message sent each time and outputting it to a receiving end, so that the receiving end performs verification according to the verification information, obtains a verification result, and determines the communication state with the sending end according to the verification result, so as to perform data transmission with the sending end when the communication state is normal. The present application can effectively ensure the security of data communication between domains.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle communication security applications, and in particular to an inter-domain secure communication method, system, device and medium. Background Art

[0002] Service-oriented application software has gradually become a new trend in intelligent connected vehicles. Service-oriented software has advantages such as better deployment flexibility and stronger functional scalability, but the problem that comes with it is how to achieve the corresponding functional safety level for inter-domain Ethernet communications of service-oriented functions. Moreover, service-oriented functions are mostly event-type messages, and traditional E2E (end to end) protection methods based on periodic messages between domain applications and applications are difficult to implement in service-oriented application software. Summary of the invention

[0003] In view of the above problems existing in the prior art, the present application proposes a secure communication method, system, device and medium, which mainly solves the problem that existing event-type messages are difficult to protect end-to-end, affecting the security of application functions.

[0004] In order to achieve the above-mentioned purpose and other purposes, the technical solution adopted in this application is as follows.

[0005] The present application provides a method for secure communication between domains, including:

[0006] Obtaining an event message from a sending end, and sending the event message multiple times according to a preset period;

[0007] Verification information is generated based on the event message sent each time and output to the receiving end, so that the receiving end performs verification according to the verification information to obtain a verification result, and determines the communication status with the sending end according to the verification result, so as to transmit data with the sending end when the communication status is normal.

[0008] In an embodiment of the present application, the receiving end performs verification according to the verification information to obtain a verification result, including:

[0009] The content consistency of the event messages in different periods is verified according to the verification information to obtain the verification result.

[0010] In an embodiment of the present application, determining the communication state with the sending end according to the verification result includes:

[0011] If the verification result is that the contents of the event messages received in each period are consistent, then the communication status is normal;

[0012] If the content of the event message of at least one cycle in the verification result is inconsistent with the content of the event message of other cycles, the communication state is abnormal.

[0013] In one embodiment of the present application, if the communication status is abnormal, the receiving end enters a preset security state to refuse to receive the data transmission request of the sending end.

[0014] In one embodiment of the present application, when the communication state is normal, performing data transmission with the sending end includes:

[0015] Filtering repeated event messages received in a plurality of consecutive periods by using a preset filtering rule to retain a copy of the event message;

[0016] Event processing is performed based on the retained event message.

[0017] In one embodiment of the present application, the verification information includes: a cyclic redundancy check code, a counter, and a data identifier.

[0018] In an embodiment of the present application, sending the event message multiple times according to a preset period includes:

[0019] The event message is repeatedly sent according to the preset period until the sending end updates the event message content.

[0020] The present application also provides an inter-domain secure communication system, comprising:

[0021] A message configuration module, used to obtain an event message from a sending end, and send the event message multiple times according to a preset period;

[0022] A security verification output module is used to generate verification information based on each event message sent and output it to the receiving end, so that the receiving end can perform verification according to the verification information to obtain a verification result, and determine the communication status with the sending end according to the verification result, so as to transmit data with the sending end when the communication status is normal.

[0023] The present application also provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the inter-domain secure communication method when executing the computer program.

[0024] The present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the inter-domain secure communication method are implemented.

[0025] As described above, the present application provides a method, system, device and medium for secure communication between domains, which have the following beneficial effects.

[0026] The present application obtains the event message of the sending end, and sends the event message multiple times according to a preset period; generates verification information based on the event message sent each time and outputs it to the receiving end, so that the receiving end performs verification according to the verification information, obtains the verification result, and determines the communication status with the sending end according to the verification result, so as to perform data transmission with the sending end when the communication status is normal. By converting the event message into a periodic message for transmission, and combining the verification information to perform data security verification, and determining the communication status of the sending end and the receiving end, the security of data transmission between the communicating parties can be effectively guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 This is a flow chart of a method for secure inter-domain communication in one embodiment of the present application.

[0028] Figure 2 This is a schematic diagram of the communication architecture of an inter-domain controller in which a security monitoring module is deployed in one embodiment of the present application.

[0029] Figure 3 This is a schematic diagram of the inter-domain data verification architecture in one embodiment of the present application.

[0030] Figure 4 This is a module diagram of an inter-domain secure communication system in one embodiment of the present application.

[0031] Figure 5 It is a schematic diagram of the structure of a device in one embodiment of the present application. DETAILED DESCRIPTION

[0032] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0033] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.

[0034] See also Figure 1 , the present application provides a method for secure communication between domains, the method comprising the following steps:

[0035] Step S100, obtaining an event message from a sending end, and sending the event message multiple times according to a preset period;

[0036] Step S110, based on the event message sent each time, generates verification information and outputs it to the receiving end, so that the receiving end performs verification according to the verification information to obtain a verification result, and determines the communication status with the sending end according to the verification result, so as to transmit data with the sending end when the communication status is normal.

[0037] In step S100, an event message from a sending end is obtained, and the event message is sent multiple times according to a preset period.

[0038] See also Figure 2 , Figure 2The schematic diagram of the inter-domain controller communication architecture in which a security monitoring module is deployed in one embodiment of the present application. In one embodiment, the transmitting end and the receiving end may be the domain controllers on the vehicle side, each domain controller is connected to different application layer software, and receives messages fed back by the application layer application software. Most of the messages fed back by the application layer software are event-type messages, which are difficult to verify through end-to-end protection. Therefore, in the embodiment of the present application, in order to protect the data in the application layer software control device of the function service or in the Ethernet communication process, a new Ethernet communication security monitoring module with an automotive safety integrity level (ASIL, Automotive Safety Integrity Level) is added between the Ethernet protocol stack and the energy service application. When failures such as message delay and message loss occur during Ethernet communication, the Ethernet communication security monitoring module can detect the relevant failures in time and pass the communication failure information to the application software, which will complete the corresponding fault handling actions. In addition, since the messages that the functional service software needs to send are mostly event-type messages, and event-type messages cannot be protected by E2E during inter-domain communication, the Ethernet communication security monitoring module also converts the event-type messages of the functional service into periodic messages for transmission, thereby realizing E2E protection of the complete communication process. The Ethernet communication security monitoring module is set at the sending end to add protection to the data of the sending end, and changes the event-type messages to periodic transmission according to the configuration of the application software; the monitoring module is used at the receiving end to verify the data field segment and check segment of the sending end, and filter out the new messages that supplement the event message of the sending end as the periodic message, so as to know whether the data sent by the sending end is damaged during the communication process, and the Ethernet communication security monitoring module sends this verification result to the corresponding application for processing. Among them, ASIL is usually divided into four levels: A, B, C, and D. The ASIL safety level of different application software can be configured according to actual application requirements. After controller A receives the event message sent by application software A, the Ethernet communication security monitoring module repeatedly sends the event message based on the sending period pre-configured by application software A (for example, 10ms, 20ms, etc., not limited here).

[0039] In one embodiment, sending the event message multiple times according to a preset period includes: repeatedly sending the event message according to the preset period until the sending end updates the event message content.

[0040] In one embodiment, controller A acts as a data transmitter and controller B acts as a data receiver. Application software A sends data (periodic data or event data) that requires inter-domain communication to the Ethernet security monitoring module of controller A, and configures the message sending period to the Ethernet security monitoring module. The Ethernet security monitoring module converts the event-type message into a periodic message based on the content and sending period of the event-type message sent by the controller application layer. Specifically, the Ethernet security monitoring module periodically sends one or more messages of the event-type message as Class A messages until the next time an application software updates the message content. The security monitoring module continues to send this message repeatedly according to the preset period.

[0041] In step S110, verification information is generated based on the event message sent each time and output to the receiving end, so that the receiving end performs verification according to the verification information to obtain a verification result, and determines the communication status with the sending end according to the verification result, so as to transmit data with the sending end when the communication status is normal.

[0042] See also Figure 3 , Figure 3 This is a schematic diagram of the inter-domain data verification architecture in one embodiment of the present application. In one embodiment, the security monitoring module converts the event-type message into a periodic message and needs to perform E2E communication protection on it, including a cyclic redundancy check code (CRC), a counter (COUNTER), a data identifier (DATA ID), etc.

[0043] In one embodiment, the receiving end performs verification according to the verification information to obtain a verification result, including: verifying the content consistency of the event messages of different periods according to the verification information to obtain the verification result.

[0044] Specifically, taking the cyclic redundancy check code as an example, the event message is represented as a polynomial L, and L is divided by a predetermined polynomial G(X). The remainder obtained is the required cyclic redundancy check code. The verification process is performed at the receiving end to determine whether the data is wrong, and if so, error correction is performed. A CRC code must be divisible by the generating polynomial, so the codeword is divided by the same generating polynomial at the receiving end. If the remainder is 0, the codeword has no error; if the remainder is not 0, it means that a certain bit is wrong, and the remainders of different error positions are different. The verification process of other verification messages is conventional technology in this field and will not be repeated here.

[0045] In one embodiment, the communication status with the sending end is determined based on the verification result, including: if the verification result is that the contents of the event messages received in each period are consistent, then the communication status is normal; if the contents of the event messages of at least one period in the verification result are inconsistent with the contents of the event messages of other periods, then the communication status is abnormal.

[0046] In one embodiment, the Ethernet protocol stack transmits the data protected by the security monitoring module to controller B via Ethernet, and the protocol stack of the receiver transmits the received protected data to the receiving end, i.e., the security monitoring module of controller B; the security monitoring module of controller B performs E2E verification on the received data according to preset rules, including (CRC, COUNTER, DATA ID). And transmits the data segment and the verification result to the application software B at the receiving end. Application software B of controller B receives the data sent by application software A, and determines whether the message is damaged through the E2E verification information fed back by the security monitoring module at the receiving end, and then determines the communication status with controller A. If the content of the event message of each cycle is consistent, the communication status between controller B and controller A is determined to be normal, otherwise, it is abnormal.

[0047] In one embodiment, if the communication status is abnormal, the receiving end enters a preset security state to refuse to receive the data transmission request of the sending end.

[0048] Specifically, controller B, as the receiving end, determines through end-to-end verification that the transmitted event message is damaged and the contents of messages in different cycles are inconsistent, and then determines that the communication status with controller A is abnormal. The Ethernet connection with controller A can be disconnected to enter a safe state to prevent the reception of abnormal data from affecting the normal operation of the application layer function.

[0049] In one embodiment, data transmission is performed with the sending end when the communication state is normal, including: filtering repeated event messages received in multiple consecutive cycles by preset filtering rules to retain a copy of the event message; and performing event processing based on the retained event message.

[0050] Specifically, the security monitoring module at the receiving end can filter out repetitive messages actively generated by the sending end according to certain rules. For example, the timestamp of the received repeated event message can be recorded, and data can be deleted based on the timestamp, retaining only the first received event message or the last received event message. The specific filtering rules can be set according to the actual application requirements and are not limited here. After receiving the event message, the application software B of the controller B can perform corresponding event processing based on the event message. If the event message is an exception identification code, the strategy for processing the corresponding abnormal event can be called based on the exception identification code to perform exception processing. The content and form of the specific event message are not limited here.

[0051] See also Figure 4 This embodiment provides an inter-domain secure communication system for executing the inter-domain secure communication method described in the aforementioned method embodiment. Since the technical principle of the system embodiment is similar to that of the aforementioned method embodiment, the same technical details will not be repeated.

[0052] In one embodiment, an inter-domain secure communication system includes: a message configuration module 10, used to obtain an event message from a sending end, and send the event message multiple times according to a preset period; a security verification output module 11, used to generate verification information based on the event message sent each time and output it to a receiving end, so that the receiving end performs verification according to the verification information to obtain a verification result, and determines the communication status with the sending end according to the verification result, so as to perform data transmission with the sending end when the communication status is normal.

[0053] The embodiment of the present application also provides an inter-domain secure communication device, which may include: one or more processors; and one or more machine-readable media having instructions stored thereon, which, when executed by the one or more processors, enable the device to execute Figure 1 In practical applications, the device can be used as a terminal device or a server. Examples of terminal devices may include: ultrasonic knife host, smart phone, tablet computer, e-book reader, MP3 (Moving Picture Experts Group Audio Layer III) player, MP4 (Moving Picture Experts Group Audio Layer IV) player, laptop computer, car computer, desktop computer, set-top box, smart TV, wearable device, etc. The embodiments of the present application do not limit the specific devices.

[0054] The present application also provides a computer-readable storage medium, in which one or more modules (programs) are stored. When the one or more modules are applied to a device, the device can execute the embodiment of the present application. Figure 1 Instructions for the steps included in the method for secure communication between domains. The machine-readable medium can be any available medium that can be stored by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

[0055] See also Figure 5 This embodiment provides a device 80, which may be a desktop computer, a portable computer, a smart phone, etc. In detail, the device 80 at least includes: a memory 82 and a processor 83 connected via a bus 81, wherein the memory 82 is used to store a computer program, and the processor 83 is used to execute the computer program stored in the memory 82 to execute all or part of the steps in the aforementioned method embodiment.

[0056] The system bus mentioned above can be a Peripheral Pomponent Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage.

[0057] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0058] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A method for secure communication between domains, characterized in that: include: Obtaining an event message from a sending end, and sending the event message multiple times according to a preset period; Generating verification information based on the event message sent each time and outputting it to the receiving end, so that the receiving end performs verification according to the verification information to obtain a verification result, and determines the communication state with the sending end according to the verification result, so as to perform data transmission with the sending end when the communication state is normal; The receiving end performs verification according to the verification information to obtain a verification result, including: verifying the content consistency of the event messages of different periods according to the verification information to obtain the verification result; determining the communication status with the sending end according to the verification result, including: if the verification result is that the content of the event messages received in each period is consistent, then the communication status is normal; if the content of the event message of at least one period in the verification result is inconsistent with the content of the event message of other periods, then the communication status is abnormal; when the communication status is normal, data is transmitted with the sending end, including: filtering repeated event messages received in multiple consecutive periods through preset filtering rules to retain a copy of the event message; performing event processing based on the retained event message; sending the event message multiple times according to a preset period, including: repeatedly sending the event message according to the preset period until the sending end updates the event message content; If the communication state is abnormal, the receiving end enters a preset safety state to refuse to receive the data transmission request of the sending end.

2. The inter-domain secure communication method according to claim 1, characterized in that: The verification information includes: a cyclic redundancy check code, a counter, and a data identifier.

3. An inter-domain secure communication system, characterized in that: include: A message configuration module, used to obtain an event message from a sending end, and send the event message multiple times according to a preset period; A security verification output module, used to generate verification information based on each event message sent and output it to the receiving end, so that the receiving end performs verification according to the verification information to obtain a verification result, and determines the communication state with the sending end according to the verification result, so as to perform data transmission with the sending end when the communication state is normal; The receiving end performs verification according to the verification information to obtain a verification result, including: verifying the content consistency of the event messages of different periods according to the verification information to obtain the verification result; determining the communication state with the sending end according to the verification result, including: if the verification result is that the content of the event messages received in each period is consistent, then the communication state is normal; if the content of the event message of at least one period in the verification result is inconsistent with the content of the event message of other periods, then the communication state is abnormal; when the communication state is normal, data is transmitted with the sending end, including: filtering repeated event messages received in multiple consecutive periods through preset filtering rules to retain a copy of the event message; performing event processing based on the retained event message; if the communication state is abnormal, the receiving end enters a preset security state to refuse to receive the data transmission request of the sending end; sending the event message multiple times according to the preset period, including: repeatedly sending the event message according to the preset period until the sending end updates the content of the event message.

4. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the inter-domain secure communication method described in any one of claims 1 to 2 when executing the computer program.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the inter-domain secure communication method described in any one of claims 1 to 2 are implemented.