Step S103: The UE sends the first message authentication code, the first freshness parameter, and the first location privacy setting data to the AMF by using a RAN. Correspondingly, the AMF receives the first message authentication code, the first freshness parameter, and the first location privacy setting data from the UE.
The UE may send the first message authentication code, the first freshness parameter, and the first location privacy setting data to the AMF by using a NAS transport message, that is, the first message authentication code, the first freshness parameter, and the first location privacy setting data are carried in the NAS transport message. The NAS transport message may be a separate NAS message or may be a part of a registration request message. The first message authentication code, the first freshness parameter, and the first location privacy setting data may further be carried in a Radio Resource Control (RRC) connection reconfiguration message sent by the UE to the RAN or carried in an N2 message sent by the RAN to the AMF.
Step S104: The AMF sends the first message authentication code, the first freshness parameter, and the first location privacy setting data to an LMF. Correspondingly, the LMF receives the first message authentication code, the first freshness parameter, and the first location privacy setting data from the AMF.
When sending the first message authentication code, the first freshness parameter, and the first location privacy setting data to the LMF, the AMF may add the first message authentication code, the first freshness parameter, and the first location privacy setting data to one message, and the message may be, for example, a Namf_Communication_N1 message notify.