# US 2023/0067338 A1 · Data Transmission Method and Apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0067338 A1
- Document ID: US20230067338A1
- Status: Published application
- Kind: A1
- Application number: 17/973,767
- Filed: 2022-10-26
- Published: 2023-03-02
- Earliest claimed: 2020-08-28
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Steven Yin Zhong; Xinxing Yin; Mingming Zhang
- Web page: https://patentgrep.com/patent/US20230067338A1

## CPC

- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- H04L 69/321: Interlayer communication protocols or service data unit [SDU] definitions; Interfaces between layers
- H04L 12/4633: {Interconnection of networks using encapsulation techniques, e.g. tunneling}
- H04L 63/105: {Multiple levels of security}
- H04L 63/123: {received data contents, e.g. message integrity}
- H04L 63/20: {for managing network security; network security policies in general (filtering policies H04L63/0227)}
- H04L 67/12: specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L 69/22: Parsing or analysis of headers
- H04L 2212/00: Encapsulation of packets
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A data transmission method includes: a first electronic control unit (ECU) that obtains to-be-sent data. The first ECU determines a protection policy corresponding to the to-be-sent data from a plurality of protection policies, where the protection policies include a plurality of different encapsulation formats for the to-be-sent data and at least two protection policies with different calculation amounts for processing the to-be-sent data. The first ECU encapsulates the to-be-sent data according to the protection policy corresponding to the to-be-sent data to obtain an encapsulated packet. The first ECU sends the encapsulated packet to a second ECU, where the first ECU and the second ECU are any two ECUs in a vehicle.

## Claims

### Claim 1

A data transmission method, comprises:
obtaining, by a first electronic control unit (ECU) of a vehicle, to-be-sent data;
determining, by the first ECU, a protection policy corresponding to the to-be-sent data from a plurality of protection policies, wherein the plurality of protection policies comprise a plurality of different encapsulation manners for the to-be-sent data, and the plurality of protection policies comprise at least two protection policies with different calculation amounts for processing the to-be-sent data;
encapsulating, by the first ECU, the to-be-sent data according to the protection policy corresponding to the to-be-sent data, to obtain an encapsulated packet; and
sending, by the first ECU, the encapsulated packet to a second ECU of the vehicle.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining, by the first ECU, a protection policy corresponding to the to-be-sent data from a plurality of protection policies comprises:
determining, by the first ECU, the protection policy corresponding to the to-be-sent data from the plurality of protection policies based on an identifier comprised in the to-be-sent data, wherein the identifier comprised in the to-be-sent data comprises an an ECU that generates the to-be-sent data or an a data type of the to-be-sent data.

### Claim 3 (depends on 2)

The method according to claim 2, wherein if comprised in the to-be-sent data of the ECU that generates the to-be-sent data, the determining, by the first ECU, the protection policy corresponding to the to-be-sent data from the plurality of protection policies based on an identifier comprised in the to-be-sent data comprises:
determining, by the first ECU, a security level of the to-be-sent data based on the identifier and a mapping relationship, wherein the mapping relationship comprises a relationship between an identifier of an ECU in the vehicle and a security level, and a security level corresponding to each ECU in the vehicle is determined based on a type of the ECU in the vehicle; and
determining, by the first ECU, the protection policy corresponding to the to-be-sent data from the plurality of protection policies based on the security level.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the encapsulated packet comprises an identifier of the protection policy corresponding to the to-be-sent data, and the identifier of the protection policy corresponding to the to-be-sent data is used by the second ECU to identify the protection policy corresponding to the to-be-sent data.

### Claim 5 (depends on 1)

The method according to claim 1, wherein each of the at least two protection policies comprises one or more of the following policies:
no protection, anti-replay attack protection, integrity protection, or confidentiality protection, wherein the no protection indicates that no protection is performed on the to-be-sent data; the anti-replay attack protection indicates that protection against a replay attack is performed on the to-be-sent data; the integrity protection indicates that integrity check code is generated for the to-be-sent data, wherein the integrity check code is used by the second ECU to check whether the encapsulated packet is complete; and the confidentiality protection indicates that encryption processing is performed on the to-be-sent data.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the encapsulated packet is a Scalable service-Oriented MiddlewarE over IP (SOME/IP) packet.

### Claim 7

A data transmission method, comprising:
receiving, by a second electronic control unit (ECU) of a vehicle, an encapsulated packet sent by a first ECU of the vehicle;
obtaining, by the second ECU, a protection policy corresponding to the encapsulated packet, wherein the protection policy corresponding to the encapsulated packet comprises an encapsulation manner used by the first ECU to obtain the encapsulated packet; and
parsing, by the second ECU, the encapsulated packet according to the protection policy, to obtain a parsing result.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the protection policy corresponding to the encapsulated packet comprises one or more of the following policies: no protection, anti-replay attack protection, integrity protection, or confidentiality protection, wherein the no protection indicates that no protection is performed on to-be-sent data; the anti-replay attack protection indicates that protection against a replay attack is performed on the to-be-sent data; the integrity protection indicates that integrity check code is added in the encapsulated packet, wherein the integrity check code is used to check, when the encapsulated packet is parsed, whether data obtained through parsing is complete; and the confidentiality protection indicates that encryption processing is performed on the to-be-sent data.

### Claim 9 (depends on 7)

The method according to claim 7, wherein the encapsulated packet comprises an identifier of the protection policy corresponding to the encapsulated packet, and the identifier of the protection policy corresponding to the encapsulated packet is use corresponding to the encapsulated packet.

### Claim 10

A first electronic control unit (ECU), applied to a vehicle, wherein the vehicle comprises the first ECU and a second ECU, and the first ECU comprises a memory and a processor, wherein the memory is configured to store program instructions, and the processor is configured to execute program instructions to:
obtain to-be-sent data;
determine a protection policy corresponding to the to-be-sent data from a plurality of protection policies, wherein the plurality of protection policies comprise a plurality of different encapsulation manners for the to-be-sent data, and the plurality of protection policies comprise at least two protection policies with different calculation amounts for processing the to-be-sent data;
encapsulate the to-be-sent data according to the protection policy corresponding to the to-be-sent data, to obtain an encapsulated packet; and
send the encapsulated packet to the second ECU.

### Claim 11 (depends on 10)

The first ECU according to claim 10, wherein the processor is configured to execute program instructions to: determine the protection policy corresponding to the to-be-sent data from the plurality of protection policies based on an identifier comprised in the to-be-sent data, wherein the identifier comprised in the to-be-sent data an ECU that generates the to-be-sent data or an a data type of the to-be-sent data.

### Claim 12 (depends on 11)

The first ECU according to claim 11, wherein if the comprised in the to-be-sent data of the ECU that generates the to-be-sent data, the processor is configured to execute program instructions to:
determine a security level of the to-be-sent data based on the identifier and a mapping relationship, wherein the mapping relationship comprises a relationship between an identifier of an ECU in the vehicle and a security level, and a security level corresponding to each ECU in the vehicle is determined based on a type of the ECU in the vehicle; and
determine the protection policy corresponding to the to-be-sent data from the plurality of protection policies based on the security level.

### Claim 13 (depends on 10)

The first ECU according to claim 10, wherein the encapsulated packet comprises an identifier of the protection policy corresponding to the to-be-sent data, and the identifier of the protection policy is used by the second ECU to determine a manner of parsing the encapsulated packet.

### Claim 14 (depends on 10)

The first ECU according to claim 10, wherein each of the at least two protection policies comprises one or more of the following policies:
no protection, anti-replay attack protection, integrity protection, or confidentiality protection, wherein the no protection indicates that no protection is performed on the to-be-sent data; the anti-replay attack protection indicates that protection against a replay attack is performed on the to-be-sent data; the integrity protection indicates that integrity check code is generated for the to-be-sent data, wherein the integrity check code is used by the second ECU to check whether the encapsulated packet is complete; and the confidentiality protection indicates that encryption processing is performed on the to-be-sent data.

### Claim 15 (depends on 10)

The first ECU according to claim 10, wherein the encapsulated packet is a Scalable service-Oriented MiddlewarE over IP (SOME/IP) packet.

### Claim 16

A second electronic control unit (ECU), applied to a vehicle, wherein the vehicle comprises a first ECU and the second ECU, and the second ECU comprises a memory and a processor, wherein the memory is configured to store program instructions, and the processor is configured to execute program instructions to:
receive an encapsulated packet sent by the first ECU;
obtain a protection policy corresponding to the encapsulated packet, wherein the protection policy corresponding to the encapsulated packet comprises an encapsulation manner used by the first ECU to obtain the encapsulated packet; and
parse the encapsulated packet according to the protection policy, to obtain a parsing result.

### Claim 17 (depends on 16)

The second ECU according to claim 16, wherein the protection policy corresponding to the encapsulated packet comprises one or more of the following policies:
no protection, anti-replay attack protection, integrity protection, or confidentiality protection, wherein the no protection indicates that no protection is performed on to-be-sent data; the anti-replay attack protection indicates that protection against a replay attack is performed on the to-be-sent data; the integrity protection indicates that integrity check code is added in the encapsulated packet, wherein the integrity check code is used to check, when the encapsulated packet is parsed, whether data obtained through parsing is complete; and the confidentiality protection indicates that encryption processing is performed on the to-be-sent data.

### Claim 18 (depends on 16)

The second ECU according to claim 16, wherein the encapsulated packet comprises an identifier of a protection policy corresponding to the to-be-sent data.

### Claim 19

A vehicle, wherein the vehicle comprises a first electronic control unit (ECU) and a second ECU, wherein the first ECU is configured to:
obtain to-be-sent data;
determine a protection policy corresponding to the to-be-sent data from a plurality of protection policies, wherein the plurality of protection policies comprise a plurality of different encapsulation manners for the to-be-sent data, and the plurality of protection policies comprise at least two protection policies with different calculation amounts for processing the to-be-sent data;
encapsulate the to-be-sent data according to the protection policy corresponding to the to-be-sent data, to obtain an encapsulated packet; and
send the encapsulated packet to the second ECU.

### Claim 20 (depends on 19)

The vehicle according to claim 19, wherein the encapsulated packet is a Scalable service-Oriented MiddlewarE over IP (SOME/IP) packet.
