Secure onboard network communication method, apparatus, and device
View Patent ↗A secure onboard network communication method includes obtaining an initial value of a first freshness value (FV), obtaining a second value based on the initial value, and refreshing the initial value to the second value; sending a first message, where the first message includes the second value of the first FV; obtaining an initial value of a second FV, and when a first condition is met, refreshing the second FV to the second value, where the first condition includes a condition that the second value of the first FV is greater than or equal to a sum of the initial value of the second FV and a predetermined value.
1 . A secure onboard network communication method applied to a sending apparatus, wherein the secure onboard network communication method comprises:
refreshing an initial value of a first freshness value (FV) to a second value, wherein the initial value is of a reset FV and is associated with a vehicle status parameter, wherein the vehicle status parameter comprises an accumulated driving mileage of a vehicle or an accumulated driving time of the vehicle, and wherein the second value is based on the initial value and is greater than the initial value; and
sending a first message comprising the second value.
2 . The secure onboard network communication method of claim 1 , further comprising obtaining the initial value.
3 . The secure onboard network communication method of claim 1 , wherein a difference between the second value and the initial value is a predetermined value.
4 . The secure onboard network communication method of claim 3 , wherein the predetermined value is associated with a vehicle lifecycle of a vehicle.
5 . The secure onboard network communication method of claim 1 , further comprising refreshing the second value to a third value, wherein the third value equals the second value plus a predetermined value at a moment T2, and wherein the moment T1 is earlier than the moment T2.
6 . The secure onboard network communication method of claim 4 , wherein the predetermined value is a fixed positive number or a variable positive number.
7 . The secure onboard network communication method of claim 1 , further comprising refreshing the second value to a third value, wherein the third value equals the second value plus an amount of information sent between a moment T1 and the moment T2, and wherein the moment T1 is earlier than the moment T2.
8 . The secure onboard network communication method of claim 1 , further comprising monotonically increasing the first FV for each subsequent message in a lifecycle of the vehicle.
9 . A secure onboard network communication method applied to a receiving apparatus, wherein the secure onboard network communication method comprises:
receiving a first message comprising a second value of a first freshness value (FV); and
refreshing an initial value of a second FV to the second value when a first condition is met,
wherein the initial value is of a reset FV and is associated with a vehicle status parameter,
wherein the vehicle status parameter comprises an accumulated driving mileage of a vehicle or an accumulated driving time of the vehicle, and
wherein the first condition is that the second value is greater than or equal to a sum of the initial value and a predetermined value.
10 . The secure onboard network communication method of claim 9 , further comprising obtaining the initial value.
11 . The secure onboard network communication method of claim 9 , wherein the predetermined value is a fixed positive number or a variable positive number.
12 . The secure onboard network communication method of claim 9 , wherein the predetermined value is associated with a vehicle lifecycle of a vehicle.
13 . An onboard network sending apparatus, comprising:
a memory configured to store instructions; and
one or more processors coupled to the memory and configured to execute the instructions to cause the onboard network sending apparatus to:
refresh an initial value of a first freshness value (FV) to a second value, wherein the initial value is of a reset FV and is associated with a vehicle status parameter, wherein the vehicle status parameter comprises an accumulated driving mileage of a vehicle or an accumulated driving time of the vehicle, and wherein the second value is based on the initial value and is greater than the initial value; and
send a first message comprising the second value.
14 . The onboard network sending apparatus of claim 13 , wherein the one or more processors are further configured to execute the instructions to cause the onboard network sending apparatus to obtain the initial value.
15 . The onboard network sending apparatus of claim 13 , wherein a difference between the second value and the initial value is a predetermined value.
16 . The onboard network sending apparatus of claim 13 , wherein the one or more processors are further configured to execute the instructions to cause the onboard network sending apparatus to refresh the second value to a third value, wherein the third value equals the second value plus a predetermined value at a moment T2, wherein the moment T1 is earlier than the moment T2.
17 . The onboard network sending apparatus of claim 13 , wherein the one or more processors are further configured to execute the instructions to cause the onboard network sending apparatus to store the initial value in the memory.
18 . The onboard network sending apparatus of claim 15 , wherein the predetermined value is associated with a vehicle lifecycle of a vehicle.
19 . The onboard network sending apparatus of claim 18 , wherein the predetermined value is a fixed positive number or a variable positive number.
20 . The onboard network sending apparatus of claim 13 , wherein the one or more processors are further configured to execute the instructions to cause the onboard network sending apparatus to refresh the second value to a third value, wherein the third value equals the second value plus an amount of information sent between a moment T1 and the moment T2, and wherein the moment T1 is earlier than the moment T2.