After obtaining the second message authentication code, the AUSF determines whether the first message authentication code is the same as the second message authentication code. If the first message authentication code is the same as the second message authentication code, it indicates that the first location privacy setting data reported by the UE to a UDM is not maliciously modified by a visited network or a GMLC, and the AUSF stores and updates the location privacy setting data of the UE, that is, the received first location privacy setting data is stored as latest location privacy setting data of the UE. If the first message authentication code is different from the second message authentication code, it indicates that the first location privacy setting data reported by the UE to a UDM is maliciously modified by a visited network or a GMLC.
When determining that the first message check code is the same as the second message check code, the AUSF performs step S109a.
Step S109a: The AUSF sends the first location privacy setting data to the UDM. Correspondingly, the UDM receives and stores the first location privacy setting data from the AUSF.
The AUSF may send the first location privacy setting data to the UDM by using one message, and the message may be, for example, a Nausf_protection request.
Step S110a: The UDM sends a response message to the AUSF. Correspondingly, the AUSF receives the response message from the UDM.
The response message may be, for example, a Nausf_protection response.
Step S111a: The AUSF sends the third message authentication code to the H-GMLC. Correspondingly, the H-GMLC receives the third message authentication code from the AUSF.