A freshness parameter is used to protect a network from a low-altitude replay attack. In the embodiments of this application, the freshness parameter is used to calculate a message authentication code and perform digital signing.
A message authentication code is applied to the embodiments of this application, and is used to check whether location privacy setting data is tampered with.
A counter value is a type of freshness parameter, and is used to indicate a quantity of times of sending a specific message.
A function counter (FC) value is a type of freshness parameter, and different counter values are allocated to messages based on functions.
The following describes in detail the data communication method provided in the embodiments of this application. It should be noted that