Method and device for subscribing user plane network function (UPF) data

Receive SMF ID messages through NWDAF and obtain SMF address information, sending messages to SMF to subscribe to UPF data, solving the problem that the NWDAF subscribed to UPF data requires major changes to the network and is difficult to implement, and realizes effective subscription to UPF data.

CN119893495APending Publication Date: 2025-04-25ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311399960.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In 5G mobile communication systems, the method of NWDAF subscribing to UPF data requires major changes to the network and is difficult to implement.

Method used

Receive the SMF ID message sent by the consumer NF through NWDAF, obtain the address information of the SMF where the UE is located, and send a message to the SMF to subscribe to the UPF data to realize the data subscription.

Benefits of technology

The problem of NWDAF subscribing to UPF data requires major changes to the network and is difficult to implement, and the existing functions in the network are fully utilized to subscribe to UPF data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119893495A_ABST
    Figure CN119893495A_ABST
Patent Text Reader

Abstract

Provided are a method and device for subscribing user plane network function (UPF) data, the method comprising: a network data analysis function (NWDAF) receiving a first message sent by a consumer network function (NF), the first message comprising a session management function identifier (SMF) ID served for user equipment (UE); the NWDAF obtains address information of an SMF where the UE is located according to the SMF ID; and the NWDAF sends a second message to the SMF according to the address information of the SMF, the second message being used for subscribing UPF data. Through application of the method and the device, the problem that the method for subscribing the UPF data by the NWDAF needs to greatly change the network and is difficult to implement in the related technology is solved, and the effect of subscribing the UPF data by fully utilizing the existing functions in the network is further achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communications, and specifically, to a method and device for subscribing to user plane network function (UPF) data. Background Art

[0002] In the 5G mobile communication system, the core network introduces the Network Data Analytics Function (NWDAF). The NWDAF network element can collect data from the 5G core network (5GC) network function (NF), application layer function (AF), and operation administration and maintenance (OAM), output the analysis results based on big data analysis technology, and feed back the analysis results to consumers (including NF, AF or OAM) for decision-making.

[0003] Usually, the process of NWDAF collecting UPF data is that before the consumer NF subscribes to the analysis ID from NWDAF, the consumer NF needs to first address the NWDAF; before the NWDAF collects data from the NF, the NWDAF needs to be able to address the NF.

[0004] In many scenarios defined by 3GPP, NWDAF collects data from the User Plane Function (UPF), which requires NWDAF to be able to address the UPF serving the User Equipment (UE). The implementation solution is relatively complex and requires changes to the SMF, consumer NF, etc., which cannot meet actual deployment requirements. Summary of the invention

[0005] The embodiments of the present application provide a method and device for subscribing to user plane network function UPF data, so as to at least solve the problem that the method of NWDAF subscribing to UPF data in the related art requires major changes to the network and is difficult to implement.

[0006] According to one embodiment of the present application, a method for subscribing to user plane network function UPF data is provided, including: a network data analysis function NWDAF receives a first message sent by a consumer network function NF, wherein the first message includes a session management function identifier SMF ID serving a user equipment UE; the NWDAF obtains address information of the SMF where the UE is located according to the SMF ID; the NWDAF sends a second message to the SMF according to the address information of the SMF, wherein the second message is used to subscribe to UPF data.

[0007] In an exemplary embodiment, after the NWDAF sends the second message to the SMF according to the address information of the SMF, it also includes: the NWDAF receiving UPF data sent by the UPF in response to the second message forwarded by the SMF.

[0008] According to another embodiment of the present application, a device for subscribing to user plane function UPF data is provided, including: a receiving module, configured for a network data analysis function NWDAF to receive a first message sent by a consumer network function NF, wherein the first message includes a service management function identifier SMF ID of a user equipment UE;

[0009] An acquisition module, used for the NWDAF to obtain the address information of the SMF where the UE is located according to the SMF ID;

[0010] A sending module is used for the NWDAF to send a second message for subscribing to user plane function UPF data to the SMF according to the address information of the SMF.

[0011] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0012] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0013] Through this application, since NWDAF obtains the address information of the SMF where the UE is located based on the SMF ID sent by the NF that serves the UE, and can then send the subscription UPF data to the SMF, it can solve the problem in the related technology that the method of NWDAF subscribing to UPF data requires major changes to the network and is difficult to implement, thereby achieving the effect of making full use of the existing functions in the network to subscribe to UPF data. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a hardware structure block diagram of a computer terminal according to a method for subscribing to user plane network function UPF data according to an embodiment of the present application;

[0015] Figure 2 is a flowchart of a method for subscribing to user plane network function UPF data according to an embodiment of the present application;

[0016] Figure 3It is a structural block diagram of an apparatus for subscribing to user plane network function UPF data according to an embodiment of the present application;

[0017] Figure 4 is a flowchart of a method for subscribing to user plane network function UPF data according to yet another embodiment of the present application;

[0018] Figure 5 A schematic diagram of sending a session management function identifier according to an embodiment of the present application;

[0019] Figure 6 It is a flowchart of a method for subscribing to user plane network function UPF data in a non-roaming scenario according to an embodiment of the present application;

[0020] Figure 7 It is a schematic diagram of a method for subscribing to user plane network function UPF data in a non-roaming scenario according to an embodiment of the present application;

[0021] Figure 8 It is a flowchart of a method for subscribing to user plane network function UPF data in roaming scenario (I) according to an embodiment of the present application;

[0022] Fig. 9 It is a schematic diagram of a method for subscribing to user plane network function UPF data in a roaming scenario (I) according to an embodiment of the present application;

[0023] Fig.10 A flowchart of a method for subscribing to user plane network function UPF data in roaming scenario (II) according to an embodiment of the present application;

[0024] Fig.11 It is a schematic diagram of a method for subscribing to user plane network function UPF data in roaming scenario (two) according to an embodiment of the present application. DETAILED DESCRIPTION

[0025] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0027] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 1 is a hardware structure block diagram of a computer terminal for a method of subscribing to user plane network function UPF data in an embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned computer terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0028] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for subscribing to user plane network function UPF data in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0029] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0030] In this embodiment, a method for subscribing to user plane network function UPF data running on the above-mentioned computer terminal is provided. Figure 2 : is a flowchart of a method for subscribing to user plane network function UPF data according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0031] Step S202, the network data analysis function NWDAF receives a first message sent by the consumer network function NF, wherein the first message includes a session management function identifier SMF ID served by the user equipment UE;

[0032] Before step S202 of this embodiment, the method further includes: the NWDAF registering the number segments and analysis IDs supported by the NWDAF with the network storage function NRF.

[0033] Before step S202 of this embodiment, the method further includes: the NWDAF registering the number segments, data network names DNN, location information and analysis ID supported by the NWDAF with the network storage function NRF.

[0034] In step S202 of this embodiment, it includes: one of the following: the NWDAF receives the SMF ID sent by the consumer NF through the extended interface; the NWDAF receives the SMF ID sent by the analyzed consumer NF forwarded by the service communication agent (Service Control Point, SCP) or the diameter routing node (Diameter Routing Agent, DRA) through the extended interface.

[0035] In an exemplary embodiment of the present application, the policy control function PCF acts as a main consumer of the NWDAF analysis result, and the NWDAF receives the SMF ID by extending the existing N23 interface between the PCF and the NWDAF.

[0036] In an exemplary embodiment, the first message further includes: a subscription analysis ID message.

[0037] Step S204, the NWDAF obtains the address information of the SMF where the UE is located according to the SMF ID;

[0038] In step S204 of this embodiment, it includes: the NWDAF queries the address information of the SMF where the UE is located in the NRF according to the SMF ID.

[0039] Step S206: The NWDAF sends a second message to the SMF according to the address information of the SMF, wherein the second message is used to subscribe to UPF data.

[0040] It should be noted that the second message can also be used to query UPF data.

[0041] After step S206 of this embodiment, it also includes: the NWDAF receives the UPF data sent by the UPF in response to the second message forwarded by the SMF.

[0042] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0043] In this embodiment, a device for subscribing to user plane network function UPF data is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0044] Figure 3 is a structural block diagram of an apparatus for subscribing to user plane function UPF data according to an embodiment of the present application, such as Figure 3 As shown, the device includes a receiving module 10, an acquiring module 20, and a sending module 30:

[0045] A receiving module 10, configured for the network data analysis function NWDAF to receive a first message sent by a consumer network function NF, wherein the first message includes a session management function identifier SMF ID served by the user equipment UE;

[0046] An acquisition module 20, configured for the NWDAF to acquire address information of the SMF where the UE is located according to the SMF ID;

[0047] The sending module 30 is used for the NWDAF to send a second message to the SMF according to the address information of the SMF, wherein the second message is used to subscribe to UPF data.

[0048] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0049] To facilitate the understanding of the technical solution provided by the present application, a detailed explanation will be given below in combination with embodiments of specific scenarios.

[0050] Figure 4: is a flowchart of a method for subscribing to user plane network function UPF data according to another embodiment of the present application, such as Figure 4 As shown, the method comprises the following steps:

[0051] Step S402, the consumer NF queries the NWDAF address information at the NRF;

[0052] Specifically, according to different preconditions, the consumer NF queries the NWDAF address information based on the corresponding information, including:

[0053] (1) After the NWDAF service is started or updated, it registers the number segment + analysis ID it supports with the NRF; the consumer NF can discover the NWDAF based on the number segment + analysis ID; the consumer NF has the SMF ID information serving the UE;

[0054] Under the above prerequisites, the consumer NF queries the NWDAF address information in the NRF based on the number segment and analysis ID.

[0055] (2) After the NWDAF service is started or updated, it registers the number segment + DNN + location information + analysis ID it supports with the NRF; the consumer NF can discover the NWDAF based on DNN + location information (TAI) + analysis ID; the consumer NF has the SMF ID information serving the UE.

[0056] Under the above prerequisites, the consumer NF queries the NWDAF address information in the NRF based on the number segment + DNN + location information + analysis ID.

[0057] Step S404: The consumer NF subscribes to the analysis ID from the NWDAF based on the NWDAF address information.

[0058] And pass the user's SMF ID information to NWDAF;

[0059] Step S406, NWDAF obtains the address information of the SMF where the user is located from NRF based on the SMF ID information in the message;

[0060] Specifically, Figure 5 As shown, depending on whether SCP / DRF is deployed, there are two ways to send the SMF ID:

[0061] (1) When SCP / DRA is not deployed, the consumer NF forwards the SMF ID directly to the NWDAF;

[0062] (2) In case SCP / DRA is deployed, SCP / DRA addresses NWDAF based on the NWDAF information provided by the consumer NF and sends the SMF ID to NWDAF.

[0063] Step S408, NWDAF sends a data subscription message to the SMF where the user is located;

[0064] Step S410, SMF sends a data subscription message to the anchor point UPF that provides services to the user;

[0065] Figure 6 : is a flowchart of a method for subscribing to user plane network function UPF data in a non-roaming scenario according to an embodiment of the present application, such as Figure 6 As shown, the method comprises the following steps:

[0066] Step S602, the consumer NF queries the NRF for NWDAF address information;

[0067] Specifically, the consumer NF queries the NWDAF information in the NRF based on the number segment + analysis ID or the information of DNN + location information (TAI) + analysis ID.

[0068] Specifically, this embodiment has the following prerequisites: after the NWDAF service is started or updated, register the number segment + analysis ID or DNN + location information (TAI) + analysis ID supported by itself with NRF; consumer NF can discover NWDAF based on the number segment + analysis ID or DNN + location information (TAI) + analysis ID.

[0069] Step S604, NRF returns the NWDAF address to the consumer NF;

[0070] Step S606: The consumer NF subscribes to the analysis ID from the NWDAF based on the NWDAF address information, and transmits the user's SMF ID information to the NWDAF;

[0071] Step S608, NWDAF obtains the address information of the SMF where the user is located from NRF based on the SMF ID information in the message;

[0072] Step S610, NWDAF sends an analysis ID subscription message to the SMF where the user is located;

[0073] Step S612, SMF sends a data subscription message to the anchor point UPF that provides services to the user;

[0074] Step S614: UPF reports the data to NWDAF.

[0075] Figure 7 It is a schematic diagram of a method for subscribing to user plane network function UPF data in a non-roaming scenario according to an embodiment of the present application, including:

[0076] S702, the consumer NF queries the NWDAF address information in the NRF based on the number segment and analysis ID;

[0077] S704: The consumer NF subscribes to the analysis ID from the NWDAF based on the NWDAF address information, and passes the user's SMF ID information to the NWDAF. There are two ways to do this, depending on whether SCP / DRF is deployed:

[0078] In the case where SCP / DRA is not deployed, the consumer NF forwards the SMF ID directly to the NWDAF;

[0079] In case SCP / DRA is deployed, SCP / DRA addresses NWDAF based on the NWDAF information provided by the consumer NF and sends the SMF ID to NWDAF;

[0080] S706, NWDAF obtains the address information of the SMF where the user is located from NRF based on the SMF ID information in the message;

[0081] S708, NWDAF sends a data subscription message to the SMF where the user is located;

[0082] S710, SMF sends a data subscription message to the anchor point UPF that provides services to the user.

[0083] In non-roaming scenarios, the home consumer NF includes the following functions:

[0084] (1) Consumer NF supports querying NWDAF information from NRF based on number segment + analysis ID or DNN + location information (TAI) + analysis ID;

[0085] (2) The consumer NF sends the SMF ID to the NWDAF.

[0086] In non-roaming scenarios, the home NWDAF includes the following functions:

[0087] (1) NWDAF supports registering DNN+location information+analysis ID and other information to NRF;

[0088] (2) Receive the SMF ID information sent by the consumer NF.

[0089] Figure 8 : is a flowchart of a method for subscribing to user plane network function UPF data in a roaming scenario (I) according to an embodiment of the present application, such as Figure 8 As shown, the method comprises the following steps:

[0090] Step S802, the consumer NF queries the NWDAF information in the NRF;

[0091] Specifically, the consumer NF queries the NWDAF information in the NRF based on the number segment.

[0092] Step S804, NRF returns the NWDAF address to the consumer NF;

[0093] Step S806: The consumer NF subscribes to the analysis ID from the NWDAF based on the NWDAF address information, and transmits the user's SMF ID information to the NWDAF;

[0094] Specifically, the SCP / DRC addresses the NWDAF based on the NWDAF information and forwards the SMF ID information to the NWDAF.

[0095] Step S808, NWDAF obtains the address information of the SMF where the user is located from NRF based on the SMF ID information in the message;

[0096] Step S810, NWDAF sends a data subscription message to the SMF where the user is located;

[0097] Step S812, SMF sends a data subscription message to the anchor point UPF that provides services to the user;

[0098] Step S814: UPF reports the data to NWDAF.

[0099] In roaming scenario (I), the home consumer NF includes the following functions:

[0100] (1) Consumer NF supports querying NWDAF information from NRF based on number segments;

[0101] (2) The consumer NF sends the SMF ID to the NWDAF (or through SCP / DRA).

[0102] In roaming scenario (I), the home NWDAF includes the following functions:

[0103] (1) NWDAF supports registering number segments, analyzing IDs and other information with NRF;

[0104] (2) Receive the SMF ID information sent by the consumer NF.

[0105] Fig. 9 It is a schematic diagram of a method for subscribing to user plane network function UPF data in a roaming scenario (I) according to an embodiment of the present application, including:

[0106] S902, the consumer NF queries the NWDAF information in the NRF based on the number segment;

[0107] S904, the consumer NF subscribes to the analysis type from the NWDAF based on the NWDAF information and carries the SMF ID of the user;

[0108] S906, SCP / DRC addresses DAF based on NWDAF information and forwards SMF ID information to NWDAF;

[0109] S908, NWDAF searches for the SMF address in NRF through the SMF ID;

[0110] S910, NWDAF obtains the SMF where the user is located based on the SMF ID information in the message, and sends a data subscription message to the SMF where the user is located;

[0111] S912, SMF sends a data subscription message to the anchor point UPF that provides services to the user.

[0112] Fig.10 According to the flowchart of the method for subscribing to user plane network function UPF data in the roaming scenario (II) of the embodiment of the present application, as shown in FIG. Fig.10 , the method comprises the following steps:

[0113] Step S1002, the consumer NF queries the NWDAF information in the NRF;

[0114] Specifically, the consumer NF queries the NWDAF information in the NRF based on the DNN+location information+analysis ID.

[0115] Step S1004, NRF returns the NWDAF address to the consumer NF;

[0116] Step S1006, the consumer NF subscribes to the analysis ID from the NWDAF based on the NWDAF address information, and transmits the user's SMF ID information to the NWDAF;

[0117] Specifically, the SCP / DRC addresses the NWDAF based on the NWDAF information and forwards the SMF ID information to the NWDAF.

[0118] Step S1008, NWDAF obtains the address information of the SMF where the user is located from NRF based on the SMF ID information in the message;

[0119] Step S1010, NWDAF sends a Quality of Service (QoS) data subscription message to the SMF where the user is located;

[0120] Step S1012, SMF sends a data subscription message to the anchor point UPF that provides services to the user;

[0121] Step S1014: UPF reports the data to NWDAF.

[0122] Fig.11It is a schematic diagram of a method for subscribing to user plane network function UPF data in roaming scenario (II) according to an embodiment of the present application, including:

[0123] S1102, the consumer NF queries the NWDAF information in the NRF based on the DNN and location area

[0124] S1104: The consumer NF subscribes to the analysis type from NWDAF based on the NWDAF information and carries the SMF ID of the user.

[0125] S1106, SCP / DRC addresses DAF based on DAF information and forwards SMF ID information to NWDAF

[0126] S1108, NWDAF searches for the SMF address in NRF using the SMF ID

[0127] S1110, NWDAF obtains the SMF where the user is located based on the SMF ID information in the message, and sends a data subscription message to the SMF where the user is located

[0128] S1112, SMF sends a data subscription message to the anchor point UPF that provides services to the user

[0129] In roaming scenario (II), the home consumer NF includes the following functions:

[0130] (1) Consumer NF supports querying NWDAF information from NRF based on DNN+location information (region)+analysis ID;

[0131] (2) The consumer NF sends the SMF ID to the NWDAF (or through SCP / DRC).

[0132] In this embodiment, the home location NWDAF includes the following functions:

[0133] (1) NWDAF supports registering DNN+location information+analysis ID and other information to NRF;

[0134] (2) Receive the SMF ID information sent by the consumer NF.

[0135] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0136] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0137] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0138] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0139] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0140] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0141] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for subscribing to user plane network function UPF data, characterized in that: include: The network data analysis function NWDAF receives a first message sent by the consumer network function NF, wherein the first message includes a session management function identifier SMF ID served by the user equipment UE; The NWDAF obtains address information of the SMF where the UE is located according to the SMF ID; The NWDAF sends a second message to the SMF according to the address information of the SMF, wherein the second message is used to subscribe to UPF data.

2. The method according to claim 1, characterized in that After the NWDAF sends the second message to the SMF according to the address information of the SMF, the method further includes: The NWDAF receives the UPF data sent by the UPF in response to the second message forwarded by the SMF.

3. The method according to claim 1, characterized in that Before the network data analysis function NWDAF receives the first message sent by the consumer network function NF, the method further includes: The NWDAF registers the number segments and analysis IDs supported by the NWDAF with the network storage function NRF.

4. The method according to claim 1, characterized in that: Before the NWDAF receives the first message sent by the consumer network function NF, the method further includes: The NWDAF registers the number segments, data network names DNN, location information and analysis IDs supported by the NWDAF with the network storage function NRF.

5. The method according to claim 1, characterized in that The first message also includes: a subscription analysis ID message.

6. The method according to claim 1, characterized in that The NWDAF obtains address information of the SMF where the UE is located according to the SMF ID, including: The NWDAF queries the address information of the SMF where the UE is located in the NRF according to the SMF ID.

7. The method according to claim 1, characterized in that The NWDAF receives a first message sent by the consumer network function NF, including one of the following: The NWDAF receives the SMF ID sent by the consumer NF through the extended interface; The NWDAF receives the SMF ID sent by the consumer NF and forwarded by the service communication agent SCP or the diameter routing agent DRA through the extended interface.

8. A device for subscribing to user plane function UPF data, characterized in that: include: A receiving module, configured for a network data analysis function NWDAF to receive a first message sent by a consumer network function NF, wherein the first message includes a session management function identifier SMF ID served by a user equipment UE; An acquisition module, used for the NWDAF to obtain the address information of the SMF where the UE is located according to the SMF ID; A sending module, used for the NWDAF to send a second message to the SMF according to the address information of the SMF, wherein the second message is used to subscribe to UPF data.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.