| CPC H04L 63/0428 (2013.01) [H04L 63/123 (2013.01); H04L 63/20 (2013.01); H04L 67/12 (2013.01); H04L 2212/00 (2013.01)] | 18 Claims |

|
1. 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 policy for the to-be-sent data, and wherein the second identifier is for identifying the security level for the to-be-sent data in the encapsulated packet; and
sending, by the first ECU, the encapsulated packet to a second ECU of the vehicle.
|