Data transmission method and apparatus
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A data transmission method, comprises: obtaining, by a first electronic control unit (ECU) of a vehicle, to-be-sent data; selecting, by the first ECU, a protection policy corresponding to the to-be-sent data from a plurality of protection policies based on a mapping relationship between an identifier comprised in the to-be-sent data and a security level of the to-be-sent data, wherein the identifier is of an ECU associated with a data type of the to-be-sent data, wherein the plurality of protection policies comprise a plurality of different encapsulation manners for the to-be-sent data, and wherein 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, wherein the encapsulated packet comprises a second identifier of the protection poli
- Claim 2Depends on #1
The data transmission method of claim 1, wherein the encapsulated packet comprises a second identifier of the protection policy corresponding to the to-be-sent data, and wherein the second identifier is for selecting a manner of parsing the encapsulated packet.
- Claim 3Depends on #1
The data transmission method of claim 1, further comprising selecting, by the first ECU, the protection policy corresponding to the to-be-sent data from the plurality of protection policies based on the identifier comprised in the to-be-sent data comprises: selecting, by the first ECU, a security level of the to-be-sent data based on the identifier and a second mapping relationship, wherein the second mapping relationship comprises a relationship between a third identifier of an ECU in the vehicle and a second security level, and wherein a security level corresponding to each ECU in the vehicle is based on a type of the each ECU in the vehicle; and selecting, 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 4Depends on #1
The data transmission method of claim 1, wherein each of the at least two protection policies comprises policies associated with at least one of 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, wherein the anti-replay attack protection indicates that protection against a replay attack is performed on the to-be-sent data, wherein the integrity protection indicates that integrity check code is generated for the to-be-sent data, wherein the integrity check code is for checking whether the encapsulated packet is complete, and wherein the confidentiality protection indicates that encryption processing is performed on the to-be-sent data.
- Claim 5Depends on #1
The data transmission method of claim 1, wherein the encapsulated packet is a Scalable service-Oriented MiddlewarE over IP (SOME/IP) packet.
- Claim 6Independent Claim
A data transmission method, comprising: receiving, by a second electronic control unit (ECU) of a vehicle, an encapsulated packet from 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 of the first ECU for obtaining the encapsulated packet, wherein the encapsulated packet comprises an identifier of the protection policy for the encapsulated packet, and wherein the identifier of the protection policy is used by the second ECU to identify the security level of data in the encapsulated packet and to identify a manner of parsing the encapsulated packet; and parsing, by the second ECU, the encapsulated packet according to the protection policy, to obtain a parsing result.
- Claim 7Depends on #6
The data transmission method of claim 6, wherein the protection policy corresponding to the encapsulated packet comprises at least one of 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, wherein the anti-replay attack protection indicates that protection against a replay attack is performed on the encapsulated packet, wherein the integrity protection indicates that integrity check code is added in the encapsulated packet, wherein the integrity check code for checking whether data obtained through parsing is complete when the encapsulated packet is parsed, and wherein the confidentiality protection indicates that encryption processing is performed on the encapsulated packet.
- Claim 8Independent Claim
A first electronic control unit (ECU), applied to a vehicle having the first ECU and a second ECU, wherein the first ECU comprises: a memory configured to store program instructions; and at least one processor coupled to the memory and configured to execute the program instructions to cause the first ECU to: obtain to-be-sent data; select a protection policy corresponding to the to-be-sent data from a plurality of protection policies based on a mapping relationship between an identifier in the to-be-sent data and a security level of the to-be-sent data, wherein the identifier is of an ECU associated with a data type of the to-be-sent data, wherein the plurality of protection policies comprise a plurality of different encapsulation manners for the to-be-sent data, and wherein 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 poli
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This is a continuation of International Patent Application No. PCT/CN2020/112114 filed on Aug. 28, 2020, which is hereby incorporated by reference in its entirety. TECHNICAL FIELD This disclosure relates to the vehicle field, and in particular, to a data transmission method and an apparatus. BACKGROUND As vehicle electrical systems such as in-vehicle infotainment, navigation, and assisted driving rapidly develop, data communicated through an in-vehicle network increases significantly. For example, the Institute of Electrical and Electronics Engineers (IEEE) 802.3 Ethernet technology with high throughput is introduced into a vehicle, and Ethernet gradually becomes a backbone network of the in-vehicle network. Ethernet, as the backbone network, carries many communication services, for example, it carries a large amount of data, such as video on demand, software upgrade, monitored data upload, interactive control, and diagnosis. Security for transmitting data in the vehicle is of great significance in an in-vehicle communications environment. In a conventional solution, various types of security protection, such as integrity protection, anti-replay attack protection, or confidentiality protection, are performed on the data transmitted in the vehicle. However, heavy in-vehicle Ethernet traffic indicates a large calculation amount for data protection, which requires higher hardware performance to support the calculation amount. Therefore, how to effectively protect, on a premise of support of hardware performance, the transmitted data becomes an urgent problem to be resolved. SUMMARY Embodiments of this disclosure provide a data transmission method and an apparatus, to select an appropriate protection policy for to-be-transmitted data, and balance calculation resources of electronic control units (ECUs). In view of this, a first aspect of this disclosure provides a data transmission method. The method includes a first ECU that obta
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (19)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (1)
- Woo et al. (A Practical Security Architecture for In-Vehicle CAN-FD, IEEE, vol. 17, No. 8, Aug. 2016, pp. 2248-2261) (Year: 2016).