Provided are a
message forwarding method, a UPF
selection method, an electronic device and a storage medium, the
message forwarding method comprising: sending a first message to an evolved
packet data gateway (ePDG), the first message carrying a communication capability identifier of a UE, the communication capability identifier being used for determining that the UE supports separation of a control plane and a media plane; a second message sent by the ePDG is received, the second message carries address information and a
security parameter index SPI corresponding to a target user plane function UPF, and the target UPF supports separation of a control plane and a media plane; generating a first target message according to the SPI of the target UPF; and directly forwarding the first target message to the target UPF based on the address information of the target UPF. In this way, in the link of receiving the address information of the target UPF and the real-time call of the SPI, the UE can further directly send the first target message to the target UPF with the address information of the target UPF and the SPI as identifiers, and the message information in the actual call does not need to be forwarded through the ePDG, thereby effectively reducing the
transmission delay in the message communication transmission.